Deployment Guide

Customizing Linux Template
Perform the following task to customize Linux template.
1. You must update the Network Interfaces so that they will not be associated with the base virtual
machine MAC address (varies based on OS, examples below). To update, run the following
command:
RHEL/CentOS:
rm /etc/udev/rules.d/70-persistent-net.rules
rm/lib/udev/rules.d/75-persistent-net-generator.rules
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
Debian/Ubuntu:
rm /lib/udev/rules.d/75-persistent-net-generator.rules
2. Configure cronjob to execute the puppet_certname.sh script and restart or start the puppet service.
crontab –e
The puppet restart should be set up in the crontab addition.
a. Add the following line to this file
@reboot /usr/local/bin/puppet_certname.sh; /etc/init.d/puppet restart
b. Run the following command, and ensure that you see the above line, to verify the crontab is
updated as expected or not,
crontab -l
Customizing Windows Template
Perform the following steps to make sure windows schedules tasks on startup.
1. Launch Windows Task Scheduler and create a new task.
2. The task runs C:\puppet_certname.bat
.
3. Make sure the task can run even if the user is not logged in. To enable this option, right-click the
puppet_certname.bat
and click Properties. In the puppet_certname properties dialog box, under
Security options, select Run only when user is logged on.
4. Specify the start in directory same as the script location
(c:\).
28