mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 01:22:00 +00:00
Add more to the SUSE profiles
Add exetensibility to pre and sample directories
This commit is contained in:
parent
93b7547c58
commit
d72bac5faf
0
confluent_osdeploy/suse15/profiles/hpc/scripts/firstboot.d/.gitignore
vendored
Normal file
0
confluent_osdeploy/suse15/profiles/hpc/scripts/firstboot.d/.gitignore
vendored
Normal file
0
confluent_osdeploy/suse15/profiles/hpc/scripts/post.d/.gitignore
vendored
Normal file
0
confluent_osdeploy/suse15/profiles/hpc/scripts/post.d/.gitignore
vendored
Normal file
0
confluent_osdeploy/suse15/profiles/hpc/scripts/pre.d/.gitignore
vendored
Normal file
0
confluent_osdeploy/suse15/profiles/hpc/scripts/pre.d/.gitignore
vendored
Normal file
@ -38,15 +38,20 @@ if grep ^ntpservers: /etc/confluent/confluent.deploycfg > /dev/null; then
|
||||
echo '</ntp_servers></ntp-client>' >> /tmp/ntp.cfg
|
||||
ntpcfg=$(paste -sd '' /tmp/ntp.cfg)
|
||||
fi
|
||||
mdadm --assemble --scan
|
||||
run_remote_python getinstalldisk
|
||||
if grep ^md /tmp/installdisk > /dev/null; then
|
||||
for md in /dev/disk/*/*; do
|
||||
rmd=$(readlink $md)
|
||||
if echo $rmd|grep $(cat /tmp/installdisk)$ > /dev/null; then
|
||||
echo ${md#/dev/} > /tmp/installdisk
|
||||
fi
|
||||
done
|
||||
export confluent_mgr confluent_profile nodename
|
||||
run_remote pre.custom
|
||||
run_remote_parts pre.d
|
||||
if [ ! -e /tmp/installdisk ]; then
|
||||
mdadm --assemble --scan
|
||||
run_remote_python getinstalldisk
|
||||
if grep ^md /tmp/installdisk > /dev/null; then
|
||||
for md in /dev/disk/*/*; do
|
||||
rmd=$(readlink $md)
|
||||
if echo $rmd|grep $(cat /tmp/installdisk)$ > /dev/null; then
|
||||
echo ${md#/dev/} > /tmp/installdisk
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
sed -e s'!'%%INSTDISK%%'!'/dev/$(cat /tmp/installdisk)'!' -e s'!'%%NODENAME%%'!'$nodename'!' -e 's!<networking\(.*\)>!'"$ntpcfg"'<networking\1>!' -e "s?%%ROOTPASSWORD%%?${rootpw}?" /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
|
||||
if grep append /tmp/bootloader.xml > /dev/null; then
|
||||
|
0
confluent_osdeploy/suse15/profiles/server/scripts/firstboot.d/.gitignore
vendored
Normal file
0
confluent_osdeploy/suse15/profiles/server/scripts/firstboot.d/.gitignore
vendored
Normal file
0
confluent_osdeploy/suse15/profiles/server/scripts/post.d/.gitignore
vendored
Normal file
0
confluent_osdeploy/suse15/profiles/server/scripts/post.d/.gitignore
vendored
Normal file
0
confluent_osdeploy/suse15/profiles/server/scripts/pre.d/.gitignore
vendored
Normal file
0
confluent_osdeploy/suse15/profiles/server/scripts/pre.d/.gitignore
vendored
Normal file
@ -38,15 +38,20 @@ if grep ^ntpservers: /etc/confluent/confluent.deploycfg > /dev/null; then
|
||||
echo '</ntp_servers></ntp-client>' >> /tmp/ntp.cfg
|
||||
ntpcfg=$(paste -sd '' /tmp/ntp.cfg)
|
||||
fi
|
||||
mdadm --assemble --scan
|
||||
run_remote_python getinstalldisk
|
||||
if grep ^md /tmp/installdisk > /dev/null; then
|
||||
for md in /dev/disk/*/*; do
|
||||
rmd=$(readlink $md)
|
||||
if echo $rmd|grep $(cat /tmp/installdisk)$ > /dev/null; then
|
||||
echo ${md#/dev/} > /tmp/installdisk
|
||||
fi
|
||||
done
|
||||
export confluent_mgr confluent_profile nodename
|
||||
run_remote pre.custom
|
||||
run_remote_parts pre.d
|
||||
if [ ! -e /tmp/installdisk ]; then
|
||||
mdadm --assemble --scan
|
||||
run_remote_python getinstalldisk
|
||||
if grep ^md /tmp/installdisk > /dev/null; then
|
||||
for md in /dev/disk/*/*; do
|
||||
rmd=$(readlink $md)
|
||||
if echo $rmd|grep $(cat /tmp/installdisk)$ > /dev/null; then
|
||||
echo ${md#/dev/} > /tmp/installdisk
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
sed -e s'!'%%INSTDISK%%'!'/dev/$(cat /tmp/installdisk)'!' -e s'!'%%NODENAME%%'!'$nodename'!' -e 's!<networking\(.*\)>!'"$ntpcfg"'<networking\1>!' -e "s?%%ROOTPASSWORD%%?${rootpw}?" /tmp/profile/autoinst.xml > /tmp/profile/modified.xml
|
||||
if grep append /tmp/bootloader.xml > /dev/null; then
|
||||
|
Loading…
Reference in New Issue
Block a user