<Component Thruk::Plugin::NodeControl> # command will be run on the local node (the one starting the update) prior the update. Exit code != 0 will abort the update #hook_update_pre_local = # command will be run on the remote node (the one which will be updated) prior the update. Exit code != 0 will abort the update # use special syntax with script: prefix to upload local script, ex.: script:local/script.sh #hook_update_pre = if [ $(git status --porcelain 2>&1 | wc -l) -gt 0 ]; then echo "omd home not clean"; git status --porcelain 2>&1; exit 1; fi # command will be run on the remote node (the one which will be updated) after the update #hook_update_post = git add . && git commit -a -m "update to omd $(omd version -b)" # command will be run on the local node (the one starting the update) after the update. #hook_update_post_local = # set to 0 to disable ssh fallback in case http connection fails #ssh_fallback = 1 # set to 0 to disable os updates #os_updates = 1 # set to 0 to disable pkg installation #pkg_install = 1 # set to 0 to disable pkg cleanup #pkg_cleanup = 1 # set to 0 to hide 'all' buttons #all_button = 1 # number of parallel task when running actions for all hosts #parallel_tasks = 3 # set to 1 to not require confirm on all actions #skip_confirms = 0 # command used to cleanup unused omd versions #cmd_omd_cleanup = sudo -n omd cleanup # script used to do the omd update #omd_update_script = scripts/omd_update.sh cmd_yum_pkg_install = sudo -n yum install -y %PKG cmd_dnf_pkg_install = sudo -n dnf install -y %PKG cmd_apt_pkg_install = DEBIAN_FRONTEND=noninteractive sudo -En apt-get install -y %PKG cmd_yum_os_update = sudo -n yum upgrade -y cmd_dnf_os_update = sudo -n dnf upgrade -y cmd_apt_os_update = DEBIAN_FRONTEND=noninteractive sudo -En apt-get upgrade -y cmd_yum_os_sec_update = sudo -n yum upgrade -y --security cmd_dnf_os_sec_update = sudo -n dnf upgrade -y --security cmd_apt_os_sec_update = DEBIAN_FRONTEND=noninteractive sudo -En apt-get upgrade -y </Component>