Puppet Class: example

Defined in:
manifests/init.pp

Summary

An example class

Overview

Parameters:

  • file (Stdlib::Absolutepath) (defaults to: '/tmp/puppet-example')

    The file to manage

  • content (String[1]) (defaults to: 'Hello World!')

    The content in the file



6
7
8
9
10
11
12
13
14
15
16
17
# File 'manifests/init.pp', line 6

class example (
  Stdlib::Absolutepath $file = '/tmp/puppet-example',
  String[1] $content = 'Hello World!',
) {
  file { $file:
    ensure  => file,
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => $content,
  }
}