Puppet Class: puppet::r10k::setup
- Inherits:
- puppet::params
- Defined in:
- manifests/r10k/setup.pp
Summary
Setup r10kOverview
Setup r10k install and configure
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'manifests/r10k/setup.pp', line 7
class puppet::r10k::setup inherits puppet::params {
include puppet::agent::install
$r10k_config_file = $puppet::params::r10k_config_file
$r10k_config_path = dirname($r10k_config_file)
# /opt/puppetlabs/puppet/cache/r10k
$r10k_vardir = "${facts['puppet_vardir']}/r10k"
exec { 'r10k-vardir':
command => "mkdir -p ${r10k_vardir}",
creates => $r10k_vardir,
path => '/bin:/usr/bin',
}
# exec in order to avoid conflict with r10k module
exec { 'r10k-confpath-setup':
command => "mkdir -p ${r10k_config_path}",
creates => $r10k_config_path,
path => '/bin:/usr/bin',
}
Class['puppet::agent::install'] -> Exec['r10k-vardir']
Class['puppet::agent::install'] -> Exec['r10k-confpath-setup']
}
|