Revision 380998ab
Added by Paul Kelly almost 13 years ago
- ID 380998ab70f3cf380d2c8b0fd1e6f21a5ee19a4e
extras/jumpstart/curl-license | ||
---|---|---|
COPYRIGHT AND PERMISSION NOTICE
|
||
|
||
Copyright (c) 1996 - 2011, Daniel Stenberg, <daniel@haxx.se>.
|
||
|
||
All rights reserved.
|
||
|
||
Permission to use, copy, modify, and distribute this software for any purpose
|
||
with or without fee is hereby granted, provided that the above copyright
|
||
notice and this permission notice appear in all copies.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
|
||
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
||
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||
OR OTHER DEALINGS IN THE SOFTWARE.
|
||
|
||
Except as contained in this notice, the name of a copyright holder shall not
|
||
be used in advertising or otherwise to promote the sale, use or other dealings
|
||
in this Software without prior written authorization of the copyright holder.
|
||
|
extras/jumpstart/dynamic_finish | ||
---|---|---|
#!/bin/sh
|
||
cd $SI_CONFIG_DIR
|
||
hostname=`hostname`
|
||
# the servers that runs foreman
|
||
foreman="foreman"
|
||
|
||
arch=`uname -p`
|
||
foreman=foreman
|
||
# We load the finish script into the logs directory so as to leave a record
|
||
$SI_CONFIG_DIR/curl http://$foreman/unattended/jumpstart_finish > /a/var/sadm/system/logs/puppet.postinstall
|
||
./curl.$arch -s http://$foreman/unattended/finish > /a/var/sadm/system/logs/puppet.postinstall
|
||
# Copy the working nsswitch and resolv.conf into the new server's etc directory
|
||
cp /etc/nsswitch.conf /a/etc
|
||
cp /etc/resolv.conf /a/etc
|
||
# Make a working curl available
|
||
echo "Copying ./curl.$arch /a/tmp/curl"
|
||
cp -p ./curl.$arch /a/tmp/curl
|
||
# Now execute the downloaded finish script in the new root context
|
||
chroot /a /bin/sh /var/sadm/system/logs/puppet.postinstall
|
extras/jumpstart/dynamic_profile | ||
---|---|---|
hostname=`hostname`
|
||
dnsdomain=`/sbin/dhcpinfo 15`
|
||
dnsservers=`/sbin/dhcpinfo 6`
|
||
arch=`uname -p`
|
||
echo "domain $dnsdomain" >> /etc/resolv.conf
|
||
for i in $dnsservers
|
||
do
|
||
... | ... | |
perl -p -i -e "s/hosts:.*/hosts: files dns/" /tmp/root/etc/nsswitch.conf
|
||
# and then download our configuration from foreman
|
||
foreman="foreman"
|
||
./curl http://$foreman/unattended/jumpstart_profile > ${SI_PROFILE}
|
||
./curl.$arch -s http://$foreman/unattended/provision > ${SI_PROFILE}
|
||
exit 0
|
extras/jumpstart/rules.ok | ||
---|---|---|
any - dynamic_profile = dynamic_finish
|
||
# version=2 checksum=3798
|
extras/jumpstart/sysidcfg/sysidcfg_primary/sysidcfg | ||
---|---|---|
timeserver=localhost
|
||
name_service=none
|
||
nfs4_domain=default
|
||
root_password=BeyKOhxKk6A/6
|
||
root_password={FILTERED]
|
||
auto_reg=disable
|
Also available in: Unified diff
Fixes #991 - Missing jumpstart files. Refs #820
Signed-off-by: Paul Kelly <paul.ian.kelly@googlemail.com>