add public workflow var

This commit is contained in:
Tykayn 2023-08-15 22:50:45 +02:00 committed by tykayn
parent ed0166db29
commit 186985289d
3 changed files with 15 additions and 12 deletions

View File

@ -11,13 +11,15 @@ idéalement dans:
# débuter
Récupérer le script d'initialisation
```bash
git clone https://forge.chapril.org/tykayn/workflow
cd workflow
mkdir -p ~/Nextcloud/ressources/workflow_nextcloud/
cd ~/Nextcloud/ressources/workflow_nextcloud/
git clone https://forge.chapril.org/tykayn/workflow public_workflow
cd public_workflow
```
Configrer les variables, puis lancer le script d'initialisation
```bash
editor workflow_variables.sh
sudo bash ~/Nextcloud/ressources/workflow_nextcloud/init_workflow_tykayn.sh
sudo bash ~/Nextcloud/ressources/workflow_nextcloud/public_workflow/initialization/init_workflow.sh
```
# TODO

View File

@ -3,7 +3,7 @@
# mise en place du workflow
#
echo "========== init de workflow par Tykayn ======="
source ~/Nextcloud/ressources/workflow_nextcloud/workflow_variables.sh
source ~/Nextcloud/ressources/workflow_nextcloud/public_workflow/workflow_variables.sh
bash ./partials/check_foler_integrity.sh
@ -17,15 +17,15 @@ fi
ansible-galaxy install coglinev3.veracrypt
echo "vérification et installation des paquets requis"
sudo ansible-playbook "$WORKFLOW_PATH/automatisation/ansible/tk_softwares.yml"
sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/tk_softwares.yml"
ansible-playbook "$WORKFLOW_PATH/automatisation/ansible/pip_modules.yml"
sudo ansible-playbook "$WORKFLOW_PATH/automatisation/ansible/snaps.yml"
ansible-playbook "$WORKFLOW_PATH/automatisation/ansible/node_packages.yml"
ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/pip_modules.yml"
sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/snaps.yml"
ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/node_packages.yml"
ansible-playbook "$WORKFLOW_PATH/automatisation/ansible/cronjob_workflow.yml"
sudo ansible-playbook "$WORKFLOW_PATH/automatisation/ansible/cronjob_workflow_root.yml"
ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/cronjob_workflow.yml"
sudo ansible-playbook "$WORKFLOW_PATH_PUBLIC/automatisation/ansible/cronjob_workflow_root.yml"
sudo apt autoremove -y
@ -111,11 +111,11 @@ if ! hash josm ; then
fi
# bash $WORKFLOW_PATH/update_git_projects.sh
# bash $WORKFLOW_PATH_PUBLIC/update_git_projects.sh
echo "ajouter dans la crontab utilisateur le script cronjob_nextcloud.sh"
echo "# toutes les 5 minutes
#*/5 * * * * bash $WORKFLOW_PATH/cronjob_nextcloud.sh
#*/5 * * * * bash $WORKFLOW_PATH_PUBLIC/cronjob_nextcloud.sh
# vérifiez avec la commande
crontab -e

View File

@ -11,6 +11,7 @@ export backup_laptop_archive_path="/home/poule/backup/encrypted"
export WORKFLOW_PATH=~/Nextcloud/ressources/workflow_nextcloud
export WORKFLOW_PATH_PUBLIC=~/Nextcloud/ressources/workflow_nextcloud/public_workflow/
export WORKFLOW_PATH_ROOT=/home/$main_user/Nextcloud/ressources/workflow_nextcloud
export ALIASES_PATH=$WORKFLOW_PATH/install/.bash_custom_aliases
# fichiers orgmode, wiki personnel