diff options
author | elijah <elijah@riseup.net> | 2015-01-05 17:03:20 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-01-05 17:03:20 -0800 |
commit | bd098f1691307685958d4a07caba9812c025e163 (patch) | |
tree | 0791bf34472bad3820a8dabe8dd8d238ee46a3dd /puppet/modules/site_openvpn | |
parent | ed5793260ecacadcef53e534f71cc8aa2015b07a (diff) |
vpn: each openvpn process needs a unique status file name. closes #6608
Diffstat (limited to 'puppet/modules/site_openvpn')
-rw-r--r-- | puppet/modules/site_openvpn/manifests/server_config.pp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/puppet/modules/site_openvpn/manifests/server_config.pp b/puppet/modules/site_openvpn/manifests/server_config.pp index 466f6d00..221c79a7 100644 --- a/puppet/modules/site_openvpn/manifests/server_config.pp +++ b/puppet/modules/site_openvpn/manifests/server_config.pp @@ -57,6 +57,8 @@ define site_openvpn::server_config( $management, $config, $tls_remote = undef) { $openvpn_configname = $name + $shortname = regsubst(regsubst($name, '_config', ''), '_', '-') + $openvpn_status_filename = "/var/run/openvpn-status-${shortname}" concat { "/etc/openvpn/${openvpn_configname}.conf": @@ -187,7 +189,7 @@ define site_openvpn::server_config( server => $openvpn_configname; "status ${openvpn_configname}": key => 'status', - value => '/var/run/openvpn-status 10', + value => "${openvpn_status_filename} 10", server => $openvpn_configname; "status-version ${openvpn_configname}": key => 'status-version', |