Commit graph

952 commits

Author SHA1 Message Date
Pavel Raiskup
da09946ffa copr-be: document one "ignore_errors" instance 2022-03-15 16:27:27 +01:00
Jakub Kadlcik
259b3878c1 swap: fix file creation to be idempotent, pt2 2022-01-23 23:15:49 +01:00
Jakub Kadlcik
358b3c5130 swap: fix file creation to be idempotent 2022-01-23 22:58:00 +01:00
Jakub Kadlcik
68139c0ff2 swap: automatically start swap.swap service, pt2 2022-01-23 22:20:30 +01:00
Jakub Kadlcik
c9d8a50050 swap: automatically restart swap.swap service 2022-01-23 22:01:14 +01:00
Jakub Kadlcik
8de6ab833f swap: create swapfile only once 2022-01-23 21:45:30 +01:00
Jakub Kadlcik
8495c555cc swap: oops, fix typo 2022-01-23 21:32:41 +01:00
Jakub Kadlcik
415731c1ac swap: try to make swapfile working on btrfs
Since F35, the swap service started failing with:

    kernel: BTRFS warning (device nvme0n1p5): swapfile must not be copy-on-write
    swapon[2976986]: swapon: /swap: swapon failed: Invalid argument
    swap.swap: Swap process exited, code=exited, status=255/EXCEPTION
2022-01-23 21:28:16 +01:00
Mark O Brien
de2279d2cb yumrepos: don't add el9 infra-tags repo for now
Signed-off-by: Mark O Brien <markobri@redhat.com>
2021-12-21 16:51:41 +00:00
Mark O Brien
0230c3f85d yumrepos: skip epel9-infra for now
Signed-off-by: Mark O Brien <markobri@redhat.com>
2021-12-21 16:42:42 +00: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
Kevin Fenzi
68c5eaebea virt-instance-create: drop old non efi armv7 stuff
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-05-25 14:17:29 -07:00
Kevin Fenzi
ac2ea4030c switch to efi armv7 in prod
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-05-24 18:04:03 -07:00
Kevin Fenzi
f23fd1b7a1 totpcgi / 2fa: remove old totpci and files and roles.
Note: there are still some calls here in old fas in openshift, but we
will remove those when we remove old fas (likely as soon as zodbot is
ported over to noggin).

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-05-17 13:00:56 -07:00
Pierre-Yves Chibon
daf7776a9d yumrepos: be RHEL7/CentOS7 compatible
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2021-03-30 14:36:04 +02:00
Nils Philippsen
280eebdcee tasks/yumrepos: cope with archived Fedora releases
We have some hosts that run on archived/EOL Fedora releases, their
repository URLs need to reflect that.

Signed-off-by: Nils Philippsen <nils@redhat.com>
2021-03-19 15:22:21 +00:00
Miroslav Suchý
e20c1c2776 another typo of typo 2021-03-15 21:09:52 +01:00
Miroslav Suchý
07e8497012 another typo 2021-03-15 21:08:23 +01:00
Miroslav Suchý
70186a284b another typo 2021-03-15 21:05:27 +01:00
Miroslav Suchý
53dcd35255 typo 2021-03-15 21:03:08 +01:00
Miroslav Suchý
60239c0791 typo 2021-03-15 20:59:59 +01:00
Miroslav Suchý
e72f0a23a7 typo 2021-03-15 20:56:30 +01:00
Miroslav Suchý
6523edb25b use original epel repository in AWS datacenter 2021-03-15 20:53:40 +01:00
Stephen Smoogen
ec8c05f116 Fix tasks/postfix.yaml and roles/basic/tasks/postfix.yaml to match
Found the reason that the definitions I had put were not
working. There were two different ones and i was looking at the wrong
one. Put the two tasks with the same logic so things should work no
matter which one is run.
2021-02-17 19:17:50 -05:00
Kevin Fenzi
fe31b7dadb tasks / virt-inst-create: don't setup direct kernel boot in stg for 32bit arm
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-02-03 16:40:57 -08:00
Kevin Fenzi
59a84365da Also use direct kernel boot in prod again too.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-01-25 11:26:21 -08:00
Kevin Fenzi
c308c08b1b Revert "virt instance create: switch stg back to uefi"
This reverts commit a691aac113.
2021-01-24 19:24:22 -08:00
Kevin Fenzi
a691aac113 virt instance create: switch stg back to uefi
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-01-24 19:05:28 -08:00
Kevin Fenzi
ca8b9ad361 Revert "Revert "virt instance create: put old armv7 install setup back in stg""
This reverts commit 4cb77b2966.

Take it back out, seems to make no difference if it's uefi or not.
2021-01-24 17:51:17 -08:00
Kevin Fenzi
4cb77b2966 Revert "virt instance create: put old armv7 install setup back in stg"
This reverts commit a34ef07de9.
2021-01-24 14:39:46 -08:00
Kevin Fenzi
a34ef07de9 virt instance create: put old armv7 install setup back in stg
Will re-install a bulder without uefi and see if that matters any for
our memory management woes.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-01-24 10:44:13 -08:00
Miroslav Suchý
4acfcae34e use python3-libselinux 2021-01-19 10:09:54 +01:00
Miroslav Suchý
afa5c85b2f there is no ntpdate for el8+:x - use chrony 2021-01-19 10:06:27 +01:00
Kevin Fenzi
babf36a356 buildvm / aarch64/armv7: simplify host vars, drop armv7 special tasks in create, set group vars for f33 on all arm buildvms
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-01-18 14:46:55 -08:00
Kevin Fenzi
b6415b23cb Revert "tasks / virt_instance_create: revert back to old armv7 setup in stg to test"
This reverts commit 9277590da5.
2021-01-18 12:16:18 -08:00
Mark O'Brien
de0c23e293 maintainer-test: remove f31 and el6 as they are EOL 2020-12-23 11:39:33 +00:00
Kevin Fenzi
9277590da5 tasks / virt_instance_create: revert back to old armv7 setup in stg to test
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-11-18 16:34:43 -08: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
Mark O'Brien
ac39a1bf35 add iptables as desired package 2020-11-13 16:29:48 +00: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
Kevin Fenzi
694727083a buildvm / fedora 33 / staging: try and switch armv7 vm's over to f33/uefi
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-11-04 14:51:09 -08:00
Kevin Fenzi
fc0a3f5d2c tasks / cloud_setup_basic: drop duplicate when: clause 2020-08-07 11:51:48 -07:00
Mark O'Brien
d95a26b3e7 [maintainer-test] lets try update without creating the file 2020-07-24 11:21:44 +01:00
Kevin Fenzi
43b04c54f7 2fa_client: add tags so we can just run this by itself if needed.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-24 08:26:47 -07:00
Kevin Fenzi
a53ee8f7f7 openshift: repos: this is a template now
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-11 15:14:11 -07:00