Puppet Class: resources_cd::main::epel
+
+
+
+
+ -
+
- Inherits: +
- resources_cd::params +
-
+
- Defined in: +
- + manifests/main/epel.pp + +
Summary
+ Class manages yum repo for epel. + +Overview
+
+
+
+
+
+
+
+resources_cd::main::epel.pp Module name: resources_cd Author: Arne Teuke +(arne_teuke@confdroid.com)
+ +
+
+
+
+
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30+ |
+
+ # File 'manifests/main/epel.pp', line 6
+
+class resources_cd::main::epel (
+
+) inherits resources_cd::params {
+ if $facts['os']['name'] == 'Rocky' and $facts['os']['release']['major'] == '9' {
+ yumrepo { 'crb':
+ enabled => '1',
+ }
+
+ exec { 'install EPEL RPM':
+ command => "dnf install -y ${epel_from_url}",
+ path => '/usr/bin',
+ unless => 'rpm -q epel-release-9-9.el9.noarch',
+ require => Yumrepo['crb'],
+ }
+
+ yumrepo {
+ 'epel':
+ descr => "Extra Packages for Enterprise Linux 9 - \$basearch",
+ mirrorlist => 'https://mirrors.fedoraproject.org/metalink?repo=epel-9&arch=$basearch&infra=$infra&content=$contentdir',
+ enabled => '1',
+ gpgcheck => '0',
+ require => Exec['install EPEL RPM'],
+ }
+ }
+}
+ |
+