March 2017
Beginner to intermediate
925 pages
18h 11m
English
A Puppet module is a group of related resources, usually grouped to configure a specific service. Within a module, you may define multiple resources; resource defaults allow you to specify the default attribute values for a resource. In this example, we'll show you how to specify a resource default for the File type.
To show you how to use resource defaults, we'll create an apache module. Within this module we will specify that the default owner and group are the apache user as follows:
File type: class apache {
File {
owner => 'apache',
group => 'apache',
mode => 0644,
}
}/var/www/html directory: file {'/var/www/html/index.html': ...Read now
Unlock full access