Skip to content

Commit

Permalink
fix #735 replace anchor by contain
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Sep 8, 2023
1 parent 8446a16 commit b18d142
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,14 @@
}
}

anchor { 'icinga2::begin':
notify => Class['icinga2::service'],
}
-> class { 'icinga2::install': }
class { 'icinga2::install': }
-> File <| ensure == 'directory' and tag == 'icinga2::config::file' |>
-> class { 'icinga2::config': notify => Class['icinga2::service'] }
-> File <| ensure != 'directory' and tag == 'icinga2::config::file' |>
~> class { 'icinga2::service': }
-> anchor { 'icinga2::end':
subscribe => Class['icinga2::config'],
}
contain icinga2::install
contain icinga2::config
contain icinga2::service

include prefix($features, 'icinga2::feature::')
}

0 comments on commit b18d142

Please sign in to comment.