Skip to content

Commit

Permalink
Merge pull request #377 from jcpunk/missing-require
Browse files Browse the repository at this point in the history
Add missing explicit require on Package
  • Loading branch information
jcpunk authored Sep 11, 2024
2 parents 9ce513a + e7854d5 commit 9767cbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@
}

service { 'firewalld':
ensure => $service_ensure,
enable => $service_enable,
ensure => $service_ensure,
enable => $service_enable,
require => Package[$package],
}

#...ipsets
Expand Down
3 changes: 2 additions & 1 deletion spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
it {
is_expected.to contain_service('firewalld').
with_ensure('running').
with_enable(true)
with_enable(true).
with_require('Package[firewalld]')
}

it { is_expected.not_to contain_augeas('firewalld::firewallbackend') }
Expand Down

0 comments on commit 9767cbe

Please sign in to comment.