mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
/etc/iiab/iiab_state.yml explanation restored
This commit is contained in:
parent
768549a5d8
commit
7f93ef63b5
1 changed files with 16 additions and 0 deletions
16
runrole
16
runrole
|
@ -26,6 +26,22 @@ if [ $# -eq 0 ] || [ "$2" == "--reinstall" ] || [ "$3" == "--reinstall" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
# 2020-08-05: yes /etc/iiab/iiab_state.yml is necessary, but we DON'T
|
||||
# want to encourage sloppy operators to delete/touch this file.
|
||||
#
|
||||
# (The iiab_state.yml file should always be created by ./iiab-install,
|
||||
# for IIAB's Ansible roles that then auto-populate this file.)
|
||||
#
|
||||
# FYI ./iiab-network and ./iiab-configure likewise warn operators (IN RED!)
|
||||
# if they try to run without the existence of /etc/iiab/iiab_state.yml :
|
||||
#
|
||||
# ERROR! vars file /etc/iiab/iiab_state.yml was not found
|
||||
#
|
||||
# Needed for Stages 1-3 if not installed yet
|
||||
#if [ ! -f $IIAB_STATE_FILE ]; then
|
||||
# touch $IIAB_STATE_FILE
|
||||
#fi
|
||||
|
||||
if [ "$1" == "--reinstall" ]; then
|
||||
ARGS="$ARGS\"reinstall\":True," # Needs boolean not string so use JSON list
|
||||
REINSTALL=true
|
||||
|
|
Loading…
Add table
Reference in a new issue