diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2015-09-13 13:08:04 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2015-09-13 13:08:04 -0300 |
commit | 40cc96409b4d0993d422a588964f023bce994e5a (patch) | |
tree | d1bd6ae71fd7c97f17288bf864abc8dfa1791705 | |
parent | 0aa982ab16ae56a3dbea5e0be02440c8dbc5119a (diff) | |
download | puppet-nodo-40cc96409b4d0993d422a588964f023bce994e5a.tar.gz puppet-nodo-40cc96409b4d0993d422a588964f023bce994e5a.tar.bz2 |
Apt module can be optional
-rw-r--r-- | manifests/base.pp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/base.pp b/manifests/base.pp index df3dd31..ec2df29 100644 --- a/manifests/base.pp +++ b/manifests/base.pp @@ -10,13 +10,18 @@ class nodo::base( include nodo::subsystem::profile include nodo::subsystem::screen include nodo::subsystem::screen::startup - include nodo::subsystem::apt include nodo::subsystem::backup include nodo::subsystem::mail include nodo::subsystem::sshd include nodo::subsystem::hostname include nodo::subsystem::local + # Apt module + $apt = hiera('nodo::subsystem::apt', true) + if $apt == true { + include nodo::subsystem::apt + } + # Declare subsystem classes class { [ 'nodo::subsystem::hosts', 'nodo::subsystem::motd' ]: } |