2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Add invoking syncfile activity to the default profiles

This commit is contained in:
Jarrod Johnson 2021-03-29 14:03:11 -04:00
parent 39a7d8d131
commit 7957a6abd4
5 changed files with 18 additions and 0 deletions

View File

@ -30,6 +30,10 @@ run_remote_python add_local_repositories
# run_remote_python will use the appropriate python interpreter path to run the specified script
# A post.custom is provided to more conveniently hold customizations, see the post.custom file.
# This will induce server side processing of the syncfile contents if
# present
run_remote_python syncfileclient
# run_remote example.sh
# run_remote_python example.py
run_remote post.custom

View File

@ -28,6 +28,10 @@ run_remote_python add_local_repositories
# run_remote_python will use the appropriate python interpreter path to run the specified script
# A post.custom is provided to more conveniently hold customizations, see the post.custom file.
# This will induce server side processing of the syncfile contents if
# present
run_remote_python syncfileclient
# run_remote example.sh
# run_remote_python example.py
run_remote post.custom

View File

@ -6,6 +6,10 @@
# run_remote and run_remote_python are available to download scripts and
# execute them.
# This will induce server side processing of the syncfile contents if
# present
run_remote_python syncfileclient
# Induce execution of remote configuration, e.g. ansible plays in ansible/onboot.d/
run_remote_config onboot

View File

@ -21,6 +21,10 @@ chmod og-rwx /etc/confluent/*
export mgr profile nodename
. /etc/confluent/functions
# This will induce server side processing of the syncfile contents if
# present
run_remote_python syncfileclient
run_remote post.custom
# Also, scripts may be placed into 'post.d', e.g. post.d/01-runfirst.sh, post.d/02-runsecond.sh

View File

@ -65,8 +65,10 @@ echo " ChrootDirectory /target" >> /etc/ssh/sshd_config
kill -HUP $(cat /run/sshd.pid)
cat /target/etc/confluent/tls/*.pem > /target/etc/confluent/ca.pem
cat /target/etc/confluent/tls/*.pem > /etc/confluent/ca.pem
chroot /target bash -c "source /etc/confluent/functions; run_remote_python syncfileclient"
chroot /target bash -c "source /etc/confluent/functions; run_remote_parts post"
source /target/etc/confluent/functions
run_remote_config post
umount /target/sys /target/dev /target/proc