Adding a default environment
- set through puppet.conf - created symbolic link from develop -> production in code/environments - changed puppet-g10k script to be generated from a template - parameterised g10k into hieradata
This commit is contained in:
@@ -30,8 +30,12 @@
|
||||
#
|
||||
# Limitations:
|
||||
# This is designed to work on Unix-like systems only.
|
||||
class profiles::puppet::g10k {
|
||||
|
||||
class profiles::puppet::g10k (
|
||||
String $bin_path,
|
||||
String $cfg_path,
|
||||
String $environments_path,
|
||||
String $default_environment,
|
||||
){
|
||||
package { 'unzip':
|
||||
ensure => installed,
|
||||
}
|
||||
@@ -50,7 +54,7 @@ class profiles::puppet::g10k {
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
content => "#!/usr/bin/bash\n/opt/puppetlabs/bin/g10k -config /etc/puppetlabs/r10k/r10k.yaml\n",
|
||||
content => template('profiles/puppet/g10k/puppet-g10k.erb'),
|
||||
require => Archive['/tmp/g10k.zip'],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user