summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2012-10-25 15:35:24 +0200
committervarac <varacanero@zeromail.org>2012-10-25 15:35:24 +0200
commit76bbc01eae893206a8ed0d8d248ee565e3acdc61 (patch)
tree0d55cceda916c7458eb18075ce918360fa62fdde /puppet/modules
parentb5a5bfb69f62f5f31f8e81bdcb0dcabb7b4082f6 (diff)
use hiera gateway_address and interface variables
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_config/manifests/eip.pp11
1 files changed, 6 insertions, 5 deletions
diff --git a/puppet/modules/site_config/manifests/eip.pp b/puppet/modules/site_config/manifests/eip.pp
index 95f9dbf4..df17771a 100644
--- a/puppet/modules/site_config/manifests/eip.pp
+++ b/puppet/modules/site_config/manifests/eip.pp
@@ -5,13 +5,14 @@ class site_config::eip {
#$tor=hiera('tor')
#notice("Tor enabled: $tor")
- #$openvpn_configs=hiera('openvpn_server_configs')
- #create_resources('site_openvpn::server_config', $openvpn_configs)
-
+ $openvpn_config = hiera('openvpn')
+ $interface = hiera('interface')
+ $gateway_address = $openvpn_config['gateway_address']
+
site_openvpn::server_config { 'tcp_config':
port => '1194',
proto => 'tcp',
- local => $::ipaddress_eth0_1,
+ local => $gateway_address,
server => '10.1.0.0 255.255.248.0',
push => '"dhcp-option DNS 10.1.0.1"',
management => '127.0.0.1 1000'
@@ -19,7 +20,7 @@ class site_config::eip {
site_openvpn::server_config { 'udp_config':
port => '1194',
proto => 'udp',
- local => $::ipaddress_eth0_1,
+ local => $gateway_address,
server => '10.2.0.0 255.255.248.0',
push => '"dhcp-option DNS 10.2.0.1"',
management => '127.0.0.1 1001'