diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-24 20:08:41 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-24 20:08:41 -0200 |
commit | 796bd7bd500b94316ca189a5aba773cd27b467dc (patch) | |
tree | ad49820d31ca8f4d696c2de9a335f3098e67c2b2 /manifests/vserver.pp | |
parent | 5b014151a2ad63c1265fb95180505ab14f6090d9 (diff) | |
download | puppet-nodo-796bd7bd500b94316ca189a5aba773cd27b467dc.tar.gz puppet-nodo-796bd7bd500b94316ca189a5aba773cd27b467dc.tar.bz2 |
Refactoring hosting type
Diffstat (limited to 'manifests/vserver.pp')
-rw-r--r-- | manifests/vserver.pp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp index b68d501..a889e9a 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -11,10 +11,7 @@ class nodo::vserver inherits nodo { dohwinfo => false, } - $hosting_type = $node_hosting_type ? { - '' => "direct", - default => "$node_hosting_type", - } + $hosting_type = hiera('nodo::vserver::hosting_type', 'direct') case $hosting_type { "direct": { @@ -22,16 +19,13 @@ class nodo::vserver inherits nodo { # for directly hosted nodes. Munin_node <<| title == $::hostname |>> Monkeysphere_host <<| title == $::hostname |>> - - # Set proxy configuration - $nodo_https_proxy = 'yes' } "third-party": { # Apply munin and monkeysphere configuration for # nodes hosted by third-parties. munin_node { "${::hostname}": } monkeysphere_host { "${::hostname}": - port => $node_ssh_port, + port => hiera('nodo::vserver::ssh_port', '22'), } # Nagios configuration |