Revision 6a34f1bc
Added by Siert Z. over 11 years ago
manifests/params.pp | ||
---|---|---|
$environments = ['development', 'production']
|
||
# Where we store our puppet modules
|
||
$modules_path = "${dir}/modules"
|
||
# Where remains our manifests dir
|
||
$manifest_path = "${dir}/manifests"
|
||
# Modules in this directory would be shared across all environments
|
||
$common_modules_path = "${modules_path}/common"
|
||
|
manifests/server.pp | ||
---|---|---|
$port = $puppet::params::port,
|
||
$environments = $puppet::params::environments,
|
||
$modules_path = $puppet::params::modules_path,
|
||
$manifest_path = $puppet::params::manifest_path,
|
||
$common_modules_path = $puppet::params::common_modules_path,
|
||
$foreman_url = $foreman::params::foreman_url,
|
||
$facts = $foreman::params::facts,
|
manifests/server/config.pp | ||
---|---|---|
ensure => directory,
|
||
}
|
||
|
||
# make sure your site.pp exists (puppet #15106, foreman #1708)
|
||
file { "${puppet::server::manifest_path}/site.pp":
|
||
ensure => present,
|
||
content => "# Empty site.pp required (#1708)\n",
|
||
}
|
||
|
||
# setup empty directories for our environments
|
||
puppet::server::env {$puppet::server::environments: }
|
||
}
|
Also available in: Unified diff
fixes #1708 create site.pp even if empty