summaryrefslogtreecommitdiff
path: root/puppet
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-10-04 17:38:01 +0200
committervarac <varacanero@zeromail.org>2012-10-04 17:38:01 +0200
commit05fcb0db28279ae7c08b8c76c887f633f78a2947 (patch)
tree432c999e49a0b39780e36203a9010c4cf6467205 /puppet
parent14305e553c4f71fbeec997d585383c4c6211c1a5 (diff)
cosmetics for server_config.pp
Diffstat (limited to 'puppet')
-rw-r--r--puppet/modules/site_openvpn/manifests/server_config.pp66
1 files changed, 33 insertions, 33 deletions
diff --git a/puppet/modules/site_openvpn/manifests/server_config.pp b/puppet/modules/site_openvpn/manifests/server_config.pp
index 4a130d13..1af08b4a 100644
--- a/puppet/modules/site_openvpn/manifests/server_config.pp
+++ b/puppet/modules/site_openvpn/manifests/server_config.pp
@@ -1,52 +1,52 @@
define site_openvpn::server_config($port, $proto) {
$openvpn_configname=$name
- notice("Creating OpenVPN $openvpn_configname:
+ notice("Creating OpenVPN $openvpn_configname:
Port: $port, Protocol: $proto")
- file {
- "/etc/openvpn/${name}":
- ensure => directory,
- require => Package["openvpn"];
- }
+ file {
+ "/etc/openvpn/${name}":
+ ensure => directory,
+ require => Package['openvpn'];
+ }
- concat {
- "/etc/openvpn/${openvpn_configname}.conf":
- owner => root,
- group => root,
- mode => 644,
- warn => true,
- require => File["/etc/openvpn"],
- notify => Service["openvpn"];
- }
+ concat {
+ "/etc/openvpn/$openvpn_configname.conf":
+ owner => root,
+ group => root,
+ mode => 644,
+ warn => true,
+ require => File['/etc/openvpn'],
+ notify => Service['openvpn'];
+ }
openvpn::option {
- "ca ${openvpn_configname}":
- key => "ca",
- value => "/etc/openvpn/ca.crt",
- #require => Exec["initca ${openvpn_configname}"],
- server => "${openvpn_configname}";
- "cert ${openvpn_configname}":
- key => "cert",
- value => "/etc/openvpn/${openvpn_configname}/server.crt",
- #require => Exec["generate server cert ${openvpn_configname}"],
- server => "${openvpn_configname}";
- "key ${openvpn_configname}":
+ "ca $openvpn_configname":
+ key => 'ca',
+ value => '/etc/openvpn/ca.crt',
+ #require => Exec["initca $openvpn_configname"],
+ server => $openvpn_configname;
+ "cert $openvpn_configname":
+ key => 'cert',
+ value => "/etc/openvpn/$openvpn_configname/server.crt",
+ #require => Exec["generate server cert $openvpn_configname"],
+ server => $openvpn_configname;
+ "key $openvpn_configname":
key => "key",
- value => "/etc/openvpn/${openvpn_configname}/server.key",
- #require => Exec["generate server cert ${openvpn_configname}"],
- server => "${openvpn_configname}";
- "dh ${openvpn_configname}":
+ value => "/etc/openvpn/$openvpn_configname/server.key",
+ #require => Exec["generate server cert $openvpn_configname"],
+ server => "$openvpn_configname";
+ "dh $openvpn_configname":
key => "dh",
value => "/etc/openvpn/dh1024.pem",
- #require => Exec["generate dh param ${openvpn_configname}"],
- server => "${openvpn_configname}";
+ #require => Exec["generate dh param $openvpn_configname"],
+ server => "$openvpn_configname";
"dev $openvpn_configname":
key => "dev",
value => "tun",
server => "$openvpn_configname";
- "mode ${openvpn_configname}":
+ "mode $openvpn_configname":
key => 'mode',
value => 'server',
server => $openvpn_configname;