From 0443effcf045e1d2eaa9036d5af3476bb7585712 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 22 Mar 2016 17:36:47 -0400 Subject: [PATCH] gateway: Manage service state based on openvpn_server_name Also updated list of secrets we maintain Signed-off-by: David Galloway --- roles/gateway/README.rst | 6 +++++- roles/gateway/tasks/main.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/gateway/README.rst b/roles/gateway/README.rst index 2a9821b1..5bb66c10 100644 --- a/roles/gateway/README.rst +++ b/roles/gateway/README.rst @@ -23,11 +23,15 @@ A list of packages to install that is specific to the role. The list is defined packages: [] +A unique name to give to your OpenVPN service. This name is used to organize configuration files and start/stop the service. Defined in the secrets repo:: + + openvpn_server_name: [] + The directory in which the OpenVPN server CA, keys, certs, and user file should be saved. Defined in the secrets repo:: openvpn_data_dir: [] -Contains paths, file permission (modes), and data to store and maintain OpenVPN CA, cert, key, and main server config. Consult your server.conf on what you should define here. For reference, we have dh1024.pem, server.crt, server.key, and server.conf defined. Defined in the secrets repo:: +Contains paths, file permission (modes), and data to store and maintain OpenVPN CA, cert, key, and main server config. Consult your server.conf on what you should define here. For reference, we have dh1024.pem, server.crt, server.key, tlsauth, and server.conf defined. Defined in the secrets repo:: gateway_secrets: [] diff --git a/roles/gateway/tasks/main.yml b/roles/gateway/tasks/main.yml index 864f8ce4..734c199f 100644 --- a/roles/gateway/tasks/main.yml +++ b/roles/gateway/tasks/main.yml @@ -31,6 +31,6 @@ - name: Make sure OpenVPN service is running and enabled service: - name: openvpn@server + name: "openvpn@{{ openvpn_server_name }}" state: started enabled: yes -- 2.47.3