diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-09-25 22:28:04 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-09-25 22:28:04 -0300 |
commit | fb4b9d7bffb7bf45c089a52a0c02edce570533fc (patch) | |
tree | c385903c3dfc47443733362f7e99e824274d6896 /manifests/vserver.pp | |
parent | 80c3d12b5eb6f8fa1a68d89f28101837142e57cd (diff) | |
download | puppet-nodo-fb4b9d7bffb7bf45c089a52a0c02edce570533fc.tar.gz puppet-nodo-fb4b9d7bffb7bf45c089a52a0c02edce570533fc.tar.bz2 |
Monkeysphere with ssh port
Diffstat (limited to 'manifests/vserver.pp')
-rw-r--r-- | manifests/vserver.pp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/manifests/vserver.pp b/manifests/vserver.pp index c50fa47..57eb763 100644 --- a/manifests/vserver.pp +++ b/manifests/vserver.pp @@ -18,14 +18,18 @@ class nodo::vserver inherits nodo { case $hosting_type { "direct": { - # Apply munin configuration for this node for - # directly hosted nodes. - Munin_node <<| title == $hostname |>> + # Apply munin and monkeysphere configuration for + # for directly hosted nodes. + Munin_node <<| title == $hostname |>> + Monkeysphere_host <<| title == $hostname |>> } "third-party": { # Apply munin configuration for this node for third-party # hosted nodes. munin_node { "$hostname": } + monkeysphere_node { "$hostname": + $port => $node_ssh_port, + } } } @@ -80,6 +84,11 @@ class nodo::vserver inherits nodo { port => "49$id", } + # Create a monkeysphere virtual resource to be realized in the node + @@monkeysphere_host { "$name": + port => "22$id", + } + # Sound support if $sound { if !defined(File["/usr/local/sbin/create-sound-devices"]) { |