Commit 972dc3e6 authored by Birin Sanchez's avatar Birin Sanchez
Browse files

ldh_middleware role: Make .deb file location configurable


by ldh_deb_file variable.
Signed-off-by: Birin Sanchez's avatarBirin Sanchez <birin.sanchez@puri.sm>
parent 895b37a8
Pipeline #4033 passed with stage
in 49 seconds
......@@ -44,3 +44,8 @@
ldh_nginx_ssl_key_src_path: "cert_keys/{{ ansible_fqdn }}.key.plain"
ldh_nginx_ssl_key_path: "/etc/ssl/private/{{ ansible_fqdn }}.key.plain"
ldh_nginx_log_error: true
# Location of Debian file used to install Keel/LDH. Uncomment next
# line and update the absolute path where you stored your .deb
# file.
# ldh_deb_file: /tmp/ldh-middleware_latest.deb
......@@ -153,6 +153,11 @@ Role Variables
used to create the SSL certificate. Default value:
`/etc/ssl/private/example.com.key.plain`
* `ldh_deb_file`
Absolute path of .deb file that Ansible will use to install
Keel/LDH. Default value: `/tmp/ldh-middleware_latest.deb`
Dependencies
------------
......
......@@ -43,3 +43,5 @@ ldh_nginx_ssl_cert_path: "/etc/ssl/certs/example.com.crt"
ldh_nginx_ssl_key_src_path: "cert_keys/example.com.key.plain"
ldh_nginx_ssl_key_path: "/etc/ssl/private/example.com.key.plain"
ldh_nginx_https_redirect: "https://example.com"
ldh_deb_file: /tmp/ldh-middleware_latest.deb
......@@ -8,7 +8,7 @@
- name: Install ldh_middleware from .deb
apt:
deb: /tmp/ldh-middleware_0.0.2_amd64.deb
deb: "{{ ldh_deb_file }}"
- name: Copy sample link_profile to config location
copy:
......@@ -64,18 +64,21 @@
template:
src: templates/nginx/purist_middleware.j2
dest: /etc/nginx/sites-available/purist_middleware
notify: "restart nginx"
- name: Copy SSL cert for nginx
copy:
src: "{{ ldh_nginx_ssl_cert_src_path }}"
dest: "{{ ldh_nginx_ssl_cert_path }}"
when: ldh_nginx_use_https
notify: "restart nginx"
- name: Copy SSL key for nginx
copy:
src: "{{ ldh_nginx_ssl_key_src_path }}"
dest: "{{ ldh_nginx_ssl_key_path }}"
when: ldh_nginx_use_https
notify: "restart nginx"
- name: enable ldh_middleware web for nginx
file:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment