]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/log
ceph-cm-ansible.git
7 months agoAnsible Role for deploying grafana-agent 734/head
Adam Kraitman [Mon, 24 Apr 2023 18:22:06 +0000 (21:22 +0300)]
Ansible Role for deploying grafana-agent

Signed-off-by: Adam Kraitman <akraitma@redhat.com>
2 years agoMerge pull request #739 from dmick/main
Zack Cerza [Thu, 11 May 2023 21:48:15 +0000 (15:48 -0600)]
Merge pull request #739 from dmick/main

tools/checkcerts.py: add paddles.front to list of checked hosts

2 years agotools/checkcerts.py: add paddles.front to list of checked hosts 739/head
Dan Mick [Thu, 11 May 2023 21:40:05 +0000 (14:40 -0700)]
tools/checkcerts.py: add paddles.front to list of checked hosts

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoMerge pull request #733 from ceph/tests
adam kraitman [Tue, 9 May 2023 10:32:38 +0000 (13:32 +0300)]
Merge pull request #733 from ceph/tests

github: add syntax and lint checks

2 years agoMerge pull request #738 from dmick/wip-cobbler-python-scl
Zack Cerza [Thu, 4 May 2023 18:43:24 +0000 (12:43 -0600)]
Merge pull request #738 from dmick/wip-cobbler-python-scl

cephlab_ansible.sh: use scl rh-python38 on CentOS 7

2 years agoMerge pull request #737 from dmick/wip-centos-8.5
Zack Cerza [Thu, 4 May 2023 18:42:57 +0000 (12:42 -0600)]
Merge pull request #737 from dmick/wip-centos-8.5

cobbler: Add CentOS 8.5, fix up obsolete get_url parameter

2 years agocephlab_ansible.sh: use scl rh-python38 on CentOS 7 738/head
Dan Mick [Thu, 4 May 2023 07:58:02 +0000 (00:58 -0700)]
cephlab_ansible.sh: use scl rh-python38 on CentOS 7

cephlab_ansible.sh runs at the very end of the installation process
during a cobbler install for fog image capture, on first reboot of the
freshly-cobblered system.

Cobbler runs on a CentOS 7 installation today, but its python is too
old to support modern ansible.  The SCL for python 3.8 is installed
on cobbler.  Add code here to, if installed, enable the SCL (by setting
some paths in the trigger script that is executed on the cobbler server
after the installed host reboots; a curl fetch is placed at the end of
/etc/rc.local, and this script runs to finish up all the configuration
of the host for teuthology use.

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoAdd CentOS-8.5 (to build centos8.stream on top of newer release) 737/head
Dan Mick [Wed, 3 May 2023 23:28:08 +0000 (16:28 -0700)]
Add CentOS-8.5 (to build centos8.stream on top of newer release)

centos8.stream is an odd build because of bugs; we don't use CentOS 8.5
directly anymore, but it's now the base of the stream image.

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agocobbler_profile download_iso.yml: use checksum parameter
Dan Mick [Wed, 3 May 2023 23:26:30 +0000 (16:26 -0700)]
cobbler_profile download_iso.yml: use checksum parameter

sha256sum was deprecated, and disappeared by ansible-core 2.10.
checksum: "sha256:<sum>" is the same.

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoMerge pull request #731 from dmick/wip-remove-centos-mirrorlists
Ken Dreyer [Tue, 25 Apr 2023 16:04:20 +0000 (12:04 -0400)]
Merge pull request #731 from dmick/wip-remove-centos-mirrorlists

Remove local mirrorlist cache for Centos8 testhosts

2 years agoRemove stream.yml from testnode role; leave repo files be 731/head
Dan Mick [Mon, 24 Apr 2023 22:59:52 +0000 (15:59 -0700)]
Remove stream.yml from testnode role; leave repo files be

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agopublic_facing: skip no-tabs linter rule on single task 733/head
Ken Dreyer [Fri, 21 Apr 2023 14:57:15 +0000 (10:57 -0400)]
public_facing: skip no-tabs linter rule on single task

Instead of skipping ansible-lint's no-tabs rule globally, apply it on
this single task that uses a tab (\t) character.

Longer-term, we could replace this tab with a space because /etc/hosts
can use either whitespace character. I'm taking a cautious approach
today for simplicity.

2 years agouse spaces around variables for ansible-lint
Ken Dreyer [Fri, 21 Apr 2023 14:48:14 +0000 (10:48 -0400)]
use spaces around variables for ansible-lint

2 years agofirmware: fix task imports for ansible-lint
Ken Dreyer [Fri, 21 Apr 2023 14:49:34 +0000 (10:49 -0400)]
firmware: fix task imports for ansible-lint

ansible-lint cannot load tasks with these longer parent paths.

load-failure: [Errno 2] No such file or directory (filenotfounderror)

2 years agorook: remove duplicate YAML key "wait"
Ken Dreyer [Thu, 20 Apr 2023 21:45:06 +0000 (17:45 -0400)]
rook: remove duplicate YAML key "wait"

caught with ansible-lint

2 years agogithub: add syntax and lint checks
Ken Dreyer [Thu, 20 Apr 2023 21:04:55 +0000 (17:04 -0400)]
github: add syntax and lint checks

Run Ansible's syntax checks and ansible-lint on every PR and Git push.

Ignore some common ansible-lint errors so we can get to green quickly.
We can re-evaluate this list later and perhaps fix some of them down the
road.

2 years agoMerge pull request #725 from dmick/main
Dan Mick [Fri, 21 Apr 2023 10:00:52 +0000 (03:00 -0700)]
Merge pull request #725 from dmick/main

tools/checkcerts.py: apparently SSLError is also possible, catch

2 years agoRemove mirrorlists for CentOS 8
Dan Mick [Thu, 20 Apr 2023 20:50:12 +0000 (13:50 -0700)]
Remove mirrorlists for CentOS 8

They were failing similarly to EPEL mirrorlists (old broken mirror
machines, out-of-date lists), so let's try going back to out-of-the-box
repo configurations.  Perhaps several years later they'll work better.

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoRemove "switch back from mirrorlist" code for CentOS
Dan Mick [Thu, 20 Apr 2023 20:26:12 +0000 (13:26 -0700)]
Remove "switch back from mirrorlist" code for CentOS

The plan is to use mirrorlist exclusively (as we've done for
EPEL) because the upstream infra is changing more rapidly than
our fixed list of mirrors, and hopefully it's more stable than
it was in the past when we were driven to this coping mechanism
of caching mirror lists.

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoMerge pull request #730 from ceph/rm-beta
adam kraitman [Thu, 20 Apr 2023 13:15:16 +0000 (16:15 +0300)]
Merge pull request #730 from ceph/rm-beta

common: remove RHEL beta handling

2 years agocommon: remove RHEL beta handling 730/head
Ken Dreyer [Mon, 17 Apr 2023 20:56:40 +0000 (16:56 -0400)]
common: remove RHEL beta handling

Now that mainly care about containers and we test against CentOS Stream,
there's almost no value in testing Ceph with RHEL Beta content.

The rhel-entitlements.yml playbook is very complicated, and dropping
this feature will make it easier to simply and refactor further.

2 years agoMerge pull request #729 from ceph/epel-major-version
adam kraitman [Mon, 17 Apr 2023 20:07:12 +0000 (23:07 +0300)]
Merge pull request #729 from ceph/epel-major-version

common: use ansible_distribution_major_version in epel repos

2 years agocommon: use ansible_distribution_major_version in epel repos 729/head
Ken Dreyer [Mon, 17 Apr 2023 19:28:22 +0000 (15:28 -0400)]
common: use ansible_distribution_major_version in epel repos

RHEL systems use roles/common/tasks/rhel-entitlements.yml, and this sets
Yum's $releasever to a specific RHEL minor release (eg. 8.4 or 8.6). As
a result. Fedora's MirrorManager does not return any EPEL repositories
for these minor RHEL versions.

We set a static $releasever in rhel-entitlements.yml so that we pin to
old RHEL RPM content in our old RHEL nodes. We probably need to re-think
this strategy since our CentOS Stream nodes do not (cannot) do this, and
Red Hat does not really support pinning to old versions without an EUS
subscription.

Rather than untangling all that and removing our $releasever
manipulation altogether, this commit simply hard-codes
ansible_distribution_major_version ("8", "9", etc) into the EPEL .repo
files, ignoring $releasever for EPEL.

A longer-term fix would be to stop mangling $releasever on RHEL.

2 years agoMerge pull request #726 from ceph/epel-metalink
adam kraitman [Thu, 13 Apr 2023 15:38:58 +0000 (18:38 +0300)]
Merge pull request #726 from ceph/epel-metalink

common: use EPEL metalink

2 years agocommon: use EPEL metalink 726/head
Ken Dreyer [Wed, 12 Apr 2023 18:55:02 +0000 (14:55 -0400)]
common: use EPEL metalink

Some mirrors are stale (https://pagure.io/fedora-infrastructure/issue/11233)

Use MirrorManager's metalink application so we always get up-to-date
mirrors.

MirrorManager will also return the list of mirror that carry each
architecture (x86_64, aarch64, etc) so we will not need to manage that
information ourselves here.

2 years agotools/checkcerts.py: apparently SSLError is also possible, catch 725/head
Dan Mick [Sat, 1 Apr 2023 20:04:54 +0000 (13:04 -0700)]
tools/checkcerts.py: apparently SSLError is also possible, catch

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoMerge pull request #724 from dmick/wip-check-add-sentry
Zack Cerza [Wed, 15 Mar 2023 01:28:00 +0000 (19:28 -0600)]
Merge pull request #724 from dmick/wip-check-add-sentry

2 years agoAdd sentry.ceph.com to checkcerts.py 724/head
Dan Mick [Wed, 15 Mar 2023 01:24:55 +0000 (18:24 -0700)]
Add sentry.ceph.com to checkcerts.py

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoMerge pull request #722 from ceph/paddles-fixes
Dan Mick [Thu, 2 Mar 2023 11:06:15 +0000 (03:06 -0800)]
Merge pull request #722 from ceph/paddles-fixes

paddles: Updates required for migration to new host

2 years agoMerge pull request #723 from ceph/paddles-postgres-exporter
Dan Mick [Thu, 2 Mar 2023 11:05:12 +0000 (03:05 -0800)]
Merge pull request #723 from ceph/paddles-postgres-exporter

paddles: Deploy postgres-exporter

2 years agopaddles: Deploy postgres-exporter 723/head
Zack Cerza [Wed, 1 Mar 2023 00:22:53 +0000 (17:22 -0700)]
paddles: Deploy postgres-exporter

When in containerized mode.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agopaddles: Tell postgres to trust the Docker network 722/head
Zack Cerza [Tue, 28 Feb 2023 00:13:35 +0000 (17:13 -0700)]
paddles: Tell postgres to trust the Docker network

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agopaddles: Tell postgres to listen on all interfaces
Zack Cerza [Mon, 27 Feb 2023 23:37:32 +0000 (16:37 -0700)]
paddles: Tell postgres to listen on all interfaces

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agopaddles: Correct paddles_docker_packages
Zack Cerza [Mon, 27 Feb 2023 23:29:05 +0000 (16:29 -0700)]
paddles: Correct paddles_docker_packages

python-docker doesn't exist on 20.04; python3-docker does, and also on
18.04, and requires python3-requests.

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #721 from dmick/wip-checkcerts
Dan Mick [Tue, 21 Feb 2023 01:33:26 +0000 (17:33 -0800)]
Merge pull request #721 from dmick/wip-checkcerts

Add checkcerts, to use with cron to warn about expiring certs

2 years agoAdd checkcerts, to use with cron to warn about expiring certs 721/head
Dan Mick [Wed, 15 Feb 2023 04:24:04 +0000 (20:24 -0800)]
Add checkcerts, to use with cron to warn about expiring certs

This originally lived on gitbuilder-archive, and I've moved it,
revamped it, added some args, added some hosts, modified some emails,
ported to Py3, stopped using external programs.  It's quick to run
in default mode where it just reports to the terminal; it'll also
be quiet and only send email about old certs.

The timezone processing is nonexistent on the reported expiry
date; Python timezone handling is a mess.  That could be improved but
not without a deep dive.

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoMerge pull request #715 from ceph/wip-gateway-network-scripts
Dan Mick [Mon, 13 Feb 2023 03:57:19 +0000 (19:57 -0800)]
Merge pull request #715 from ceph/wip-gateway-network-scripts

Installing the network-scripts package as an alternative when disabli…

2 years agoInstalling the network-scripts package as an alternative when disabling NM 715/head
Adam Kraitman [Tue, 10 Jan 2023 14:07:58 +0000 (16:07 +0200)]
Installing the network-scripts package as an alternative when disabling NM

And removing the nagios packages since we are not using nagios anymore

Signed-off-by: Adam Kraitman <akraitma@redhat.com>
2 years agoMerge pull request #720 from ceph/wip-centos-8stream
Dan Mick [Wed, 8 Feb 2023 20:47:20 +0000 (12:47 -0800)]
Merge pull request #720 from ceph/wip-centos-8stream

Changing centos9.stream image url to latest version for cobbler deployment

2 years agoChanging centos9.stream image url to latest version for cobbler deployment 720/head
Adam Kraitman [Mon, 30 Jan 2023 12:50:34 +0000 (14:50 +0200)]
Changing centos9.stream image url to latest version for cobbler deployment

Fixes: https://tracker.ceph.com/issues/58492
Signed-off-by: Adam Kraitman <akraitma@redhat.com>
2 years agoMerge pull request #719 from rakshithakamath94/signalfx-conf
adam kraitman [Mon, 6 Feb 2023 10:10:28 +0000 (12:10 +0200)]
Merge pull request #719 from rakshithakamath94/signalfx-conf

Signalfx agent node configuration

2 years agoSignalfx agent node configuration 719/head
Rakshitha Kamath [Thu, 22 Dec 2022 10:15:07 +0000 (15:45 +0530)]
Signalfx agent node configuration

2 years agoMerge pull request #718 from ceph/wip-fix-uuid
adam kraitman [Sun, 15 Jan 2023 15:17:00 +0000 (17:17 +0200)]
Merge pull request #718 from ceph/wip-fix-uuid

Forgot to add use_satellite = true in two places

2 years agoForgot to add use_satellite = true in two places 718/head
Adam Kraitman [Sun, 15 Jan 2023 15:15:44 +0000 (17:15 +0200)]
Forgot to add use_satellite = true in two places

In continue to PR https://github.com/ceph/ceph-cm-ansible/pull/717

Signed-off-by: Adam Kraitman <akraitma@redhat.com>
2 years agoMerge pull request #717 from ceph/wip-satellite-uuid
adam kraitman [Sun, 15 Jan 2023 15:12:33 +0000 (17:12 +0200)]
Merge pull request #717 from ceph/wip-satellite-uuid

Regenerate random machine UUID before the subscribing to the satellite

2 years agoRegenerate random machine UUID before the subscription to satellite 717/head
Adam Kraitman [Sun, 15 Jan 2023 15:03:23 +0000 (17:03 +0200)]
Regenerate random machine UUID before the subscription to satellite

Fixes: The DMI UUID of this host (XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX) matches other registered hosts
Signed-off-by: Adam Kraitman <akraitma@redhat.com>
2 years agoMerge pull request #716 from ceph/wip-no-log-remove
adam kraitman [Wed, 11 Jan 2023 13:40:39 +0000 (15:40 +0200)]
Merge pull request #716 from ceph/wip-no-log-remove

Removed no_log to see the spacific errors

2 years agoRemoved no_log to see the spacific errors 716/head
Adam Kraitman [Wed, 11 Jan 2023 13:36:44 +0000 (15:36 +0200)]
Removed no_log to see the spacific errors

https://pulpito.ceph.com/yuriw-2023-01-11_12:36:44-rbd-pacific_16.2.11_RC6-distro-default-smithi/7133168/

Signed-off-by: Adam Kraitman <akraitma@redhat.com>
2 years agoMerge pull request #714 from dmick/main
Zack Cerza [Tue, 10 Jan 2023 23:05:11 +0000 (16:05 -0700)]
Merge pull request #714 from dmick/main

auth-openvpn: port to python3 for new gw server, futures

2 years agoauth-openvpn: port to python3 for new gw server, futures 714/head
Dan Mick [Fri, 6 Jan 2023 00:04:33 +0000 (16:04 -0800)]
auth-openvpn: port to python3 for new gw server, futures

I chose to keep everything in binary throughout.  One could also
choose string, but this seemed safer for international characters.

Signed-off-by: Dan Mick <dmick@redhat.com>
2 years agoMerge pull request #713 from ceph/wip-cpan-fix
adam kraitman [Mon, 2 Jan 2023 09:26:21 +0000 (11:26 +0200)]
Merge pull request #713 from ceph/wip-cpan-fix

Installing cpanminus on apt systems

2 years agoInstalling cpanminus on apt systems wip-cpan-fix 713/head
Adam Kraitman [Mon, 2 Jan 2023 09:23:44 +0000 (11:23 +0200)]
Installing cpanminus on apt systems

Fixes: http://pulpito.front.sepia.ceph.com/yuriw-2023-01-01_20:02:51-krbd-pacific_16.2.11_RC4-testing-default-smithi/7130439/
Signed-off-by: Adam Kraitman <akraitma@redhat.com>
2 years agoMerge pull request #712 from ceph/wip-cpanm
adam kraitman [Sun, 1 Jan 2023 19:51:44 +0000 (21:51 +0200)]
Merge pull request #712 from ceph/wip-cpanm

Using the cpanm ansible module

2 years agoUsing the cpanm ansible module 712/head
Adam Kraitman [Sun, 25 Dec 2022 13:51:12 +0000 (15:51 +0200)]
Using the cpanm ansible module

Signed-off-by: Adam Kraitman <akraitma@redhat.com>
2 years agoMerge pull request #711 from wolaidajiangyou/main
Zack Cerza [Tue, 6 Dec 2022 23:19:22 +0000 (16:19 -0700)]
Merge pull request #711 from wolaidajiangyou/main

testnode: fix umount condition match error

2 years agotestnode: fix umount condition match error 711/head
sunjunnan [Tue, 6 Dec 2022 03:21:18 +0000 (03:21 +0000)]
testnode: fix umount condition match error

Signed-off-by: Sun Junnan <sunjunnan_yewu@cmss.chinamobile.com>
Signed-off-by: Yang Honggang <yanghonggang_yewu@cmss.chinamobile.com>
2 years agoMerge pull request #710 from ceph/named-acme-os
Dan Mick [Fri, 2 Dec 2022 22:50:06 +0000 (14:50 -0800)]
Merge pull request #710 from ceph/named-acme-os

nameserver: Updates to enable ACME on OpenShift

2 years agonameserver: New zones don't need to be frozen named-acme-os 710/head
Zack Cerza [Mon, 7 Nov 2022 19:34:31 +0000 (12:34 -0700)]
nameserver: New zones don't need to be frozen

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agonamed.conf.j2: Make key algorithm configurable
Zack Cerza [Fri, 4 Nov 2022 17:42:44 +0000 (11:42 -0600)]
named.conf.j2: Make key algorithm configurable

Signed-off-by: Zack Cerza <zack@redhat.com>
2 years agoMerge pull request #708 from ceph/no-rh-register
adam kraitman [Wed, 31 Aug 2022 16:41:41 +0000 (19:41 +0300)]
Merge pull request #708 from ceph/no-rh-register

cobbler: Do not use redhat_register snippet

2 years agoMerge pull request #707 from ceph/rhel9-oops
adam kraitman [Wed, 31 Aug 2022 16:41:03 +0000 (19:41 +0300)]
Merge pull request #707 from ceph/rhel9-oops

cobbler: CentOS 9 packages on CentOS 9 only

2 years agocobbler: Do not use redhat_register snippet 708/head
David Galloway [Wed, 31 Aug 2022 16:36:06 +0000 (12:36 -0400)]
cobbler: Do not use redhat_register snippet

We already run `subscription-manager` manually in kickstart so we don't need this snippet.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: CentOS 9 packages on CentOS 9 only 707/head
David Galloway [Wed, 31 Aug 2022 16:27:42 +0000 (12:27 -0400)]
cobbler: CentOS 9 packages on CentOS 9 only

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoMerge pull request #706 from ceph/cobbler-pw
adam kraitman [Mon, 29 Aug 2022 17:41:29 +0000 (20:41 +0300)]
Merge pull request #706 from ceph/cobbler-pw

cobbler-access: Update script to support Cobbler v3

2 years agocobbler-access: Update script to support Cobbler v3 706/head
David Galloway [Mon, 29 Aug 2022 17:37:40 +0000 (13:37 -0400)]
cobbler-access: Update script to support Cobbler v3

See https://cobbler.readthedocs.io/en/v3.2.2/user-guide/web-interface.html#managing-users-digest

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoMerge pull request #705 from ceph/c9-selinux
adam kraitman [Sun, 28 Aug 2022 06:16:26 +0000 (09:16 +0300)]
Merge pull request #705 from ceph/c9-selinux

common: NRPE works on CentOS 9 now

2 years agocommon: NRPE works on CentOS 9 now 705/head
David Galloway [Fri, 26 Aug 2022 15:57:45 +0000 (11:57 -0400)]
common: NRPE works on CentOS 9 now

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoMerge pull request #704 from ceph/jenkins-builder-disk
adam kraitman [Fri, 26 Aug 2022 07:01:14 +0000 (10:01 +0300)]
Merge pull request #704 from ceph/jenkins-builder-disk

tools: Add jenkins-builder-disk

2 years agoMerge pull request #703 from ceph/c9-hacks
adam kraitman [Fri, 26 Aug 2022 07:00:03 +0000 (10:00 +0300)]
Merge pull request #703 from ceph/c9-hacks

More CentOS 9 hacks

2 years agotools: Add jenkins-builder-disk 704/head
David Galloway [Thu, 25 Aug 2022 20:43:34 +0000 (16:43 -0400)]
tools: Add jenkins-builder-disk

Used to wipe the larger/faster non-root drive on Jenkins builders and mount the disk at /home/jenkins-build or /var/lib/libvirt/images (whichever is appropriate).

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Hacks for CentOS 9 on braggi disks 703/head
David Galloway [Thu, 25 Aug 2022 18:55:14 +0000 (14:55 -0400)]
cobbler: Hacks for CentOS 9 on braggi disks

During anaconda/kickstart, the smaller root drive shows up as sdb but then helpfully becomes sda after the OS is installed.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Update packages for CentOS 9
David Galloway [Thu, 25 Aug 2022 18:52:12 +0000 (14:52 -0400)]
cobbler: Update packages for CentOS 9

Do not install subscription-manager because it's not RHEL...
Do install python3-pip so the container-host role can run during the post install trigger.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler_profile: kernel_options for CentOS 9 Stream
David Galloway [Thu, 25 Aug 2022 18:50:31 +0000 (14:50 -0400)]
cobbler_profile: kernel_options for CentOS 9 Stream

inst.stage2 is required and just `ks` doesn't work anymore and needs `inst.ks`.

This will probably need to be reverted when Sepia gets Cobbler 3 since it will automatically use `inst.*` parameters for CentOS/RHEL9.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler_profile: Use a newer CentOS9 ISO
David Galloway [Thu, 25 Aug 2022 18:49:40 +0000 (14:49 -0400)]
cobbler_profile: Use a newer CentOS9 ISO

Has a lot of fixes in it like actually leaves appstream and baseos repos on the server after install

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Do not do CentOS to Stream conversion hack on CentOS9
David Galloway [Thu, 25 Aug 2022 18:29:47 +0000 (14:29 -0400)]
cobbler: Do not do CentOS to Stream conversion hack on CentOS9

It's not necessary and breaks profile import.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Don't run repos tag on CentOS9 during trigger
David Galloway [Thu, 25 Aug 2022 19:01:31 +0000 (15:01 -0400)]
cobbler: Don't run repos tag on CentOS9 during trigger

No longer needed as latest CentOS9 ISO fixed this problem.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoRevert "cobbler: Put CentOS9 Stream repos in place during kickstart"
David Galloway [Thu, 25 Aug 2022 18:28:50 +0000 (14:28 -0400)]
Revert "cobbler: Put CentOS9 Stream repos in place during kickstart"

This reverts commit 9d277d66e9e96bd2fe5d5490018536ebe0db8140.

This hack isn't needed with a newer CentOS 9 Stream ISO.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoMerge pull request #702 from ceph/not-on-centos9
adam kraitman [Thu, 25 Aug 2022 06:51:24 +0000 (09:51 +0300)]
Merge pull request #702 from ceph/not-on-centos9

cobbler: Don't install NetworkManager-initscripts-updown on CentOS9

2 years agoMerge pull request #701 from ceph/fix-c9-missing-repos
adam kraitman [Thu, 25 Aug 2022 06:50:23 +0000 (09:50 +0300)]
Merge pull request #701 from ceph/fix-c9-missing-repos

cobbler: Put CentOS9 Stream repos in place during kickstart

2 years agocobbler: Don't install NetworkManager-initscripts-updown on CentOS9 702/head
David Galloway [Wed, 24 Aug 2022 21:51:45 +0000 (17:51 -0400)]
cobbler: Don't install NetworkManager-initscripts-updown on CentOS9

It's not available.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Put CentOS9 Stream repos in place during kickstart 701/head
David Galloway [Wed, 24 Aug 2022 21:40:40 +0000 (17:40 -0400)]
cobbler: Put CentOS9 Stream repos in place during kickstart

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoMerge pull request #700 from ceph/el9
Zack Cerza [Tue, 23 Aug 2022 18:43:44 +0000 (12:43 -0600)]
Merge pull request #700 from ceph/el9

testnode: RHEL9 ceph_dependency_packages_to_remove

2 years agotestnode: Modify ceph_deps_pkgs_to_remove 700/head
David Galloway [Wed, 17 Aug 2022 21:57:15 +0000 (17:57 -0400)]
testnode: Modify ceph_deps_pkgs_to_remove

Removing python-requests removed subscription-manager which understandably causes a massive problem.

This task/list of packages may not even be necessary anyway since it's a relic from the days we didn't reimage testnodes before every job.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoMerge pull request #699 from ceph/cobbler-module
adam kraitman [Tue, 23 Aug 2022 17:32:49 +0000 (20:32 +0300)]
Merge pull request #699 from ceph/cobbler-module

Fixes to support Cobbler 3

2 years agocobbler: Install ansible from epel on RHEL9 699/head
David Galloway [Tue, 23 Aug 2022 17:03:29 +0000 (13:03 -0400)]
cobbler: Install ansible from epel on RHEL9

This used to be in pip_packages but the distro-provided one is new enough

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Fix conditional
David Galloway [Tue, 23 Aug 2022 14:04:40 +0000 (10:04 -0400)]
cobbler: Fix conditional

Not always defined

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Define a ks_dir
David Galloway [Tue, 23 Aug 2022 14:03:48 +0000 (10:03 -0400)]
cobbler: Define a ks_dir

Cobbler2: /var/lib/cobbler/kickstarts
Cobbler3: /var/lib/cobbler/templates

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Define autoinstall flag based on version
David Galloway [Mon, 22 Aug 2022 02:15:04 +0000 (22:15 -0400)]
cobbler: Define autoinstall flag based on version

Cobbler2: --kickstart
Cobbler3: --autoinstall

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Define kernel options flag based on version
David Galloway [Mon, 22 Aug 2022 02:05:58 +0000 (22:05 -0400)]
cobbler: Define kernel options flag based on version

Cobbler2: --kopts
Cobbler3: --kernel-options

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Convert var to int
David Galloway [Mon, 22 Aug 2022 01:57:21 +0000 (21:57 -0400)]
cobbler: Convert var to int

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Define settings file path based on version
David Galloway [Mon, 22 Aug 2022 01:38:56 +0000 (21:38 -0400)]
cobbler: Define settings file path based on version

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Support RHEL8 when importing tasks and vars
David Galloway [Mon, 22 Aug 2022 01:32:28 +0000 (21:32 -0400)]
cobbler: Support RHEL8 when importing tasks and vars

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocobbler: Enable Cobbler 3 Stream on RHEL8
David Galloway [Mon, 22 Aug 2022 01:20:45 +0000 (21:20 -0400)]
cobbler: Enable Cobbler 3 Stream on RHEL8

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoMerge pull request #698 from ceph/wip-ifupdown
David Galloway [Thu, 18 Aug 2022 15:32:40 +0000 (11:32 -0400)]
Merge pull request #698 from ceph/wip-ifupdown

ifup and ifdown has been deprecated replaced by ip link set $device u…

2 years agoAdding the NetworkManager-initscripts-updown package to rhel9 698/head
Adam Kraitman [Thu, 18 Aug 2022 13:47:50 +0000 (16:47 +0300)]
Adding the NetworkManager-initscripts-updown package to rhel9

Signed-off-by: Adam Kraitman <akraitma@redhat.com>
2 years agoMerge pull request #697 from ceph/el9
adam kraitman [Thu, 18 Aug 2022 08:58:59 +0000 (11:58 +0300)]
Merge pull request #697 from ceph/el9

RHEL9 support

2 years agotestnode: RHEL9 vars/templates 697/head
David Galloway [Wed, 17 Aug 2022 21:57:15 +0000 (17:57 -0400)]
testnode: RHEL9 vars/templates

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocommon: No more lsb!
David Galloway [Wed, 17 Aug 2022 21:54:24 +0000 (17:54 -0400)]
common: No more lsb!

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agocommon: vars for rhel9
David Galloway [Wed, 17 Aug 2022 21:52:53 +0000 (17:52 -0400)]
common: vars for rhel9

Signed-off-by: David Galloway <dgallowa@redhat.com>
2 years agoMerge pull request #696 from ceph/jammy-pdev
Zack Cerza [Wed, 10 Aug 2022 23:12:19 +0000 (17:12 -0600)]
Merge pull request #696 from ceph/jammy-pdev

testnode: Move python-dev to distro-specific vars files