mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Add a new strategy for custom content
This allows a profile to more easily isolate customizations from the base profile
This commit is contained in:
parent
eabb212e58
commit
d7c219f2a8
@ -40,6 +40,13 @@ python3
|
||||
%include /tmp/cryptpkglist
|
||||
%end
|
||||
|
||||
# A kickstart.custom file is provided to enable easily adding
|
||||
# kickstart content without modifying the stock file.
|
||||
# While the stock file may be safely modified, using the .custom
|
||||
# files may allow for more easily rebasing custom profiles to newer
|
||||
# stock profiles
|
||||
%include /tmp/kickstart.custom
|
||||
|
||||
%pre
|
||||
profile=$(grep ^profile: /etc/confluent/confluent.deploycfg |awk '{print $2}')
|
||||
mgr=$(grep deploy_server /etc/confluent/confluent.deploycfg |awk '{print $2}')
|
||||
|
4
confluent_osdeploy/el8/profiles/default/kickstart.custom
Normal file
4
confluent_osdeploy/el8/profiles/default/kickstart.custom
Normal file
@ -0,0 +1,4 @@
|
||||
# Any custom kickstart additions may go here. It may be required to
|
||||
# modify base kickstart file to change certain portions, but adding
|
||||
# custom content to this file allows for most convenient way to
|
||||
# refresh to a newer base profile if desired.
|
@ -0,0 +1,4 @@
|
||||
. /tmp/functions
|
||||
# This is a convenient place to keep customizations separate from modifying the stock scripts
|
||||
# While modification of the stock scripts is fine, it may be easier to rebase to a newer
|
||||
# stock profile if the '.custom' files are used.
|
@ -14,9 +14,7 @@ export nodename mgr profile
|
||||
. /etc/confluent/functions
|
||||
|
||||
|
||||
# Here is the most appropriate place to customize, for example:
|
||||
#run_remote script.sh
|
||||
#run_remote_python script.py
|
||||
run_remote firstboot.custom
|
||||
|
||||
|
||||
curl -X POST -d 'status: complete' -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $apikey" https://$mgr/confluent-api/self/updatestatus
|
||||
|
@ -0,0 +1,4 @@
|
||||
. /tmp/functions
|
||||
# This is a convenient place to keep customizations separate from modifying the stock scripts
|
||||
# While modification of the stock scripts is fine, it may be easier to rebase to a newer
|
||||
# stock profile if the '.custom' files are used.
|
@ -22,7 +22,10 @@ fi
|
||||
|
||||
# run_remote will download and execute from /var/lib/confluent/public/<os>/scripts/ directory
|
||||
# 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.
|
||||
|
||||
# Add content as below:
|
||||
# run_remote example.sh
|
||||
# run_remote_python example.py
|
||||
run_remote post.custom
|
||||
|
||||
|
||||
|
@ -0,0 +1,4 @@
|
||||
. /tmp/functions
|
||||
# This is a convenient place to keep customizations separate from modifying the stock scripts
|
||||
# While modification of the stock scripts is fine, it may be easier to rebase to a newer
|
||||
# stock profile if the '.custom' files are used.
|
@ -63,3 +63,5 @@ if [ -e /tmp/installdisk ]; then
|
||||
echo ignoredisk --only-use $(cat /tmp/installdisk) >> /tmp/partitioning
|
||||
echo autopart --nohome $LUKSPARTY >> /tmp/partitioning
|
||||
fi
|
||||
curl -f https://$mgr/confluent-public/os/$profile/kickstart.custom > /tmp/kickstart.custom
|
||||
run_remote pre.custom
|
||||
|
Loading…
Reference in New Issue
Block a user