1111 to you under the Apache License, Version 2.0 (the
1212 "License"); you may not use this file except in compliance
1313 with the License. You may obtain a copy of the License at
14-
1514 http://www.apache.org/licenses/LICENSE-2.0
16-
1715 Unless required by applicable law or agreed to in writing,
1816 software distributed under the License is distributed on an
1917 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
2927 MySQL. See <xref linkend =" management-server-install-db-external" />.</para >
3028 <orderedlist >
3129 <listitem >
32- <para >Install MySQL from the package repository from your distribution:</para >
30+ <para >Install MySQL from the package repository of your distribution:</para >
3331 <para condition =" community" >On RHEL or CentOS:</para >
3432 <programlisting language =" Bash" >yum install mysql-server</programlisting >
3533 <para condition =" community" >On Ubuntu:</para >
3634 <programlisting language =" Bash" >apt-get install mysql-server</programlisting >
3735 </listitem >
3836 <listitem >
39- <para >Edit the MySQL configuration (/etc/my.cnf or /etc/mysql/my.cnf, depending on your OS)
40- and insert the following lines in the [mysqld] section. You can put these lines below the
41- datadir line. The max_connections parameter should be set to 350 multiplied by the number of
42- Management Servers you are deploying. This example assumes one Management Server.</para >
37+ <para >Open the MySQL configuration file. The configuration file is <filename >/etc/my.cnf</filename > or
38+ <filename >/etc/mysql/my.cnf</filename >, depending on your OS.</para >
39+ </listitem >
40+ <listitem >
41+ <para >Insert the following lines in the [mysqld] section. </para >
42+ <para >You can put these lines below the datadir line. The max_connections parameter should be
43+ set to 350 multiplied by the number of Management Servers you are deploying. This example
44+ assumes one Management Server.</para >
4345 <note >
44- <para >On Ubuntu, you can also create a file /etc/mysql/conf.d/cloudstack.cnf and add these
46+ <para >On Ubuntu, you can also create a file < filename > /etc/mysql/conf.d/cloudstack.cnf</ filename > and add these
4547 directives there. Don't forget to add [mysqld] on the first line of the file.</para >
4648 </note >
4749 <programlisting language =" Bash" >innodb_rollback_on_timeout=1
@@ -68,6 +70,40 @@ binlog-format = 'ROW'</programlisting>
6870 questions.</para >
6971 <programlisting language =" Bash" >mysql_secure_installation</programlisting >
7072 </listitem >
73+ <listitem >
74+ <para >&PRODUCT; can be blocked by security mechanisms, such as SELinux. Disable SELinux to
75+ ensure + that the Agent has all the required permissions.</para >
76+ <para >Configure SELinux (RHEL and CentOS):</para >
77+ <orderedlist numeration =" loweralpha" >
78+ <listitem >
79+ <para >Check whether SELinux is installed on your machine. If not, you can skip this
80+ section.</para >
81+ <para >In RHEL or CentOS, SELinux is installed and enabled by default. You can verify this
82+ with:</para >
83+ <programlisting language =" Bash" ><command >$ rpm -qa | grep selinux</command ></programlisting >
84+ </listitem >
85+ <listitem >
86+ <para >Set the SELINUX variable in <filename >/etc/selinux/config</filename > to
87+ "permissive". This ensures that the permissive setting will be maintained after a system
88+ reboot.</para >
89+ <para >In RHEL or CentOS:</para >
90+ <programlisting language =" Bash" >vi /etc/selinux/config</programlisting >
91+ <para >Change the following line</para >
92+ <programlisting >SELINUX=enforcing</programlisting >
93+ <para >to this:</para >
94+ <programlisting >SELINUX=permissive</programlisting >
95+ </listitem >
96+ <listitem >
97+ <para >Set SELinux to permissive starting immediately, without requiring a system
98+ reboot.</para >
99+ <programlisting language =" Bash" ><command >$ setenforce permissive</command ></programlisting >
100+ </listitem >
101+ </orderedlist >
102+ </listitem >
103+ <listitem >
104+ <para >Set up &PRODUCT; Management Server setup:</para >
105+ <programlisting ># cloud-setup-management</programlisting >
106+ </listitem >
71107 <listitem >
72108 <para >Set up the database. The following command creates the "cloud" user on the
73109 database.</para >
@@ -98,10 +134,10 @@ binlog-format = 'ROW'</programlisting>
98134 recommended that you replace this with a more secure value. See <xref
99135 linkend =" about-password-encryption" />.</para >
100136 </listitem >
101- <listitem >
102- <para >(Optional) For management_server_ip, you may explicitly specify cluster management
103- server node IP. If not specified, the local IP address will be used.</para >
104- </listitem >
137+ <listitem >
138+ <para >(Optional) For management_server_ip, you may explicitly specify cluster management
139+ server node IP. If not specified, the local IP address will be used.</para >
140+ </listitem >
105141 </itemizedlist >
106142 <programlisting language =" Bash" >cloud-setup-databases cloud:< dbpassword> @localhost \
107143--deploy-as=root:< password> \
0 commit comments