Skip to content

Commit

Permalink
RFQ: The module must not manage xinetd files and services when == 'ab…
Browse files Browse the repository at this point in the history
…sent'.
  • Loading branch information
bschonec committed May 17, 2022
1 parent a696c1d commit e441b82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@

$_only_from = simplib::nets2cidr($trusted_nets)

### The module should not be managing the files when $package_ensure == 'absent'.
file { '/etc/xinetd.conf':
owner => 'root',
group => 'root',
Expand All @@ -75,6 +76,7 @@
require => Package['xinetd']
}

### The module should not be managing xinetd files when $package_ensure == 'absent'.
file { '/etc/xinetd.d':
ensure => 'directory',
owner => 'root',
Expand All @@ -89,6 +91,7 @@
ensure => $package_ensure
}

### The module should not be managing the services when $package_ensure == 'absent'.
service { 'xinetd':
ensure => 'running',
enable => true,
Expand Down

0 comments on commit e441b82

Please sign in to comment.