On Tue, Jan 31, 2012 at 9:08 PM, sateesh <bbalasate...@gmail.com> wrote:
> Thanks Jeff for your response.
>
> But I hope the URL's that you provided require Amazon account. But I
> need to do this in a provate cloud. I need to install the Openstack on
> newly created VM in our Private cloud. In chef we have a command with
> knife where we can provide the IP address of our newly created VM,
> credentials and the module that need to be installed on that plain
> Ubuntu VM. The chef server will install the specified module on that
> VM. Is there any way to do this using puppet?

Yes, but a slight customization to cloud provisioner is necessary.

The `puppet node install` command accepts an IP address and will
install Puppet or Puppet Enterprise onto the system with that IP
address.  Cloud Provisioner uses SSH to log into the remote system and
install Puppet.

We stop there though.  None of the installation scripts [1] are able
to download a module and run Puppet using that module.

You could take the puppet-community script [2] and copy it to a new
name in the same directory.  If you add the commands required to
install the puppet module and run puppet against a manifest inside the
module then this will accomplish your goal.

For example:

cat puppet-community-localcopy.erb
#!/bin/bash
...
provision_puppet
# Install the Puppet Module tool
gem install puppet-module
# Install a module from the Forge
cd /etc/puppetlabs/modules
puppet-module install puppetlabs-stdlib
puppet-module install puppetlabs-ntp
# Do a puppet configuration run with the NTP class included in the
configuration catalog
puppet apply -v -e 'include ntp'


With this custom script template you can install on the targ

Hope this helps

[1] 
https://github.com/puppetlabs/puppetlabs-cloud-provisioner/tree/master/lib/puppet/cloudpack/scripts
[2] 
https://github.com/puppetlabs/puppetlabs-cloud-provisioner/blob/master/lib/puppet/cloudpack/scripts/puppet-community.erb

-- 
Jeff McCune

-- 
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