mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 11:12:06 +00:00
iiab_state
This commit is contained in:
parent
2519c74887
commit
916d3052ae
8 changed files with 12 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
|||
INVENTORY="ansible_hosts"
|
||||
PLAYBOOK="iiab-from-cmdline.yml"
|
||||
CWD=`pwd`
|
||||
APPS=/etc/iiab/config_vars2.yml
|
||||
APPS=/etc/iiab/iiab_state.yml
|
||||
ENV=/etc/iiab/iiab.env
|
||||
if [ ! -f $PLAYBOOK ]; then
|
||||
echo -e "\nExiting: IIAB Playbook not found."
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
- vars/default_vars.yml
|
||||
- vars/{{ ansible_local.local_facts.os_ver }}.yml
|
||||
- /etc/iiab/local_vars.yml
|
||||
- /etc/iiab/config_vars2.yml
|
||||
- /etc/iiab/iiab_state.yml
|
||||
|
||||
roles:
|
||||
- { role: 0-init, tags: ['0-init'] }
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
- vars/default_vars.yml
|
||||
- vars/{{ ansible_local.local_facts.os_ver }}.yml
|
||||
- /etc/iiab/local_vars.yml
|
||||
- /etc/iiab/config_vars2.yml
|
||||
- /etc/iiab/iiab_state.yml
|
||||
|
||||
roles:
|
||||
- { role: 0-init, tags: ['0-init'] }
|
||||
|
|
|
@ -146,6 +146,11 @@ if [ "$STAGE" -lt 2 ] && [ "$1" == "--debug" ]; then
|
|||
echo -e "\n'--debug' *ignored* as STAGE (counter) < 2."
|
||||
fi
|
||||
|
||||
# to catch up images to current code to benefit from pre-installed apps
|
||||
if [ -f /etc/iiab/config_vars2.yml ]; then
|
||||
mv /etc/iiab/config_vars2.yml $APPS
|
||||
fi
|
||||
|
||||
if [ -f $APPS ]; then
|
||||
if grep -q sugar $APPS; then
|
||||
if ! grep -q mongodb $APPS; then
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
- vars/default_vars.yml
|
||||
- vars/{{ ansible_local.local_facts.os_ver }}.yml
|
||||
- /etc/iiab/local_vars.yml
|
||||
- /etc/iiab/config_vars.yml
|
||||
- /etc/iiab/iiab_state.yml
|
||||
|
||||
roles:
|
||||
- { role: 0-init, tags: ['network'] }
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
- vars/default_vars.yml
|
||||
- "vars/{{ ansible_local.local_facts.os_ver }}.yml"
|
||||
- /etc/iiab/local_vars.yml
|
||||
- /etc/iiab/config_vars2.yml
|
||||
- /etc/iiab/iiab_state.yml
|
||||
|
||||
roles:
|
||||
- { role: 0-init, tags: ['0-init'] }
|
||||
|
|
2
runrole
2
runrole
|
@ -5,7 +5,7 @@ PLAYBOOK="run-one-role.yml"
|
|||
ARGS=""
|
||||
REINSTALL=0
|
||||
CWD=`pwd`
|
||||
APPS=/etc/iiab/config_vars2.yml
|
||||
APPS=/etc/iiab/iiab_state.yml
|
||||
VARS=/etc/iiab/local_vars.yml
|
||||
|
||||
if [ ! -f $PLAYBOOK ]; then
|
||||
|
|
|
@ -16,7 +16,7 @@ iiab_local_vars_file: "{{ iiab_etc_path }}/local_vars.yml"
|
|||
# Installation status files
|
||||
iiab_env_file: "{{ iiab_etc_path }}/iiab.env"
|
||||
iiab_ini_file: "{{ iiab_etc_path }}/iiab.ini"
|
||||
iiab_installed: "{{ iiab_etc_path }}/config_vars2.yml"
|
||||
iiab_installed: "{{ iiab_etc_path }}/iiab_state.yml"
|
||||
|
||||
iiab_base: /opt/iiab
|
||||
iiab_dir: "{{ iiab_base }}/iiab"
|
||||
|
|
Loading…
Reference in a new issue