Commit 4fedaf54 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Rafael Monnerat

[playbook] Share vars for ERP5ish playbooks

@rafael - that's last one of my pre-prepared work for playbooks. Here in order to hide "internal" variables of playbook (like `backend_url_path`) and reuse them between different playbooks.

/reviewed-on nexedi/slapos.package!27
parent 6e80bdb6
......@@ -4,16 +4,8 @@
vars:
software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56/software/erp5/software.cfg
frontend_software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56/software/apache-frontend/software.cfg
startup_playbook_id: erp5-standalone.yml
playbook_name: erp5
request_instance_template: request-erp5.j2
request_frontend_template: request-erp5-frontend.j2
firewall_setup_template: setup-firewall.j2
frontend_master_reference: master-frn-{{ playbook_name }}
frontend_slave_reference: slave-srn-{{ playbook_name }}
backend_url_path: /tmp/playbook-{{ playbook_name }}-backend-url
public_ipv4_path: /tmp/playbook-{{ playbook_name }}-public_ipv4
bt5_list: erp5_full_text_myisam_catalog erp5_configurator_standard
startup_playbook_id: erp5-standalone.yml
playbook_name: erp5
roles:
- standalone-shared
---
- name: fetch shared vars
include_vars: erp5-common.yml
- name: Fetch public IPv4
shell: ifconfig `route -n | grep '^0\.0\.0\.0' | head -n 1 | awk '{print $NF}'` | { IFS=' :';read r;read r r a r;echo $a; }
register: public_ipv4
......
frontend_software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56/software/apache-frontend/software.cfg
request_instance_template: request-erp5.j2
request_frontend_template: request-erp5-frontend.j2
firewall_setup_template: setup-firewall.j2
frontend_master_reference: master-frn-{{ playbook_name }}
frontend_slave_reference: slave-srn-{{ playbook_name }}
backend_url_path: /tmp/playbook-{{ playbook_name }}-backend-url
public_ipv4_path: /tmp/playbook-{{ playbook_name }}-public_ipv4
......@@ -4,17 +4,9 @@
vars:
software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56/software/wendelin/software.cfg
frontend_software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56/software/apache-frontend/software.cfg
bt5_list: erp5_full_text_myisam_catalog erp5_configurator_standard erp5_wendelin_configurator
startup_playbook_id: wendelin-standalone.yml
playbook_name: wendelin
request_instance_template: request-erp5.j2
request_frontend_template: request-erp5-frontend.j2
firewall_setup_template: setup-firewall.j2
frontend_master_reference: master-frn-{{ playbook_name }}
frontend_slave_reference: slave-srn-{{ playbook_name }}
backend_url_path: /tmp/playbook-{{ playbook_name }}-backend-url
public_ipv4_path: /tmp/playbook-{{ playbook_name }}-public_ipv4
bt5_list: erp5_full_text_myisam_catalog erp5_configurator_standard erp5_wendelin_configurator
roles:
- standalone-shared
- { role: package, package_name: socat, package_state: present }
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