summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirregulator <irregulator@riseup.net>2014-07-01 01:49:56 +0300
committerelijah <elijah@riseup.net>2014-07-01 16:05:42 -0700
commit7e278f92f34e3809d380be724f0c306430791b10 (patch)
tree3c7e703452da8c4caca3469f08c63f4e3041b71c
parent0e0ebab964339446ab59cffead5a5546c5dcb18e (diff)
Use new macro pick_node to pick vpn gateway for obfsproxy.json
-rw-r--r--provider_base/services/obfsproxy.json2
-rwxr-xr-xpuppet/modules/obfsproxy/files/obfsproxy_init2
2 files changed, 2 insertions, 2 deletions
diff --git a/provider_base/services/obfsproxy.json b/provider_base/services/obfsproxy.json
index ab92c11f..979d0ef9 100644
--- a/provider_base/services/obfsproxy.json
+++ b/provider_base/services/obfsproxy.json
@@ -4,6 +4,6 @@
"password": "= base32_secret('scramblesuit_password_'+name)",
"port" : "= rand_range('scramblesuit_port_'+name, 18000..32000)"
},
- "gateway_address": "= try{openvpn.gateway_address} || try{nodes_like_me[:services => 'openvpn']['location.name' => location.name].field('openvpn.gateway_address').shuffle.first} || try{nodes_like_me[:services => 'openvpn'].field('openvpn.gateway_address').shuffle.first}"
+ "gateway_address": "= try{pick_node(:obfs_gateway,nodes_near_me['services' => 'openvpn']).pick_fields('openvpn.gateway_address')} || try{pick_node(:obfs_gateway,nodes_like_me['services' => 'openvpn']).pick_fields('openvpn.gateway_address')}"
}
}
diff --git a/puppet/modules/obfsproxy/files/obfsproxy_init b/puppet/modules/obfsproxy/files/obfsproxy_init
index 69dbab41..01c8013a 100755
--- a/puppet/modules/obfsproxy/files/obfsproxy_init
+++ b/puppet/modules/obfsproxy/files/obfsproxy_init
@@ -83,7 +83,7 @@ case $1 in
start-stop-daemon --stop --signal USR1 --quiet --pidfile $PIDFILE --name $NAME
log_success_msg "$DESC reloaded successfully"
else
- log_failure_msg "$PIDFILE does not exists"
+ log_failure_msg "$PIDFILE does not exist"
fi
;;
*)