Puppet Class: dockerinstall::repos::update

Defined in:
manifests/repos/update.pp

Summary

Repository metadata update

Overview

Repository metadata update

Examples:

include dockerinstall::repos::update


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/repos/update.pp', line 7

class dockerinstall::repos::update {
  if $facts['os']['name'] == 'Ubuntu' {
    exec { 'apt-update-59b322f':
      command     => 'apt update',
      path        => '/bin:/usr/bin',
      refreshonly => true,
    }
  }
  elsif  $facts['os']['name'] == 'CentOS' {
    exec { 'yum-reload-59b322f':
      command     => 'yum clean all',
      path        => '/bin:/usr/bin',
      refreshonly => true,
    }
  }
}