aboutsummaryrefslogtreecommitdiff
path: root/manifests/install.pp
blob: 4337a9947c32964e00a542aaae366690f346c880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# @api private
#
# @summary This class handles the configuration file. Avoid modifying private classes.
#
class ferm::install {

  # this is a private class
  assert_private("You're not supposed to do that!")

  package{'ferm':
    ensure => 'latest',
  }

  if $ferm::manage_initfile {
    if $facts['os']['family'] == 'RedHat' and versioncmp($facts['os']['release']['major'], '6') <= 0 {
      file{'/etc/init.d/ferm':
        ensure => 'present',
        mode   => '0755',
        source => "puppet:///modules/${module_name}/ferm",
      }
    }
  }
}