fuel-library/deployment/puppet/rabbitmq/files
Sergey Vasilenko aeac878fae Rabbitmq ocf master/slave (WORK IN PROGRESS)
Blueprint: rabbitmq-cluster-controlled-by-pacemaker
Closes-bug: #1318936
Change-Id: Ieab7156fee2b70b32dbf5a2852627495cf1b650e
2014-06-19 11:52:15 +00:00
..
plugins Add RabbitMQ Plugin Support 2011-03-22 15:22:21 -07:00
README.markdown Initial commit 2011-03-21 20:47:45 -07:00

Files

Puppet comes with both a client and server for copying files around. The file serving function is provided as part of the central Puppet daemon, puppetmasterd, and the client function is used through the source attribute of file objects. Learn more at http://projects.puppetlabs.com/projects/puppet/wiki/File_Serving_Configuration

You can use managed files like this:

class myclass {
  package { mypackage: ensure => latest }
  service { myservice: ensure => running }
  file { "/etc/myfile":
    source => "puppet://$servername/modules/mymodule/myfile"
  }
}

The files are searched for in:

$modulepath/mymodule/files/myfile