diff options
-rw-r--r-- | manifests/base.pp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/manifests/base.pp b/manifests/base.pp index 687619d..62dc37d 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -1,4 +1,6 @@ -class nodo::base { +class nodo::base( + $puppet_standalone = hiera('nodo::base::puppet_standalone', false) +){ # First include the LSB class include lsb @@ -30,9 +32,10 @@ class nodo::base { # Require admin accounts' class require users::admin - # Puppet daemon - class { 'puppet::daemon': - master => hiera('nodo::role::master::main', false) + # Puppet + case $puppet_standalone { + true: { include puppet::standalone } + false: { include puppet::daemon } } # Does not work well inside vservers |