promote develop to master #6
@ -99,6 +99,9 @@ lookup_options:
|
|||||||
postgresql_config_entries:
|
postgresql_config_entries:
|
||||||
merge:
|
merge:
|
||||||
strategy: deep
|
strategy: deep
|
||||||
|
profiles::yum::global::repos:
|
||||||
|
merge:
|
||||||
|
strategy: deep
|
||||||
|
|
||||||
facts_path: '/opt/puppetlabs/facter/facts.d'
|
facts_path: '/opt/puppetlabs/facter/facts.d'
|
||||||
|
|
||||||
|
|||||||
@ -15,3 +15,52 @@ profiles::packages::install:
|
|||||||
- policycoreutils
|
- policycoreutils
|
||||||
|
|
||||||
lm-sensors::package: lm_sensors
|
lm-sensors::package: lm_sensors
|
||||||
|
|
||||||
|
profiles::yum::global::repos:
|
||||||
|
baseos:
|
||||||
|
name: baseos
|
||||||
|
descr: baseos repository
|
||||||
|
target: /etc/yum.repos.d/almalinux.repo
|
||||||
|
baseurl: https://edgecache.query.consul/almalinux/%{facts.os.release.full}/BaseOS/%{facts.os.architecture}/os
|
||||||
|
gpgkey: http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-%{facts.os.release.major}
|
||||||
|
extras:
|
||||||
|
name: extras
|
||||||
|
descr: extras repository
|
||||||
|
target: /etc/yum.repos.d/almalinux.repo
|
||||||
|
baseurl: https://edgecache.query.consul/almalinux/%{facts.os.release.full}/extras/%{facts.os.architecture}/os
|
||||||
|
gpgkey: http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-%{facts.os.release.major}
|
||||||
|
appstream:
|
||||||
|
name: appstream
|
||||||
|
descr: appstream repository
|
||||||
|
target: /etc/yum.repos.d/almalinux.repo
|
||||||
|
baseurl: https://edgecache.query.consul/almalinux/%{facts.os.release.full}/AppStream/%{facts.os.architecture}/os
|
||||||
|
gpgkey: http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-%{facts.os.release.major}
|
||||||
|
powertools:
|
||||||
|
name: powertools
|
||||||
|
descr: powertools repository
|
||||||
|
target: /etc/yum.repos.d/almalinux.repo
|
||||||
|
baseurl: https://edgecache.query.consul/almalinux/%{facts.os.release.full}/PowerTools/%{facts.os.architecture}/os
|
||||||
|
gpgkey: http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-%{facts.os.release.major}
|
||||||
|
highavailability:
|
||||||
|
name: highavailability
|
||||||
|
descr: highavailability repository
|
||||||
|
target: /etc/yum.repos.d/almalinux.repo
|
||||||
|
baseurl: https://edgecache.query.consul/almalinux/%{facts.os.release.full}/HighAvailability/%{facts.os.architecture}/os
|
||||||
|
gpgkey: http://edgecache.query.consul/almalinux/RPM-GPG-KEY-AlmaLinux-%{facts.os.release.major}
|
||||||
|
epel:
|
||||||
|
name: epel
|
||||||
|
descr: epel repository
|
||||||
|
target: /etc/yum.repos.d/epel.repo
|
||||||
|
baseurl: https://edgecache.query.consul/epel/%{facts.os.release.major}/Everything/%{facts.os.architecture}
|
||||||
|
gpgkey: http://edgecache.query.consul/epel/RPM-GPG-KEY-EPEL-%{facts.os.release.major}
|
||||||
|
puppet:
|
||||||
|
name: puppet
|
||||||
|
descr: puppet repository
|
||||||
|
target: /etc/yum.repos.d/puppet.repo
|
||||||
|
baseurl: https://yum.puppet.com/puppet7/el/%{facts.os.release.major}/%{facts.os.architecture}
|
||||||
|
gpgkey: https://yum.puppet.com/RPM-GPG-KEY-puppet-20250406
|
||||||
|
unkin:
|
||||||
|
name: unkin
|
||||||
|
descr: unkin repository
|
||||||
|
target: /etc/yum.repos.d/unkin.repo
|
||||||
|
baseurl: https://repos.main.unkin.net/unkin/%{facts.os.release.major}/%{facts.os.architecture}/os
|
||||||
|
|||||||
@ -8,3 +8,53 @@ profiles::yum::global::managed_repos:
|
|||||||
- 'opstools-collectd-5'
|
- 'opstools-collectd-5'
|
||||||
- 'storage-gluster-10'
|
- 'storage-gluster-10'
|
||||||
- 'virt-ovirt-45'
|
- 'virt-ovirt-45'
|
||||||
|
|
||||||
|
profiles::yum::global::repos:
|
||||||
|
centos_8_advanced_virtualization:
|
||||||
|
name: 'virt-advanced-virtualization'
|
||||||
|
descr: 'CentOS Advanced Virtualization'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/virt/x86_64/advancedvirt-common
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Virtualization'
|
||||||
|
centos_8_ceph_pacific:
|
||||||
|
name: 'storage-ceph-pacific'
|
||||||
|
descr: 'CentOS Ceph Pacific'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/storage/x86_64/ceph-pacific
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Storage'
|
||||||
|
centos_8_rabbitmq_38:
|
||||||
|
name: 'messaging-rabbitmq-38'
|
||||||
|
descr: 'CentOS RabbitMQ 38'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/messaging/x86_64/rabbitmq-38
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Messaging'
|
||||||
|
centos_8_nfv_openvswitch:
|
||||||
|
name: 'nfv-openvswitch-2'
|
||||||
|
descr: 'CentOS NFV OpenvSwitch'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/nfv/x86_64/openvswitch-2
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-NFV'
|
||||||
|
centos_8_openstack_xena:
|
||||||
|
name: 'cloud-openstack-xena'
|
||||||
|
descr: 'CentOS OpenStack Xena'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/cloud/x86_64/openstack-xena
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Cloud'
|
||||||
|
centos_8_opstools:
|
||||||
|
name: 'opstools-collectd-5'
|
||||||
|
descr: 'CentOS OpsTools - collectd'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/opstools/x86_64/collectd-5
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-OpsTools'
|
||||||
|
centos_8_ovirt45:
|
||||||
|
name: 'virt-ovirt-45'
|
||||||
|
descr: 'CentOS oVirt 4.5'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/virt/x86_64/ovirt-45
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Virtualization'
|
||||||
|
centos_8_stream_gluster10:
|
||||||
|
name: 'storage-gluster-10'
|
||||||
|
descr: 'CentOS oVirt 4.5 - Glusterfs 10'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/storage/x86_64/gluster-10
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Storage'
|
||||||
|
|||||||
@ -15,3 +15,53 @@ sudo::purge_ignore:
|
|||||||
- '50_vdsm'
|
- '50_vdsm'
|
||||||
- '50_vdsm_hook_ovirt_provider_ovn_hook'
|
- '50_vdsm_hook_ovirt_provider_ovn_hook'
|
||||||
- '60_ovirt-ha'
|
- '60_ovirt-ha'
|
||||||
|
|
||||||
|
profiles::yum::global::repos:
|
||||||
|
centos_8_advanced_virtualization:
|
||||||
|
name: 'virt-advanced-virtualization'
|
||||||
|
descr: 'CentOS Advanced Virtualization'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/virt/x86_64/advancedvirt-common
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Virtualization'
|
||||||
|
centos_8_ceph_pacific:
|
||||||
|
name: 'storage-ceph-pacific'
|
||||||
|
descr: 'CentOS Ceph Pacific'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/storage/x86_64/ceph-pacific
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Storage'
|
||||||
|
centos_8_rabbitmq_38:
|
||||||
|
name: 'messaging-rabbitmq-38'
|
||||||
|
descr: 'CentOS RabbitMQ 38'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/messaging/x86_64/rabbitmq-38
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Messaging'
|
||||||
|
centos_8_nfv_openvswitch:
|
||||||
|
name: 'nfv-openvswitch-2'
|
||||||
|
descr: 'CentOS NFV OpenvSwitch'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/nfv/x86_64/openvswitch-2
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-NFV'
|
||||||
|
centos_8_openstack_xena:
|
||||||
|
name: 'cloud-openstack-xena'
|
||||||
|
descr: 'CentOS OpenStack Xena'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/cloud/x86_64/openstack-xena
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Cloud'
|
||||||
|
centos_8_opstools:
|
||||||
|
name: 'opstools-collectd-5'
|
||||||
|
descr: 'CentOS OpsTools - collectd'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/opstools/x86_64/collectd-5
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-OpsTools'
|
||||||
|
centos_8_ovirt45:
|
||||||
|
name: 'virt-ovirt-45'
|
||||||
|
descr: 'CentOS oVirt 4.5'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/virt/x86_64/ovirt-45
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Virtualization'
|
||||||
|
centos_8_stream_gluster10:
|
||||||
|
name: 'storage-gluster-10'
|
||||||
|
descr: 'CentOS oVirt 4.5 - Glusterfs 10'
|
||||||
|
target: /etc/yum.repos.d/ovirt.repo
|
||||||
|
baseurl: https://edgecache.query.consul/centos/8-stream/storage/x86_64/gluster-10
|
||||||
|
gpgkey: 'https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Storage'
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
# base and EPEL yum repository profiles based on the content of the
|
# base and EPEL yum repository profiles based on the content of the
|
||||||
# $managed_repos parameter, which is an array of repository names.
|
# $managed_repos parameter, which is an array of repository names.
|
||||||
class profiles::yum::global (
|
class profiles::yum::global (
|
||||||
Array[String] $managed_repos,
|
Hash $repos = {},
|
||||||
Boolean $purge = true,
|
Boolean $purge = true,
|
||||||
){
|
){
|
||||||
class { 'yum':
|
class { 'yum':
|
||||||
@ -19,44 +19,8 @@ class profiles::yum::global (
|
|||||||
purge => $purge,
|
purge => $purge,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Generate the content for the .managed file
|
# create repos
|
||||||
$managed_file_content = $managed_repos.map |$repo_name| { "${repo_name}.repo" }.join("\n")
|
create_resources('yumrepo', $repos)
|
||||||
|
|
||||||
# Create the .managed file
|
|
||||||
file { '/etc/yum.repos.d/.managed':
|
|
||||||
ensure => file,
|
|
||||||
content => $managed_file_content,
|
|
||||||
}
|
|
||||||
|
|
||||||
# Setup base repos
|
|
||||||
class { 'profiles::yum::base':
|
|
||||||
managed_repos => $managed_repos,
|
|
||||||
require => Class['profiles::pki::vaultca'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# Setup epel if included in managed_repos
|
|
||||||
class { 'profiles::yum::epel':
|
|
||||||
managed_repos => $managed_repos,
|
|
||||||
require => Class['profiles::pki::vaultca'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# Setup puppet7 if included in managed_repos
|
|
||||||
class { 'profiles::yum::puppet7':
|
|
||||||
managed_repos => $managed_repos,
|
|
||||||
require => Class['profiles::pki::vaultca'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# Setup unkin repo if included in managed_repos
|
|
||||||
class { 'profiles::yum::unkin':
|
|
||||||
managed_repos => $managed_repos,
|
|
||||||
require => Class['profiles::pki::vaultca'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# Setup ovirt repo if included in managed_repos
|
|
||||||
class { 'profiles::yum::ovirt':
|
|
||||||
managed_repos => $managed_repos,
|
|
||||||
require => Class['profiles::pki::vaultca'],
|
|
||||||
}
|
|
||||||
|
|
||||||
# makecache if changes made to repos
|
# makecache if changes made to repos
|
||||||
exec {'dnf_makecache':
|
exec {'dnf_makecache':
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user