aboutsummaryrefslogtreecommitdiff
path: root/manifests/install.pp
blob: 548846c7c7a490f2038fedcdc85e127cb092c5b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# @api private
# 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",
      }
    }
  }
}