Puppet Class: example::params

Defined in:
manifests/params.pp

Overview



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'manifests/params.pp', line 4

class example::params {

  notice('Running params.pp')

  case $::osfamily {

    'redhat' : {

      notice('Setting output_text in params.pp to RedHat OS!')

      #Setting OS dependent variables#
      $output_text = " ${::osfamily}  OS"
      $file_name   = 'RHEL_file.txt'

    }

    'debian' : {

      notice('Setting output_text in params.pp to Debian OS!')

      #Setting OS dependent variables#
      $output_text = 'Debian OS'
      $file_name   = 'Debian_file.txt'

    }

    default : {

      fail("Your OS: ${::osfamily} is not supported!")
 
    }

  } 

}