#!/bin/bash
mkdir -p /var/log/cobbler/{anamon,kicklog,syslog,tasks}

#reset authorized_keys file so puppet can a write new one
rm -f /etc/cobbler/authorized_keys

# Make sure services are not running (no pids, etc), puppet will
# configure and bring them up.
/etc/init.d/httpd stop
/etc/init.d/xinetd stop

#Run puppet to apply custom config
puppet apply -v /etc/puppet/modules/nailgun/examples/cobbler-only.pp
#stop cobbler and dnsmasq
/etc/init.d/dnsmasq stop
/etc/init.d/cobblerd stop

#Set up nailgun DB
dnsmasq -d &
cobblerd -F

#!/bin/bash
mkdir -p /var/log/cobbler/{anamon,kicklog,syslog,tasks}

# reset authorized_keys file so puppet can a write new one
rm -f /etc/cobbler/authorized_keys

# Make sure services are not running (no pids, etc), puppet will
# configure and bring them up.
/etc/init.d/httpd stop
/etc/init.d/xinetd stop

# Run puppet to apply custom config
puppet apply -v /etc/puppet/modules/nailgun/examples/cobbler-only.pp
# Stop cobbler and dnsmasq
/etc/init.d/dnsmasq stop
/etc/init.d/cobblerd stop

# Running services
/etc/init.d/dnsmasq restart
cobblerd -F

Fix for dhcp missed inside admin net (plus a little refactoring)
Fix for dhcp missed inside admin net (plus a little refactoring)

Closes-Bug: #1320834

Change-Id: I3137377c7e4386e03d5803d60966ddf59ed05f07
