if [ ! $ip ]
then
read -p "Puppet master fqdn : " fqdn
fi
timedatectl set-timezone Asia/Kolkata
yum -y install ntp net-tools
ntpdate pool.ntp.org
systemctl restart ntpd
systemctl enable ntpd
rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
yum -y install puppet-agent
ln -s /opt/puppetlabs/bin/puppet /bin/puppet
if [ $ip ]
then