Skip to content

Commit

Permalink
Homogeneous whitespace + use mirror consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
Bischoff committed Mar 3, 2025
1 parent 0e5c31f commit f34f993
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 45 deletions.
12 changes: 6 additions & 6 deletions backend_modules/aws/host/user_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runcmd:

%{ endif }

%{ if image == "sles15"}
%{ if image == "sles15" }
zypper:
repos:
- id: os_pool_repo
Expand Down Expand Up @@ -63,7 +63,7 @@ packages: ["salt-minion"]

%{ endif }

%{ if image == "sles12sp5"}
%{ if image == "sles12sp5" }
zypper:
repos:
- id: tools_pool_repo
Expand All @@ -75,7 +75,7 @@ zypper:
packages: ["venv-salt-minion"]
%{ endif }

%{ if image == "rhel9"}
%{ if image == "rhel9" }
yum_repos:
# repo for salt
temp_tools_pool_repo:
Expand All @@ -92,7 +92,7 @@ runcmd:
- systemctl restart sshd

%{ endif }
%{ if image == "rhel8"}
%{ if image == "rhel8" }
yum_repos:
# repo for salt
temp_tools_pool_repo:
Expand All @@ -105,7 +105,7 @@ yum_repos:
packages: ["venv-salt-minion", "dbus-tools"]
%{ endif }

%{ if image == "rocky8"}
%{ if image == "rocky8" }
runcmd:
- |
cat <<EOF > /etc/yum.repos.d/temp_tools_pool_repo.repo
Expand All @@ -121,7 +121,7 @@ runcmd:
- dnf -y install venv-salt-minion
%{ endif }

%{ if image == "centos7" || image == "rhel7"}
%{ if image == "centos7" || image == "rhel7" }
yum_repos:
# repo for salt
temp_tools_pool_repo:
Expand Down
6 changes: 3 additions & 3 deletions backend_modules/azure/host/user_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ packages: ["salt-minion"]

%{ endif }

%{ if image == "rhel9"}
%{ if image == "rhel9" }
yum_repos:
# repo for salt
temp_tools_pool_repo:
Expand All @@ -133,7 +133,7 @@ yum_repos:

packages: ["salt-minion"]
%{ endif }
%{ if image == "rhel8"}
%{ if image == "rhel8" }
yum_repos:
# repo for salt
temp_tools_pool_repo:
Expand All @@ -146,7 +146,7 @@ yum_repos:

packages: ["salt-minion"]
%{ endif }
%{ if image == "centos7" || image == "rhel7"}
%{ if image == "centos7" || image == "rhel7" }
yum_repos:
# repo for salt
temp_tools_pool_repo:
Expand Down
72 changes: 36 additions & 36 deletions backend_modules/libvirt/host/user_data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ chpasswd:
list: |
root:linux
%{ if image == "tumbleweedo"}
%{ if image == "tumbleweedo" }
zypper:
repos:
- id: tools_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/saltstack/openSUSE_Tumbleweed/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/saltstack/openSUSE_Tumbleweed/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -35,7 +35,7 @@ bootcmd:
yum_repos:
# repo for salt
tools_pool_repo:
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/CentOS7-Uyuni-Client-Tools/CentOS_7/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/CentOS7-Uyuni-Client-Tools/CentOS_7/
failovermethod: priority
enabled: true
gpgcheck: false
Expand Down Expand Up @@ -66,7 +66,7 @@ bootcmd:
yum_repos:
# repo for salt
tools_pool_repo:
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/EL8-Uyuni-Client-Tools/EL_8/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/EL8-Uyuni-Client-Tools/EL_8/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand Down Expand Up @@ -107,7 +107,7 @@ bootcmd:
yum_repos:
# repo for salt
tools_pool_repo:
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/EL9-Uyuni-Client-Tools/EL_9/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/EL9-Uyuni-Client-Tools/EL_9/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand Down Expand Up @@ -139,11 +139,11 @@ runcmd:
%{ endif }
%{ endif }

%{ if image == "opensuse155o" || image == "opensuse156o" || image == "opensuse155-ci-pro"}
%{ if image == "opensuse155o" || image == "opensuse156o" || image == "opensuse155-ci-pro" }
zypper:
repos:
- id: tools_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/openSUSE_Leap_15-Uyuni-Client-Tools/openSUSE_Leap_15.0/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/openSUSE_Leap_15-Uyuni-Client-Tools/openSUSE_Leap_15.0/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -166,11 +166,11 @@ zypper:
repos:
- id: os_pool_repo
name: os_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs"}/SUSE/Products/SLE-SERVER/12-SP5/x86_64/product/
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs" }/SUSE/Products/SLE-SERVER/12-SP5/x86_64/product/
enabled: 1
autorefresh: 1
- id: tools_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/SLE12-Uyuni-Client-Tools/SLE_12/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/SLE12-Uyuni-Client-Tools/SLE_12/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -188,16 +188,16 @@ zypper:
repos:
- id: os_pool_repo
name: os_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs"}/SUSE/Products/SLE-Module-Basesystem/15-SP2/x86_64/product
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs" }/SUSE/Products/SLE-Module-Basesystem/15-SP2/x86_64/product
enabled: 1
autorefresh: 1
- id: module_server_applications_pool_repo
name: module_server_applications_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs"}/SUSE/Products/SLE-Module-Server-Applications/15-SP2/x86_64/product
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs" }/SUSE/Products/SLE-Module-Server-Applications/15-SP2/x86_64/product
enabled: 1
autorefresh: 1
- id: tools_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/SLE15-Uyuni-Client-Tools/SLE_15/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/SLE15-Uyuni-Client-Tools/SLE_15/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -217,11 +217,11 @@ zypper:
repos:
- id: os_pool_repo
name: os_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs"}/SUSE/Products/SLE-Module-Basesystem/15-SP3/x86_64/product
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs" }/SUSE/Products/SLE-Module-Basesystem/15-SP3/x86_64/product
enabled: 1
autorefresh: 1
- id: tools_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/SLE15-Uyuni-Client-Tools/SLE_15/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/SLE15-Uyuni-Client-Tools/SLE_15/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -241,11 +241,11 @@ zypper:
repos:
- id: os_pool_repo
name: os_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs"}/SUSE/Products/SLE-Module-Basesystem/15-SP4/x86_64/product
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs" }/SUSE/Products/SLE-Module-Basesystem/15-SP4/x86_64/product
enabled: 1
autorefresh: 1
- id: tools_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/SLE15-Uyuni-Client-Tools/SLE_15/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/SLE15-Uyuni-Client-Tools/SLE_15/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -263,11 +263,11 @@ zypper:
repos:
- id: os_pool_repo
name: os_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs"}/SUSE/Products/SLE-Module-Basesystem/15-SP5/x86_64/product
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs" }/SUSE/Products/SLE-Module-Basesystem/15-SP5/x86_64/product
enabled: 1
autorefresh: 1
- id: tools_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/SLE15-Uyuni-Client-Tools/SLE_15/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/SLE15-Uyuni-Client-Tools/SLE_15/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -285,11 +285,11 @@ zypper:
repos:
- id: os_pool_repo
name: os_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs"}/SUSE/Products/SLE-Module-Basesystem/15-SP6/x86_64/product
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs" }/SUSE/Products/SLE-Module-Basesystem/15-SP6/x86_64/product
enabled: 1
autorefresh: 1
- id: tools_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/SLE15-Uyuni-Client-Tools/SLE_15/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/SLE15-Uyuni-Client-Tools/SLE_15/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand Down Expand Up @@ -329,7 +329,7 @@ zypper:
%{ if product_version == "5.0-released" }
- id: container_tools_repo
name: container_tools_repo
baseurl: http://download.suse.de/ibs/SUSE:/SLE-15-SP5:/Update:/Products:/Manager50/images/repo/SUSE-Manager-Server-5.0-POOL-x86_64-Media1
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs" }/SUSE:/SLE-15-SP5:/Update:/Products:/Manager50/images/repo/SUSE-Manager-Server-5.0-POOL-x86_64-Media1
enabled: 1
autorefresh: 1
gpgcheck: false
Expand All @@ -356,7 +356,7 @@ zypper:
%{ if product_version == "5.0-released" }
- id: container_tools_repo
name: container_tools_repo
baseurl: http://download.suse.de/ibs/SUSE:/SLE-15-SP5:/Update:/Products:/Manager50/images/repo/SUSE-Manager-Proxy-5.0-POOL-x86_64-Media1/
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs" }/SUSE:/SLE-15-SP5:/Update:/Products:/Manager50/images/repo/SUSE-Manager-Proxy-5.0-POOL-x86_64-Media1/
enabled: 1
autorefresh: 1
gpgcheck: false
Expand All @@ -366,7 +366,7 @@ zypper:
# Required only for wget
- id: os_pool_repo
name: os_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs"}/SUSE/Products/SLE-Module-Basesystem/15-SP5/x86_64/product
baseurl: http://${ use_mirror_images ? mirror : "download.suse.de/ibs" }/SUSE/Products/SLE-Module-Basesystem/15-SP5/x86_64/product
enabled: 1
autorefresh: 1
gpgcheck: false
Expand Down Expand Up @@ -430,7 +430,7 @@ runcmd:
apt:
sources:
tools_pool_repo:
source: deb http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/Ubuntu2004-Uyuni-Client-Tools/xUbuntu_20.04/ /
source: deb http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/Ubuntu2004-Uyuni-Client-Tools/xUbuntu_20.04/ /
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)
Expand Down Expand Up @@ -475,7 +475,7 @@ runcmd:
apt:
sources:
tools_pool_repo:
source: deb http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/Ubuntu2204-Uyuni-Client-Tools/xUbuntu_22.04/ /
source: deb http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/Ubuntu2204-Uyuni-Client-Tools/xUbuntu_22.04/ /
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)
Expand Down Expand Up @@ -521,7 +521,7 @@ apt:
sources:
tools_pool_repo:
# TODO: change to Stable: when the tools are published
source: deb http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Master:/Ubuntu2404-Uyuni-Client-Tools/xUbuntu_24.04/ /
source: deb http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Master:/Ubuntu2404-Uyuni-Client-Tools/xUbuntu_24.04/ /
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)
Expand Down Expand Up @@ -569,7 +569,7 @@ runcmd:
apt:
sources:
tools_pool_repo:
source: deb http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/Debian12-Uyuni-Client-Tools/Debian_12/ /
source: deb http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/Debian12-Uyuni-Client-Tools/Debian_12/ /
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)
Expand Down Expand Up @@ -617,7 +617,7 @@ runcmd:
yum_repos:
# repo for salt
tools_pool_repo:
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/CentOS7-Uyuni-Client-Tools/CentOS_7/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/CentOS7-Uyuni-Client-Tools/CentOS_7/
failovermethod: priority
enabled: true
gpgcheck: false
Expand All @@ -643,7 +643,7 @@ runcmd:
yum_repos:
# repo for salt
tools_pool_repo:
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/EL8-Uyuni-Client-Tools/EL_8/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/EL8-Uyuni-Client-Tools/EL_8/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -667,7 +667,7 @@ runcmd:
yum_repos:
# repo for salt
tools_pool_repo:
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/EL9-Uyuni-Client-Tools/EL_9/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/EL9-Uyuni-Client-Tools/EL_9/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -694,7 +694,7 @@ runcmd:
yum_repos:
# repo for salt
tools_pool_repo:
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/EL9-Uyuni-Client-Tools/EL_9/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/EL9-Uyuni-Client-Tools/EL_9/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -718,7 +718,7 @@ runcmd:
yum_repos:
# repo for salt
tools_pool_repo:
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/EL8-Uyuni-Client-Tools/EL_8
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/EL8-Uyuni-Client-Tools/EL_8
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -742,7 +742,7 @@ runcmd:
yum_repos:
# repo for salt
tools_pool_repo:
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/EL9-Uyuni-Client-Tools/EL_9
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/EL9-Uyuni-Client-Tools/EL_9
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -769,7 +769,7 @@ runcmd:
yum_repos:
# repo for salt
tools_pool_repo:
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/EL8-Uyuni-Client-Tools/EL_8
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/EL8-Uyuni-Client-Tools/EL_8
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -793,7 +793,7 @@ runcmd:
yum_repos:
# repo for salt
tools_pool_repo:
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/EL9-Uyuni-Client-Tools/EL_9
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/EL9-Uyuni-Client-Tools/EL_9
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand All @@ -820,7 +820,7 @@ runcmd:
zypper:
repos:
- id: tools_pool_repo
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org"}/repositories/systemsmanagement:/Uyuni:/Stable:/openSUSE_Leap_15-Uyuni-Client-Tools/openSUSE_Leap_15.0/
baseurl: http://${ use_mirror_images ? mirror : "download.opensuse.org" }/repositories/systemsmanagement:/Uyuni:/Stable:/openSUSE_Leap_15-Uyuni-Client-Tools/openSUSE_Leap_15.0/
enabled: true
gpgcheck: false
name: tools_pool_repo
Expand Down

0 comments on commit f34f993

Please sign in to comment.