File tree Expand file tree Collapse file tree 5 files changed +20
-3
lines changed Expand file tree Collapse file tree 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:
294294
295295Save this as `/etc/ansible/roles/cloudstack-management/tasks/main.yml `
296296
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+
297301Now we have some new elements to deal with. The Ansible Template module
298302uses Jinja2 based templating. As we’re doing a simplified example here,
299303the 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.
529529
530530 $ setenforce permissive
531531
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+
532536#. Configure Apparmor (Ubuntu)
533537
534538
Original file line number Diff line number Diff line change @@ -319,6 +319,10 @@ ensure the Agent has all the required permissions.
319319
320320 $ setenforce permissive
321321
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+
322326#. Configure Apparmor (Ubuntu)
323327
324328 #. 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`.
166166
167167 setenforce permissive
168168
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+
169173#. Set up the database.
170174
171175 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
227227SELinux
228228^^^^^^^
229229
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.
233234
234235To configure SELinux to be permissive in the running system we need to run the
235236following command:
You can’t perform that action at this time.
0 commit comments