Install Guide

ssldir = $vardir/ssl
[agent]
classfile = $vardir/classes.txt
localconfig = $vardir/localconfig
1. Copy the puppet_certname.sh and puppet_certname.rb from the /opt/asm-deployer/scripts directory on the ASM Appliance
to the
/usr/local/bin on the source Linux virtual machine.
NOTE: Ensure that the version of the inile gem installed by the puppet certname script is specied as 2.0.2. To
verify the version, open the puppet_certname.sh le and check that the inile version is specied as 2.0.2.
2. Run the following commands to ensure that correct permissions are set on the scripts:
chmod 755 /usr/local/bin/puppet_certname.sh
chmod 755 /usr/local/bin/puppet_certname.rb
3. Download the ruby gem les inile, 2.0.2 version, and hashie (latest version compatible with the operating system) from
https://rubygems.org/ and place them in /usr/local/bin directory where you copied the puppet certname scripts. The gem
installation process retrieves the local gem les in the current working directory of the script to install them.
4. Alternatively, these gems can be preinstalled on the source virtual machine. If you want to preinstall the required gems, modify
the puppet_certname.sh after installing them. Remove the following lines including indentations from the puppet_certname.sh
script:
#!/bin/bash
VERSION=`puppet --version`
if [[ "$VERSION" =~ Enterprise ]]
then
/opt/puppet/bin/ruby puppet_certname.rb
/opt/puppet/bin/puppet agent -t
else
ruby /usr/local/bin/puppet_certname.rb
puppet agent -t
fi
5. Run the following commands to remove the rules that bind the MAC address of the network adapter to any specic interface
and create the default network interface conguration:
rm /etc/udev/rules.d/70-persistent-net.rules
rm /lib/udev/rules.d/75-persistent-net-generator.rules
6. Run the following command to remove the current network conguration:
rm /etc/sysconfig/network-scripts/ifcfg-<INTERFACE_NAME>
NOTE:
<INTERFACE_NAME>
in the command must be replaced with the actual value for the network interface
name. For RHEL/CentOS 6, these are typically eth0, eth1, eth2, and so on. For RHEL/CentOS 7, these may be
ens192, ens32, eno16777736, and so on.
NOTE: For RHEL 7, you must also change the network device naming scheme from the default conguration to the
conventional format. The source virtual machine must generate names for network interfaces using eth# format
(instead of ens### or eno###### format) - that is, the generated names for the devices should be eth0, eth1,
eth2, and so on.
First edit the /etc/default/grub le by adding this line—append the options if GRUB_CMDLINE_LINUX variable already exists in
the le:
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
After editing the le, recongure the Boot conguration by running the following command:
grub2-mkconfig -o /boot/grub2/grub.cfg
NOTE: You may skip this step if the source virtual machine does not have these rules.
22