Skip to content

Commit

Permalink
Change the way SELinux is applied for portnumbers
Browse files Browse the repository at this point in the history
Since duplication was possible, the selinux::port
is now a "ensure_resource". This fixes issue #120
  • Loading branch information
ralfbosz committed Jun 20, 2019
1 parent 590e97d commit 7d5a5aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/http_port.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
}

if $facts['selinux'] == true {
selinux::port{"selinux port squid_port_t ${_port}":
ensure_resource('selinux::port', "selinux port squid_port_t ${_port}", {
ensure => 'present',
seltype => 'squid_port_t',
protocol => 'tcp',
port => $_port,
}
})
}

}

0 comments on commit 7d5a5aa

Please sign in to comment.