diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-07-06 19:38:55 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-07-06 19:38:55 -0300 |
commit | 636d6bb0141525b374f009bd5d0a0e2f7695df4e (patch) | |
tree | 63f6eb202b12d363e4347c923f75ed6ec49f295a /manifests | |
parent | 2583c8df287ab86d526814fb755d655822f3c293 (diff) | |
download | puppet-nodo-636d6bb0141525b374f009bd5d0a0e2f7695df4e.tar.gz puppet-nodo-636d6bb0141525b374f009bd5d0a0e2f7695df4e.tar.bz2 |
Introduces puppet_mode config
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/base.pp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/manifests/base.pp b/manifests/base.pp index d076db4..df3dd31 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -1,5 +1,5 @@ class nodo::base( - $puppet_standalone = hiera('nodo::base::puppet_standalone', false) + $puppet_mode = hiera('nodo::base::puppet_mode', 'daemon') ){ # First include the LSB class include lsb @@ -35,13 +35,14 @@ class nodo::base( } # Puppet - case $puppet_standalone { - true: { include puppet::standalone } - false: { + case $puppet_mode { + 'standalone': { include puppet::standalone } + 'daemon': { class { 'puppet::daemon': master => hiera('nodo::role::master::main', false), } } + default: { } } # Does not work well inside vservers |