diff --git a/docs/ngcpcfg.txt b/docs/ngcpcfg.txt index 2bc50198..8f2bef6a 100644 --- a/docs/ngcpcfg.txt +++ b/docs/ngcpcfg.txt @@ -379,11 +379,19 @@ installed. Display usage information and exit. - **initialise**:: + **initialise [--without_shared]**:: If ngcpcfg was installed but isn't configured yet the 'initialise' option sets up ngcpcfg accordingly. Follow the instructions from the <> section. +Setup instructions>> section. Option '--without_shared' allows to skip shared +repository setup (which is necessary on High Availability setup only). + + **init-shared**:: + +The ngcpcfg configures shared repository to synchronise configurations between +all nodes in installation. It is necessary if ngcpcfg was initialised using +option '--without_shared'. Note: Feature is available in the High Availability +setup only. **init-mgmt** :: diff --git a/sbin/ngcpcfg b/sbin/ngcpcfg index 4ad2ae74..985940a2 100755 --- a/sbin/ngcpcfg +++ b/sbin/ngcpcfg @@ -145,6 +145,7 @@ case ${1:-} in diff|\ encrypt|\ init-mgmt|\ + init-shared|\ initialise|\ log|\ pull|\ diff --git a/scripts/initialise b/scripts/initialise index 1e465e5f..da3f6f6d 100755 --- a/scripts/initialise +++ b/scripts/initialise @@ -18,6 +18,15 @@ fi # main script +while (( "$#" )); do + case "${1}" in + --without_shared) + WITHOUT_SHARED='true' + shift + ;; + esac +done + log_debug "cd $NGCPCTL_MAIN" cd "$NGCPCTL_MAIN" @@ -60,8 +69,10 @@ if ! is_git_clean ; then fi if type -p init_ha &>/dev/null ; then - log_debug "init_ha function" - init_ha + if ! "${WITHOUT_SHARED:-false}" ; then + log_debug "init_ha function" + init_ha + fi fi if ! [ -r /etc/.gitignore ] ; then