From 769c4076e53b9c419d60e4aaaf09c4cfa0c02bba Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Wed, 10 Jan 2024 10:56:41 +0100 Subject: [PATCH] added comments --- home/bin/deboco | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/home/bin/deboco b/home/bin/deboco index 20912b3..476282a 100755 --- a/home/bin/deboco +++ b/home/bin/deboco @@ -216,6 +216,15 @@ deboco__init() { local debops_controller_path="$1" + # TODO: by default, update-debops.sh uses bin/ansible.vault.ipr.sh. It would be nice to make deboco create the ansible vault + # debopsupdater@mazinger:~$ cp -p ~/debops/controllers/alambix.disabled/.ansible.vault ~/ + # debopsupdater@mazinger:~$ vi /home/debopsupdater/bin/ansible.vault.ipr.sh + # debopsupdater@mazinger:~$ cat /home/debopsupdater/bin/ansible.vault.ipr.sh + # #!/usr/bin/env bash + # cat ~/.ansible.vault + # debopsupdater@mazinger:~$ chmod a+x /home/debopsupdater/bin/ansible.vault.ipr.sh + + debops_controller_path=$(realpath $debops_controller_path) log 'info' "creating debobs controller in $debops_controller_path" if [ "$debops_controller_path" = '' ] @@ -457,6 +466,8 @@ deboco__update_machine() source "$virtual_env_path/bin/activate" ANS_HOST=$(echo ${target_host_fqdn} | sed -E 's/\.univ-rennes[1]?\.fr$//') log 'debug' "ANS_HOST=${ANS_HOST}" + # example to apply just the role rsyslog: + # debops run site --limit "${ANS_HOST:-/dev/null}" -t "role::rsyslog" | tee --append ${report_file_path} debops run site --limit "${ANS_HOST:-/dev/null}" | tee --append ${report_file_path} debops_exit_code=$? echo "return code for debops run site --limit ${ANS_HOST:-/dev/null} : $debops_exit_code" >> "${report_file_path}"