Hi guys
am bootstrapping EC2 images as puppet clients and am using runurl to
call a script which installs puppet, things are going fine till now
but I want to pass the environment as a runurl argument.

This is my script with runurl

cat <<EOL > /etc/hosts
127.0.0.1  localhost.localdomain
10.1.1.1 puppet

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
EOL
hostname abdc
$check=envt
wget -qO/usr/bin/runurl run.alestic.com/runurl
chmod 755 /usr/bin/runurl
runurl puppet/init_puppet/init_puppet/  $check

$check contains the value of the environment to which this client
belongs.

On the web server init_puppet is as follows:apt-get -y install puppet
wget -qO/etc/puppet/puppet.conf http://10.1.1.1/init_puppet/puppet.conf
/etc/init.d/puppet restart
puppetd --test --waitforcert 65 --$2

$2 should contain the environement.

This set up is not working please help me.

Thanks




-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to