diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/client.pp | 2 | ||||
-rw-r--r-- | manifests/init.pp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/manifests/client.pp b/manifests/client.pp index 7927000..ed11b3a 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -1,6 +1,6 @@ # client.pp -define openvpn::client($server, $remote_host = $fqdn) { +define openvpn::client($server, $remote_host = $::fqdn) { exec { "generate certificate for ${name} in context of ${server}": command => ". ./vars && ./pkitool ${name}", diff --git a/manifests/init.pp b/manifests/init.pp index 6fd4510..a3dd70c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -8,6 +8,7 @@ class openvpn { service { 'openvpn': ensure => running, + enable => true, hasrestart => true, hasstatus => true, require => Exec['concat_/etc/default/openvpn']; |