summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorJustin Lambert <jlambert@eml.cc>2012-12-29 15:47:29 -0700
committerJustin Lambert <jlambert@eml.cc>2012-12-29 15:47:29 -0700
commitdb41070abe964f75faee90eeaeb7b9d743e86785 (patch)
tree98f698f9014d03d9f71e6d9213f58fb41de3550d /manifests
parent1052248662a3e2f54d21bfd529060e6ffb3594ac (diff)
added rspec tests, minor cleanup
Diffstat (limited to 'manifests')
-rw-r--r--manifests/client.pp2
-rw-r--r--manifests/init.pp1
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'];