Sha256: bf14a8a1c7e8c866b3375b4b77ec155f3143d4124a73f65d460e8502bca546d7

Contents?: true

Size: 832 Bytes

Versions: 7

Compression:

Stored size: 832 Bytes

Contents

# The profile class include the classes instantiation or
# puppet/modules type resource definitions.
# It can include hiera calls for the parametter setting.
# Example:
# class profiles::category::technology {
#   $technology_parameters = hiera("technology")
#   $parameter1 = technology_parameters[parameter1]
#   ...
#   class { "technology_resource":
#     parameter1  => $parameter1
#     ...
#   }
# }

class profiles::base::security::fail2ban {
  # Obtain fail2ban parameters from hiera
  $fail2ban_parameters = hiera('fail2ban', {})
  $bantime = $fail2ban_parameters[bantime]
  $maxretry = $fail2ban_parameters[maxretry]
  $mailto = $fail2ban_parameters[destemail]

  # Instance the fail2ban class with hiera parameters
  class { '::fail2ban':
    bantime => $bantime,
    maxretry => $maxretry,
    mailto => $mailto,
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bebox-0.1.5 lib/templates/puppet/default_profiles/base/security/fail2ban/manifests/init.pp
bebox-0.1.4 lib/templates/puppet/default_profiles/base/security/fail2ban/manifests/init.pp
bebox-0.1.3 lib/templates/puppet/default_profiles/base/security/fail2ban/manifests/init.pp
bebox-0.1.2 lib/templates/puppet/default_profiles/base/security/fail2ban/manifests/init.pp
bebox-0.1.1 lib/templates/puppet/default_profiles/base/security/fail2ban/manifests/init.pp
bebox-0.1.0 lib/templates/puppet/default_profiles/base/security/fail2ban/manifests/init.pp
bebox-0.0.1 lib/templates/puppet/default_profiles/base/security/fail2ban/manifests/init.pp