Merge "Parameterize setting the selinux mode"
This commit is contained in:
commit
dc15bec0be
@ -538,6 +538,7 @@ node /^git\d+\.openstack\.org$/ {
|
||||
ssl_key_file_contents => hiera('git_ssl_key_file_contents'),
|
||||
ssl_chain_file_contents => hiera('git_ssl_chain_file_contents'),
|
||||
behind_proxy => true,
|
||||
selinux_mode => 'enforcing'
|
||||
}
|
||||
}
|
||||
|
||||
@ -833,6 +834,7 @@ node 'pbx.openstack.org' {
|
||||
outgoing => false,
|
||||
},
|
||||
],
|
||||
selinux_mode => 'enforcing'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,7 +18,8 @@
|
||||
class openstack_project::git (
|
||||
$sysadmins = [],
|
||||
$balancer_member_names = [],
|
||||
$balancer_member_ips = []
|
||||
$balancer_member_ips = [],
|
||||
$selinux_mode = 'enforcing'
|
||||
) {
|
||||
class { 'openstack_project::server':
|
||||
iptables_public_tcp_ports => [80, 443, 9418],
|
||||
@ -27,7 +28,7 @@ class openstack_project::git (
|
||||
|
||||
if ($::osfamily == 'RedHat') {
|
||||
class { 'selinux':
|
||||
mode => 'enforcing'
|
||||
mode => $selinux_mode
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,7 @@ class openstack_project::git_backend (
|
||||
$ssl_chain_file_contents = '',
|
||||
$behind_proxy = false,
|
||||
$project_config_repo = '',
|
||||
$selinux_mode = 'enforcing',
|
||||
) {
|
||||
|
||||
package { 'lsof':
|
||||
@ -36,6 +37,12 @@ class openstack_project::git_backend (
|
||||
include jeepyb
|
||||
include pip
|
||||
|
||||
if ($::osfamily == 'RedHat') {
|
||||
class { 'selinux':
|
||||
mode => $selinux_mode
|
||||
}
|
||||
}
|
||||
|
||||
class { '::cgit':
|
||||
vhost_name => $vhost_name,
|
||||
ssl_cert_file => "/etc/pki/tls/certs/${vhost_name}.pem",
|
||||
@ -54,6 +61,7 @@ class openstack_project::git_backend (
|
||||
'root-title' => 'OpenStack git repository browser',
|
||||
},
|
||||
manage_cgitrc => true,
|
||||
selinux_mode => $selinux_mode
|
||||
}
|
||||
|
||||
# We don't actually use these variables in this manifest, but jeepyb
|
||||
@ -108,12 +116,6 @@ class openstack_project::git_backend (
|
||||
refreshonly => true,
|
||||
}
|
||||
|
||||
if ($::osfamily == 'RedHat') {
|
||||
class { 'selinux':
|
||||
mode => 'enforcing'
|
||||
}
|
||||
}
|
||||
|
||||
cron { 'mirror_repack':
|
||||
user => 'cgit',
|
||||
hour => '4',
|
||||
|
@ -18,6 +18,7 @@
|
||||
class openstack_project::pbx (
|
||||
$sysadmins = [],
|
||||
$sip_providers = [],
|
||||
$selinux_mode = 'enforcing'
|
||||
) {
|
||||
class { 'openstack_project::server':
|
||||
sysadmins => $sysadmins,
|
||||
@ -31,7 +32,7 @@ class openstack_project::pbx (
|
||||
|
||||
if ($::osfamily == 'RedHat') {
|
||||
class { 'selinux':
|
||||
mode => 'enforcing'
|
||||
mode => $selinux_mode
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user