Commit 8357d587 authored by Łukasz Nowak's avatar Łukasz Nowak

[playbook] Share vars for ERP5ish playbooks

parent 6e80bdb6
...@@ -4,16 +4,8 @@ ...@@ -4,16 +4,8 @@
vars: vars:
software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56/software/erp5/software.cfg 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 bt5_list: erp5_full_text_myisam_catalog erp5_configurator_standard
startup_playbook_id: erp5-standalone.yml
playbook_name: erp5
roles: roles:
- standalone-shared - standalone-shared
--- ---
- name: fetch shared vars
include_vars: erp5-common.yml
- name: Fetch public IPv4 - 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; } 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 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 @@ ...@@ -4,17 +4,9 @@
vars: vars:
software_release_url: https://lab.node.vifib.com/nexedi/slapos/raw/1.0.56/software/wendelin/software.cfg 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 startup_playbook_id: wendelin-standalone.yml
playbook_name: wendelin 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: roles:
- standalone-shared - standalone-shared
- { role: package, package_name: socat, package_state: present } - { 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