summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 41f4f8754014a47e19bc899a2d1e345e3b65c298 (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
# Class: augeas
#
# Install and configure Augeas
#
# Parameters:
#   ['version']      - the desired version of Augeas
#   ['ruby_version'] - the desired version of the Ruby bindings for Augeas
#   ['lens_dir']     - the lens directory to use
#   ['purge']        - whether to purge lens directories
class augeas (
  $version      = present,
  $ruby_version = present,
  $lens_dir     = $augeas::params::lens_dir,
  $purge        = true,
) inherits augeas::params {

  class {'::augeas::packages': } ->
  class {'::augeas::files': } ->
  Class['augeas']

  # lint:ignore:spaceship_operator_without_tag
  Package['ruby-augeas', $augeas::params::augeas_pkgs] -> Augeas <| |>
  # lint:endignore
}