-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmore.example.sh
36 lines (28 loc) · 912 Bytes
/
more.example.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# rename this file to "more.sh"
# Execute and add all the stuff. Be sure to check bootstrap.sh as to what should be executed as chroot
# and what shouldn't.
echo "#!/bin/bash
# example of additional commands. I, for example, need Puppet.
# Install Puppet, via chroot (could also be defined in packages.sh):
apt-get -y install puppet
rm -f fourth-stage" > fourth-stage
chmod +x fourth-stage
# And execute it:
echo "=> executing fourth-stage."
LANG=C chroot $rootfs /fourth-stage
mkdir -p etc/puppet
echo "[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post
server=puppet.yeri.be" > etc/puppet/puppet.conf
echo "
# Execute Puppet.
puppet agent --waitforcert 60" >> secondboot.sh
# EOF