File tree 5 files changed +20
-3
lines changed
5 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -294,6 +294,10 @@ For the management server role we create a main.yml task like this:
294
294
295
295
Save this as `/etc/ansible/roles/cloudstack-management/tasks/main.yml `
296
296
297
+ .. note :: In a production environment, selinux should be set to enforcing
298
+ and the necessary selinux policies are created to allow the
299
+ services to run.
300
+
297
301
Now we have some new elements to deal with. The Ansible Template module
298
302
uses Jinja2 based templating. As we’re doing a simplified example here,
299
303
the Jinja Template for the cloudstack.repo won’t have any variables in
Original file line number Diff line number Diff line change @@ -529,6 +529,10 @@ ensure the Agent has all the required permissions.
529
529
530
530
$ setenforce permissive
531
531
532
+ .. note :: In a production environment, selinux should be set to enforcing
533
+ and the necessary selinux policies are created to allow the
534
+ services to run.
535
+
532
536
#. Configure Apparmor (Ubuntu)
533
537
534
538
Original file line number Diff line number Diff line change @@ -319,6 +319,10 @@ ensure the Agent has all the required permissions.
319
319
320
320
$ setenforce permissive
321
321
322
+ .. note :: In a production environment, selinux should be set to enforcing
323
+ and the necessary selinux policies are created to allow the
324
+ services to run.
325
+
322
326
#. Configure Apparmor (Ubuntu)
323
327
324
328
#. Check to see whether AppArmor is installed on your machine. If
Original file line number Diff line number Diff line change @@ -166,6 +166,10 @@ MySQL. See :ref:`install-database-on-separate-node`.
166
166
167
167
setenforce permissive
168
168
169
+ .. note :: In a production environment, selinux should be set to enforcing
170
+ and the necessary selinux policies are created to allow the
171
+ services to run.
172
+
169
173
#. Set up the database.
170
174
171
175
The cloudstack-setup-databases script is used for creating the cloudstack
Original file line number Diff line number Diff line change @@ -227,9 +227,10 @@ and ensure that it returns a FQDN response
227
227
SELinux
228
228
^^^^^^^
229
229
230
- At the moment, for CloudStack to work properly SELinux must be set to
231
- permissive or disabled. We want to both configure this for future boots and modify it in
232
- the current running system.
230
+ In an ideal environment, selinux should be set to enforcing and the necessary
231
+ selinux policies are created to allow the services to run. For this guide,
232
+ we will set selinux to permissive mode. This will allow us to install and
233
+ configure the services without having to worry about selinux policies.
233
234
234
235
To configure SELinux to be permissive in the running system we need to run the
235
236
following command:
You can’t perform that action at this time.
0 commit comments