rename some things
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
ed78d382f9
commit
f4110913b7
5 changed files with 7 additions and 3 deletions
4
roles/nagios_server/files/selinux/Makefile
Normal file
4
roles/nagios_server/files/selinux/Makefile
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
module:
|
||||||
|
checkmodule -Mmo nagios_hostname.mod nagios_hostname.te
|
||||||
|
semodule_package -o nagios_hostname.pp -m nagios_hostname.mod
|
||||||
|
rm nagios_hostname.mod
|
Binary file not shown.
BIN
roles/nagios_server/files/selinux/nagios_hostname.pp
Normal file
BIN
roles/nagios_server/files/selinux/nagios_hostname.pp
Normal file
Binary file not shown.
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
module hostname 1.0;
|
module nagios_hostname 1.0;
|
||||||
|
|
||||||
require {
|
require {
|
||||||
type nagios_t;
|
type nagios_t;
|
|
@ -125,13 +125,13 @@
|
||||||
- nagios_server
|
- nagios_server
|
||||||
|
|
||||||
- name: Copy over our custom selinux module
|
- name: Copy over our custom selinux module
|
||||||
copy: src=selinux/hostname.pp dest=/usr/local/share/nagios-policy/hostname.pp
|
copy: src=selinux/nagios_hostname.pp dest=/usr/local/share/nagios-policy/nagios_hostname.pp
|
||||||
register: selinux_module
|
register: selinux_module
|
||||||
tags:
|
tags:
|
||||||
- nagios_server
|
- nagios_server
|
||||||
|
|
||||||
- name: Install our custom selinux module
|
- name: Install our custom selinux module
|
||||||
command: semodule -i /usr/local/share/nagios-policy/hostname.pp
|
command: semodule -i /usr/local/share/nagios-policy/nagios_hostname.pp
|
||||||
when: selinux_module|changed
|
when: selinux_module|changed
|
||||||
tags:
|
tags:
|
||||||
- nagios_server
|
- nagios_server
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue