mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Infastructure for proper versioning. (#2500)
* each major role change can be recorded in upgrade_roles with a bump in iiab_revision to denote the addition * test source for https://github.com/iiab/iiab-factory/pull/134 * keep iiab_revision with role name * gitea * introduce $INSTALLED_RELEASE $INSTALLED_REVISION into ansible * set informational 'do_facts' * 7.1.5-premap tag as starting point for iiab_revision 0 * no notes at all - use underscore for role name to match what is in iiab_state.yml * use installed_revision trigger do_upgrade do_reinstall will denote a major upgrade path in the future
This commit is contained in:
parent
4a7076a0ef
commit
429aa04ce5
7 changed files with 62 additions and 15 deletions
|
@ -5,8 +5,12 @@
|
|||
if [ -f /etc/iiab/iiab.env ]; then
|
||||
source /etc/iiab/iiab.env
|
||||
STAGE=$STAGE
|
||||
INSTALLED_RELEASE=$IIAB_RELEASE
|
||||
INSTALLED_REVISION=$IIAB_REVISION
|
||||
else
|
||||
STAGE=0
|
||||
INSTALLED_RELEASE=0
|
||||
INSTALLED_REVISION=0
|
||||
fi
|
||||
|
||||
OS=`grep ^ID= /etc/*elease|cut -d= -f2`
|
||||
|
@ -84,6 +88,8 @@ SYSD_NETD=`systemctl is-enabled systemd-networkd`
|
|||
|
||||
cat <<EOF
|
||||
{"phplib_dir" : "$PHPLIB_DIR",
|
||||
"installed_release" : "$INSTALLED_RELEASE",
|
||||
"installed_revision" : "$INSTALLED_REVISION",
|
||||
"stage" : "$STAGE",
|
||||
"dhcpcd" : "$DHCPCD",
|
||||
"network_manager" : "$NM",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue