1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

iiab_state

This commit is contained in:
Jerry Vonau 2019-10-24 11:15:25 -05:00
parent 2519c74887
commit 916d3052ae
8 changed files with 12 additions and 7 deletions

View file

@ -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."

View file

@ -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'] }

View file

@ -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'] }

View file

@ -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

View file

@ -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'] }

View file

@ -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'] }

View file

@ -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

View file

@ -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"