From f1969d6f59ec5dad3e3dc38ec8918511953d1a03 Mon Sep 17 00:00:00 2001 From: Dennis Wallberg Date: Mon, 7 Sep 2015 10:59:17 +0200 Subject: added sshaccess to default --- global/overlay/etc/puppet/manifests/cosmos-site.pp | 33 +++++++++++----------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'global/overlay/etc/puppet/manifests') diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index 109c00b..60e5ad1 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -13,10 +13,24 @@ include ufw include apt include cosmos -# you need a default node +class sshaccess { + package { ['openssh-server', 'emacs23-nox']: + ensure => 'installed' + } -node default { + ufw::allow { 'allow-ssh-sunet': + port => '22', + ip => 'any', # both IPv4 and IPv6 + proto => 'tcp' + } -> + service { 'ssh': + ensure => 'running', + } +} +# you need a default node, all nodes need ssh + ufw +node default { + include sshaccess } class dockerhost { @@ -569,21 +583,6 @@ class sunet-dhcp-hosts { dhcp::host { 'mdx2.swamid': mac => "52:54:00:30:be:dd", ip => "130.242.125.92" } } -class sshaccess { - package { ['openssh-server', 'emacs23-nox']: - ensure => 'installed' - } - - ufw::allow { 'allow-ssh-sunet': - port => '22', - ip => 'any', # both IPv4 and IPv6 - proto => 'tcp' - } -> - service { 'ssh': - ensure => 'running', - } -} - class sunetops { sunet::server { 'sunet_server': } -- cgit v1.1