Commit graph

36 commits

Author SHA1 Message Date
62952df107 ansiblelint fixes-- fqcn[action-core] - file to ansible.builtin.file
Replaces many references to  file: with ansible.builtin.file

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-15 10:41:52 +10:00
691adee6ee Fix name[casing] ansible-lint issues
fix 1900 failures of the following case issue:

`name[casing]: All names should start with an uppercase letter.`

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
2025-01-14 20:20:07 +10:00
Pavel Raiskup
1a81b873e6 aws_cloud: temporary ec2 user 2024-03-13 18:52:43 +01:00
Pavel Raiskup
24673e9e08 copr-pulp-dev: proper birthday 2024-03-13 18:48:32 +01:00
Pavel Raiskup
7136d6003c aws_cloud: better skip condition
fatal: [copr-be-dev.aws.fedoraproject.org]: FAILED! => {"msg": "'dict object' has no attribute 'files'. 'dict object' has no attribute 'files'"}
2023-11-21 15:26:11 +01:00
Pavel Raiskup
eccbf58b3f aws_copr: copr-be fix for #11006
We run the playbook first against the `copr-be-temp.aws..`
inventory_hostname, and then once more against `copr-be.aws..`.  We need
to re-sign the pub keys for the later run.

https://pagure.io/fedora-infrastructure/issue/11006
2023-11-21 15:16:25 +01:00
Pavel Raiskup
c28c90504b aws_cloud: drop additional (-temp) known hosts entries 2023-11-21 14:37:59 +01:00
Pavel Raiskup
166879ab9f aws_cloud: really gather both key types 2023-11-21 14:03:07 +01:00
Pavel Raiskup
445973ffba aws_cloud: drop wrong keytype 2023-11-21 13:59:45 +01:00
Pavel Raiskup
0ed8f5f405 aws_cloud: try to load and hack-around all host keys 2023-11-21 13:53:36 +01:00
Jakub Kadlcik
038a0591c9 copr: install python when birthday, regardless of gathering facts 2023-08-20 15:44:55 +02:00
Pavel Raiskup
694554c4aa aws_cloud: temporarily work with rsa by default 2022-11-28 17:57:48 +01:00
Jakub Kadlcik
c8c2bbf51a aws_cloud: don't include basessh role
It should be redundant and we observe strage things such as 4x
removing and adding ssh keys, having to manualy confirm "Are you sure
you want to continue connecting (yes/no/[fingerprint])?" and so
on. Let's try to disable the role.
2021-11-29 15:15:21 +01:00
Pavel Raiskup
ad89a66878 tasks/aws_cloud.yml: prefer ed25519 keys for now
Seems like either the RHEL 8 (batcave) or Fedora 35 system (Fedora Copr
Infra) prefers ed25519 keys over rsa, leading to weird auth problems:

TASK [allow root ssh connections] ***************************************************************************************************************************
Monday 29 November 2021  13:06:43 +0000 (0:00:00.314)       0:00:03.632 *******
Monday 29 November 2021  13:06:43 +0000 (0:00:00.314)       0:00:03.632 *******
fatal: [copr-be-dev.aws.fedoraproject.org]: UNREACHABLE! => {"changed": false, "msg": "Data could not be sent to remote host \"copr-be-dev.aws.fedoraproject.org\". Make sure this host can be reached over ssh: Certificate invalid: name is not a listed principal\r\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\r\n@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\nIT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\r\nSomeone could be eavesdropping on you right now (man-in-the-middle attack)!\r\nIt is also possible that a host key has just been changed.\r\nThe fingerprint for the ED25519 key sent by the remote host is\nSHA256:Cgs/aoJl9OJheAtZZ2CDiYx9ZeFMwD6dUYUJpPDTl58.\r\nPlease contact your system administrator.\r\nAdd correct host key in /root/.ssh/known_hosts to get rid of this message.\r\nOffending RSA key in /root/.ssh/known_hosts:21\r\nED25519 host key for copr-be-dev.aws.fedoraproject.org has changed and you have requested strict checking.\r\nHost key verification failed.\r\n", "unreachable": true}

This lets us move forward with the tomorrow's update.  The previous
hack(s) were not OK.
2021-11-29 14:21:52 +01:00
Pavel Raiskup
1efa0220c3 tasks/aws_cloud.yml: hack with known_hosts removal
We observed a situation when two keys were specified in known_hosts, and
only one was removed by the playbook.  At least we think this is what is
actually happening.
2021-11-29 14:05:20 +01:00
Pavel Raiskup
0270957497 tasks/aws_cloud.yml: try to work with ssh-ed25519, not rsa 2021-11-29 13:53:02 +01:00
Pavel Raiskup
5e8940375f tasks/aws_cloud.yml: better known_hosts cleanup when birthday=yes 2021-11-29 13:47:00 +01:00
Pavel Raiskup
9ec46957fd aws-cloud: clean up and try to fix batcave's host keys 2020-11-18 10:33:46 +01:00
Pavel Raiskup
f5f3c83104 aws-cloud: drop postfix hack
As we won't run the playbooks against IPs anymore.
2020-11-18 10:17:33 +01:00
Pavel Raiskup
f351fe2d32 aws_cloud: pre-setup hostname early
To allow the initial postfix start:
Nov 11 10:38:33 107.20.83.139 postfix/sendmail[26023]: warning: valid_hostname: numeric hostname: 107.20.83.139
Nov 11 10:38:33 107.20.83.139 postfix/sendmail[26023]: fatal: unable to use my own hostname
Nov 11 10:38:33 107.20.83.139 postfix[26025]: warning: valid_hostname: numeric hostname: 107.20.83.139
Nov 11 10:38:33 107.20.83.139 postfix[26025]: fatal: unable to use my own hostname
2020-11-11 11:45:55 +01:00
Pavel Raiskup
f7c0971788 aws_cloud: don't skip facts gathering 2020-04-24 21:34:25 +02:00
Mikolaj Izdebski
4aa2caa088 aws_cloud: import basessh role 2020-04-24 21:34:24 +02:00
Pavel Raiskup
7c98df7a75 aws_cloud: don't hack the keys more
This is done by basessh role.
2020-04-24 21:34:24 +02:00
Pavel Raiskup
ae21353b07 copr-be-dev-aws: another try with birthday 2020-04-24 21:34:24 +02:00
Pavel Raiskup
d0e45f67fa aws_cloud: conditionalize things by birthday 2020-04-24 21:34:24 +02:00
Jakub Kadlcik
68a1821b9b remove whitespace, it annoys me 2020-04-24 21:34:24 +02:00
Jakub Kadlcik
a78b7c92e1 copr: move iptables disabling directly to frontend role 2020-04-24 21:34:24 +02:00
Pavel Raiskup
f9934ce398 aws_cloud: don't run basessh role
It is done in cloud_setup_basic.yml.
2020-04-24 21:34:24 +02:00
Jakub Kadlcik
43c8acf835 copr: make sure iptables are disabled
For some reason they can be started even if

    baseiptables: False

maybe because the variable was initially set to True
and then switched to False, so the iptables were
already enabled.
2020-04-24 21:34:24 +02:00
Jakub Kadlcik
234ac60c3b copr: actually, use baseiptables variable to disable iptables 2020-04-24 21:34:24 +02:00
Jakub Kadlcik
1e5692ce9b stopping iptables probably isn't enough, let's mask it 2020-04-24 21:34:24 +02:00
Jakub Kadlcik
e7c0bc201e disable iptables in aws, we have security groups 2020-04-24 21:34:24 +02:00
Pavel Raiskup
450688a699 aws_cloud.yml: more python3/fedora hacks 2020-04-24 21:34:23 +02:00
Pavel Raiskup
38b299509a aws_cloud.yml: rely on python3 for now 2020-04-24 21:34:23 +02:00
Pavel Raiskup
99db42b520 aws_cloud.yml: install python-libselinux, not libselinux-python 2020-04-24 21:34:23 +02:00
Pavel Raiskup
7d30662023 copr: add aws_cloud.yml task replacing persistent_cloud.yml
And use it in copr-backend.yml playbook.
2020-04-24 21:34:23 +02:00