diff options
Diffstat (limited to 'manifests/nodo.pp')
-rw-r--r-- | manifests/nodo.pp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/manifests/nodo.pp b/manifests/nodo.pp index 27d97fa..b70bc65 100644 --- a/manifests/nodo.pp +++ b/manifests/nodo.pp @@ -1,4 +1,7 @@ -class nodo { +class nodo( + $role, + $location = 'default' +) { include lsb include nodo::subsystem::sudo include nodo::subsystem::motd @@ -149,4 +152,9 @@ class nodo { mode => 0755, ensure => present, } + + # Include role class + if defined("nodo::role::$role") { + class { "nodo::role::$role": } + } } |