Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

config.pp 848 Bytes
Newer Older
Emmanuel Medernach's avatar
Emmanuel Medernach committed
1
class yum::config {
2

3 4 5 6 7 8
  file { $yum::reposdir:
    ensure => directory,
    owner => "root",
    mode  => "0755",
  }

9 10 11 12 13
  file { "/etc/yum.conf":
    owner => 'root',
    group => 'root',
    mode => '0644',
    content => template('yum/yum.conf.erb'),
Emmanuel Medernach's avatar
Emmanuel Medernach committed
14
  }
Emmanuel Medernach's avatar
Emmanuel Medernach committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
  
  if $yum::autoupdate {
    package { "yum-cron":
      ensure => 'installed',
    }

    file { "/etc/yum/yum-cron.conf":
      ensure  => present,
      source  => "puppet:///modules/yum/yum-cron.conf",
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
    }

    file { "/etc/yum/yum-cron-hourly.conf":
      ensure  => present,
      source  => "puppet:///modules/yum/yum-cron-hourly.conf",
      owner   => 'root',
      group   => 'root',
      mode    => '0644',
    }

    service { 'yum-cron':
      ensure => running,
      enable => true,
    }
  }
  
Emmanuel Medernach's avatar
Emmanuel Medernach committed
43
}