Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
17
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7ef59313
authored
Aug 10, 2015
by
Czémán Arnold
Committed by
cloud
Feb 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfs-client: fix selinux problem with nfs and libvirt
parent
c5f358a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
salt/nfs-client/init.sls
+20
-0
No files found.
salt/nfs-client/init.sls
View file @
7ef59313
...
@@ -9,6 +9,21 @@ nfs-client:
...
@@ -9,6 +9,21 @@ nfs-client:
- require_in:
- require_in:
- mount: /datastore
- mount: /datastore
{% if grains['os_family'] == 'RedHat' %}
nfs_selinux:
pkg.installed:
- pkgs:
- policycoreutils
- policycoreutils-python
selinux.boolean:
- name: virt_use_nfs
- value: True
- persist: True
- require:
- pkg: nfs-client
{% endif %}
/datastore:
/datastore:
mount.mounted:
mount.mounted:
- device: {{ pillar['nfs']['server'] }}:/datastore
- device: {{ pillar['nfs']['server'] }}:/datastore
...
@@ -18,3 +33,8 @@ nfs-client:
...
@@ -18,3 +33,8 @@ nfs-client:
- pass_num: 2
- pass_num: 2
- persist: True
- persist: True
- mkmnt: True
- mkmnt: True
{% if grains['os_family'] == 'RedHat' %}
- require:
- pkg: nfs_selinux
{% endif %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment