Ask Your Question

Revision history [back]

I think I understand that you have Puppetmaster 2.8 installed, and now you want to distribute a file, mobileworld.jar in this case, to your servers. Your question is hard to understand, and lacks proper detail, but I will do my best.

You'll also find basic information on sharing files here. Hopefully you've already read this.

If all you're doing is distributing a jar, you can do that with a simple File resource.

Place "mobileworld.jar" in the "files" directory of your module.

In your Puppet manifest within your module, create a File resource.

file {'/opt/mobileworld-website/mobileworld.jar':
  ensure => present,
  mode   => '0640',
  owner  => 'root',
  group  => 'root',
  source => 'puppet:///modules/module_name/mobileworld.jar',
}

When you run Puppet on your client, the Puppet agent will copy mobileworld.jar from your module and place it in /opt/mobileworld-website/mobileworld.jar on the client.