-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure_r10k.pp
28 lines (25 loc) · 1.13 KB
/
configure_r10k.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
###### ######
## Configure R10k ##
###### ######
## This manifest requires the zack/R10k module and will attempt to
## configure R10k according to my blog post on directory environments.
## Beware! (and good luck!)
## version should correspond to the Gem version zack-r10k is tested against:
## https://forge.puppetlabs.com/zack/r10k
## (e.g. 1.5.1 for recent module versions, expected to be 2.0.3 at the next major zack-r10k release)
class { 'r10k':
# version should be set automatically to the r10k gem version
# version => '1.5.1',
sources => {
'puppet' => {
'remote' => 'https://github.com/AndyJPhillips/puppet-environments',
'basedir' => "${::settings::confdir}/environments",
'prefix' => false,
}
},
## purgedirs is deprecated, but may be needed for older versions (see https://github.com/acidprime/r10k/pull/84)
## purgedirs => ["${::settings::confdir}/environments"],
## manage_modulepath is deprecated
## manage_modulepath => true,
## modulepath => "${::settings::confdir}/environments/\$environment/modules:${::settings::confdir}/modules",
}