Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing AlmaLinux with Rocky Linux #1844

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ jobs:
- added|modified: &os_images_scripts
- os-images/files/*
- os-images/AWS/files/*
os-images-almalinux:
os-images-rockylinux:
- added|modified:
- *state_tree_added_modified
- *os_images_scripts
- os-images/AWS/almalinux/*.hcl
- os-images/AWS/rockylinux/*.hcl
os-images-amazonlinux:
- added|modified:
- *state_tree_added_modified
Expand Down Expand Up @@ -175,15 +175,15 @@ jobs:
with:
changed-files: ${{ needs.get-changed-files.outputs.changed-files }}

almalinux:
name: AlmaLinux
rockylinux:
name: RockyLinux
needs:
- collect-jobs
- get-changed-files
if: ${{ fromJSON(needs.collect-jobs.outputs.jobs)['os-images-almalinux'] }}
if: ${{ fromJSON(needs.collect-jobs.outputs.jobs)['os-images-rockylinux'] }}
uses: ./.github/workflows/build-image-action.yml
with:
distro-name: almalinux
distro-name: rockylinux
changed-files: ${{ needs.get-changed-files.outputs.changed-files }}
runner-version: ${{ needs.collect-jobs.outputs.runner-version }}

Expand Down Expand Up @@ -314,7 +314,7 @@ jobs:
needs:
- collect-jobs
- get-changed-files
- almalinux
- rockylinux
- amazonlinux
- amazonlinux2000
- archlinux
Expand Down
2 changes: 1 addition & 1 deletion golden-state-tree/os/alma-linux/pkgs/init.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include:
- os.centos-stream.pkgs.epel-release
- os.rocky.pkgs.epel-release
- pkgs.cron
- pkgs.curl
- pkgs.dmidecode
Expand Down
2 changes: 1 addition & 1 deletion golden-state-tree/os/centos-stream/pkgs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ include:
- pkgs.samba

{#- OS Specific packages install #}
- .epel-release
- os.rocky.pkgs.epel-release
2 changes: 1 addition & 1 deletion golden-state-tree/os/centos/pkgs/init.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include:
- os.centos-stream.pkgs.epel-release
- os.rocky.pkgs.epel-release
- pkgs.cron
- pkgs.curl
- pkgs.dmidecode
Expand Down
4 changes: 3 additions & 1 deletion golden-state-tree/os/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ include:
- os.alma-linux
{%- elif grains.get("oscodename") == 'Amazon Linux 2' %}
- os.amazon
{%- elif grains.get("oscodename") == 'Amazon Linux 2023' %}
{%- elif grains.get("osfinger") == 'Amazon Linux-2023' %}
- os.amazon2023
{%- elif grains['os_family'] == 'Arch' %}
- os.arch
{%- elif grains['os'] == 'CentOS' %}
- os.centos
{%- elif grains['os'] == 'CentOS Stream' %}
- os.centos-stream
{%- elif grains['os'] == 'Rocky' %}
- os.rocky
{%- elif grains['os'] == 'Debian' %}
- os.debian
{%- elif grains['os'] == 'Fedora' %}
Expand Down
8 changes: 8 additions & 0 deletions golden-state-tree/os/rocky/config/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include:
- config.path
- config.ulimits
- config.locale
- config.sssd
- config.timezone
- config.dhclient
- config.sshd_config
8 changes: 8 additions & 0 deletions golden-state-tree/os/rocky/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include:
- .config
- .pkgs
- download.vault

{%- if pillar.get('github_actions_runner', False) %}
- github-actions-runner
{%- endif %}
42 changes: 42 additions & 0 deletions golden-state-tree/os/rocky/pkgs/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
include:
- pkgs.cron
- pkgs.curl
- pkgs.dmidecode
- pkgs.dnsutils
- pkgs.docker
- pkgs.gcc
- pkgs.gpg
- pkgs.ipset
- pkgs.libcurl
- pkgs.libffi
- pkgs.libgit2
- pkgs.libsodium
- pkgs.libxml
- pkgs.libxslt
- pkgs.make
- pkgs.man
- pkgs.nginx
- pkgs.openldap
- pkgs.openssl
- pkgs.openssl-dev
- pkgs.patch
- pkgs.python3
- pkgs.python3-pip
- pkgs.rng-tools
- pkgs.rpmdevtools
- pkgs.rsync
- pkgs.sed
- pkgs.swig
- pkgs.tar
- pkgs.zlib
- pkgs.vault
- pkgs.jq
- pkgs.xz
- pkgs.tree
- pkgs.cargo {#-
- pkgs.awscli
- pkgs.amazon-cloudwatch-agent #}
- pkgs.samba

{#- OS Specific packages install #}
- .epel-release
2 changes: 2 additions & 0 deletions golden-state-tree/os/ubuntu/pkgs/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ include:
- pkgs.swig
- pkgs.tar
- pkgs.zlib
{%- if grains['osmajorrelease'] != 23 %}
- pkgs.vault
{%- endif %}
- pkgs.jq
- pkgs.xz
- pkgs.tree
Expand Down
4 changes: 2 additions & 2 deletions golden-state-tree/pkgs/libgit2.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
{%- set libgit2 = "libgit2" %}
{%- endif %}

{%- if grains['os'] in ('AlmaLinux', 'CentOS', 'CentOS Stream') %}
{%- if grains['os'] in ('AlmaLinux', 'Rocky', 'CentOS', 'CentOS Stream') %}
include:
- os.centos-stream.pkgs.epel-release
- os.rocky.pkgs.epel-release
{%- elif grains['oscodename'] == 'Amazon Linux 2' %}
include:
- os.amazon.pkgs.epel-release
Expand Down
4 changes: 2 additions & 2 deletions golden-state-tree/pkgs/libsodium.sls
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
{%- set libsodium = 'libsodium' %}
{%- endif %}

{%- if grains['os'] in ('AlmaLinux', 'CentOS', 'CentOS Stream') %}
{%- if grains['os'] in ('AlmaLinux', 'Rocky', 'CentOS', 'CentOS Stream') %}
include:
- os.centos-stream.pkgs.epel-release
- os.rocky.pkgs.epel-release
{%- elif grains['oscodename'] == 'Amazon Linux 2' %}
include:
- os.amazon.pkgs.epel-release
Expand Down
2 changes: 1 addition & 1 deletion golden-state-tree/pkgs/libxml.sls
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{%- if grains['os'] in ['Ubuntu', 'Debian'] %}
{%- set libxml2 = "libxml2-dev" %}
{%- elif grains['os'] in ['AlmaLinux', 'Fedora', 'CentOS', 'CentOS Stream'] or grains.os_family == 'Suse' %}
{%- elif grains['os'] in ['AlmaLinux', 'Fedora', 'Rocky', 'CentOS', 'CentOS Stream'] or grains.os_family == 'Suse' %}
{%- set libxml2 = "libxml2-devel" %}
{%- else %}
{%- set libxml2 = "libxml2" %}
Expand Down
2 changes: 1 addition & 1 deletion golden-state-tree/pkgs/libxslt.sls
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{%- if grains['os'] in ['Ubuntu', 'Debian'] %}
{%- set libxslt = "libxslt1-dev" %}
{%- elif grains['os'] in ['AlmaLinux', 'Fedora', 'CentOS', 'CentOS Stream', 'VMware Photon OS'] or grains.os_family == 'Suse' %}
{%- elif grains['os'] in ['AlmaLinux', 'Fedora', 'Rocky', 'CentOS', 'CentOS Stream', 'VMware Photon OS'] or grains.os_family == 'Suse' %}
{%- set libxslt = "libxslt-devel" %}
{%- else %}
{%- set libxslt = "libxslt" %}
Expand Down
2 changes: 1 addition & 1 deletion golden-state-tree/pkgs/python3.sls
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{%- set python3_dev = 'python3-devel' %}
{%- elif grains['os'] == 'Fedora' %}
{%- set python3_dev = 'python3-devel' %}
{%- elif grains['os'] in ('AlmaLinux', 'CentOS', 'CentOS Stream', 'RedHat') %}
{%- elif grains['os'] in ('AlmaLinux', 'Rocky', 'CentOS', 'CentOS Stream', 'RedHat') %}
{%- if grains['osrelease'].startswith('8') %}
{%- set python3_dev = 'python36-devel' %}
{%- elif grains['osrelease'].startswith('9') %}
Expand Down
11 changes: 9 additions & 2 deletions golden-state-tree/pkgs/swig.sls
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
{%- if grains['os'] == 'CentOS Stream' and grains['osmajorrelease'] >= 9 %}
centos-crb-repo:
pkgrepo.managed:
- hunamename: CentOS Stream $releasever - CRB
- humanname: CentOS Stream $releasever - CRB
- mirrorlist: https://mirrors.centos.org/metalink?repo=centos-crb-$stream&arch=$basearch&protocol=https,http
- gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
- gpgcheck: 1
- enabled: 1
{%- elif grains['os'] == 'AlmaLinux' and grains['osmajorrelease'] >= 9 %}
centos-crb-repo:
pkgrepo.managed:
- hunamename: AlmaLinux $releasever - CRB
- humanname: AlmaLinux $releasever - CRB
- mirrorlist: https://mirrors.almalinux.org/mirrorlist/$releasever/crb
- gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux-9
- gpgcheck: 1
- enabled: 1
{%- elif grains['os'] == 'Rocky' and grains['osmajorrelease'] >= 9 %}
rocky-crb-repo:
pkgrepo.managed:
- humanname: Rocky $releasever - CRB
- name: crb
- gpgcheck: 1
- enabled: 1
{%- endif %}

swig:
Expand Down
2 changes: 2 additions & 0 deletions os-images/AWS/rockylinux/rockylinux-8-arm64.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ami_filter = "Rocky-8-EC2-Base-8.9*aarch64"
instance_type = "m6g.large"
2 changes: 2 additions & 0 deletions os-images/AWS/rockylinux/rockylinux-8-x86_64.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ami_filter = "Rocky-8-EC2-Base-8.9*x86_64"
instance_type = "t3a.large"
2 changes: 2 additions & 0 deletions os-images/AWS/rockylinux/rockylinux-9-arm64.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ami_filter = "Rocky-9-EC2-Base-9.3*aarch64"
instance_type = "m6g.large"
2 changes: 2 additions & 0 deletions os-images/AWS/rockylinux/rockylinux-9-x86_64.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ami_filter = "Rocky-9-EC2-Base-9.3*x86_64"
instance_type = "t3a.large"
Loading
Loading