2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-08-22 03:00:29 +00:00

Revise customization across RH family

This commit is contained in:
Jarrod Johnson
2020-07-24 15:45:19 -04:00
parent 235c07063c
commit cbc25c17c4
8 changed files with 24 additions and 8 deletions

View File

@@ -39,6 +39,13 @@ python
%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}')

View File

@@ -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

View File

@@ -23,7 +23,8 @@ 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

View File

@@ -62,3 +62,5 @@ if [ -e /tmp/installdisk ]; then
echo ignoredisk --only-use $(cat /tmp/installdisk) >> /tmp/partitioning
echo autopart --nohome $LUKSPARTY >> /tmp/partitioning
fi
python /etc/confluent/apiclient /confluent-public/os/$profile/kickstart.custom -o /tmp/kickstart.custom
run_remote pre.custom

View File

@@ -34,6 +34,13 @@ liveimg --url=file:///tmp/install.img
reboot
# 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}')

View File

@@ -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

View File

@@ -23,7 +23,8 @@ 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

View File

@@ -67,3 +67,5 @@ python /etc/confluent/apiclient /confluent-public/os/$profile/image.rpm -o image
rpm2cpio image.rpm | cpio -dumi
ln -s $(find $(pwd) -name *img) /tmp/install.img
cd -
python /etc/confluent/apiclient /confluent-public/os/$profile/kickstart.custom -o /tmp/kickstart.custom
run_remote pre.custom