Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 2 | ===== |
| 3 | Usage |
| 4 | ===== |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 5 | |
Jakub Pavlik | 3bed97a | 2016-05-20 11:16:08 +0200 | [diff] [blame] | 6 | Heat is the main project in the OpenStack Orchestration program. It implements |
| 7 | an orchestration engine to launch multiple composite cloud applications based |
| 8 | on templates in the form of text files that can be treated like code. A native |
| 9 | Heat template format is evolving, but Heat also endeavours to provide |
| 10 | compatibility with the AWS CloudFormation template format, so that many |
| 11 | existing CloudFormation templates can be launched on OpenStack. Heat provides |
| 12 | both an OpenStack-native ReST API and a CloudFormation-compatible Query API. |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 13 | |
Aleš Komárek | d13365c | 2017-04-11 13:13:37 +0200 | [diff] [blame] | 14 | Sample Pillars |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 15 | ============== |
| 16 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 17 | Single Heat services on the controller node: |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 18 | |
| 19 | .. code-block:: yaml |
| 20 | |
| 21 | heat: |
| 22 | server: |
| 23 | enabled: true |
| 24 | version: icehouse |
Jakub Pavlik | 51e15e0 | 2016-03-12 13:32:26 +0100 | [diff] [blame] | 25 | region: RegionOne |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 26 | bind: |
| 27 | metadata: |
| 28 | address: 10.0.106.10 |
| 29 | port: 8000 |
Oleksii Chupryn | cd1be6f | 2017-04-07 09:30:26 +0300 | [diff] [blame] | 30 | protocol: http |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 31 | waitcondition: |
| 32 | address: 10.0.106.10 |
| 33 | port: 8000 |
Oleksii Chupryn | cd1be6f | 2017-04-07 09:30:26 +0300 | [diff] [blame] | 34 | protocol: http |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 35 | watch: |
| 36 | address: 10.0.106.10 |
| 37 | port: 8003 |
Oleksii Chupryn | cd1be6f | 2017-04-07 09:30:26 +0300 | [diff] [blame] | 38 | protocol: http |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 39 | cloudwatch: |
| 40 | host: 10.0.106.20 |
| 41 | api: |
| 42 | host: 10.0.106.20 |
| 43 | api_cfn: |
| 44 | host: 10.0.106.20 |
| 45 | database: |
| 46 | engine: mysql |
| 47 | host: 10.0.106.20 |
| 48 | port: 3306 |
| 49 | name: heat |
| 50 | user: heat |
| 51 | password: password |
| 52 | identity: |
| 53 | engine: keystone |
| 54 | host: 10.0.106.20 |
| 55 | port: 35357 |
| 56 | tenant: service |
| 57 | user: heat |
| 58 | password: password |
Dennis Dmitriev | 0965027 | 2017-03-09 17:51:00 +0200 | [diff] [blame] | 59 | endpoint_type_default: internalURL |
| 60 | endpoint_type_heat: publicURL |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 61 | message_queue: |
| 62 | engine: rabbitmq |
| 63 | host: 10.0.106.20 |
| 64 | port: 5672 |
| 65 | user: openstack |
| 66 | password: password |
| 67 | virtual_host: '/openstack' |
| 68 | ha_queues: True |
Dmitry Stremkouski | b3d83a9 | 2017-11-08 16:01:18 +0300 | [diff] [blame] | 69 | max_stacks_per_tenant: 150 |
Dmitry Stremkouski | 9cacd16 | 2017-11-08 16:39:38 +0300 | [diff] [blame] | 70 | max_nested_stack_depth: 10 |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 71 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 72 | Define server clients Keystone parameter: |
Ondrej Smola | 24ae6a8 | 2017-07-18 10:53:14 +0200 | [diff] [blame] | 73 | |
| 74 | .. code-block:: yaml |
| 75 | |
| 76 | heat: |
| 77 | server: |
| 78 | clients: |
| 79 | keystone: |
| 80 | protocol: https |
| 81 | host: 10.0.106.10 |
| 82 | port: 5000 |
| 83 | insecure: false |
| 84 | |
Martin Polreich | b24076f | 2018-08-27 10:42:45 +0200 | [diff] [blame^] | 85 | Server with auth_encryption_key defined: |
| 86 | |
| 87 | .. code-block:: yaml |
| 88 | |
| 89 | heat: |
| 90 | server: |
| 91 | .... |
| 92 | server.auth_encryption_key: "KeyToEncrypt-hasToBeExact32Chars" |
| 93 | .... |
| 94 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 95 | Enable CORS parameters: |
Ondrej Smola | 70f2934 | 2017-04-28 12:58:06 +0200 | [diff] [blame] | 96 | |
| 97 | .. code-block:: yaml |
| 98 | |
| 99 | heat: |
| 100 | server: |
| 101 | cors: |
| 102 | allowed_origin: https:localhost.local,http:localhost.local |
| 103 | expose_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 104 | allow_methods: GET,PUT,POST,DELETE,PATCH |
| 105 | allow_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 106 | allow_credentials: True |
| 107 | max_age: 86400 |
| 108 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 109 | Heat client with specified git templates: |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 110 | |
| 111 | .. code-block:: yaml |
| 112 | |
| 113 | heat: |
| 114 | client: |
| 115 | enabled: true |
Jiri Broulik | b2ef328 | 2017-02-07 22:33:30 +0100 | [diff] [blame] | 116 | template: |
| 117 | admin: |
| 118 | domain: default |
| 119 | source: |
| 120 | engine: git |
| 121 | address: git@repo.domain.com/admin-templates.git |
| 122 | revision: master |
| 123 | default: |
| 124 | domain: default |
| 125 | source: |
| 126 | engine: git |
| 127 | address: git@repo.domain.com/default-templates.git |
| 128 | revision: master |
| 129 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 130 | Ceilometer notification: |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 131 | |
| 132 | .. code-block:: yaml |
| 133 | |
| 134 | heat: |
| 135 | server: |
| 136 | enabled: true |
| 137 | version: icehouse |
| 138 | notification: true |
| 139 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 140 | Configuration of ``policy.json`` file: |
Dmitry Ukov | f3f33a8 | 2017-05-05 11:56:46 +0400 | [diff] [blame] | 141 | |
| 142 | .. code-block:: yaml |
| 143 | |
| 144 | heat: |
| 145 | server: |
| 146 | .... |
| 147 | policy: |
| 148 | deny_stack_user: 'not role:heat_stack_user' |
| 149 | 'cloudformation:ValidateTemplate': 'rule:deny_stack_user' |
| 150 | # Add key without value to remove line from policy.json |
| 151 | 'cloudformation:DescribeStackResource': |
| 152 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 153 | Client-side RabbitMQ HA setup: |
Jiri Konecny | f94dd92 | 2016-04-20 12:09:22 +0200 | [diff] [blame] | 154 | |
| 155 | .. code-block:: yaml |
| 156 | |
| 157 | heat: |
| 158 | server: |
| 159 | .... |
| 160 | message_queue: |
| 161 | engine: rabbitmq |
| 162 | members: |
| 163 | - host: 10.0.16.1 |
| 164 | - host: 10.0.16.2 |
| 165 | - host: 10.0.16.3 |
| 166 | user: openstack |
| 167 | password: pwd |
| 168 | virtual_host: '/openstack' |
| 169 | .... |
| 170 | |
Kirill Bespalov | 00da251 | 2017-11-21 13:21:21 +0300 | [diff] [blame] | 171 | Configuring TLS communications |
| 172 | ------------------------------- |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 173 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 174 | .. note:: By default, system-wide installed CA certs are used, so the |
| 175 | ``cacert_file`` param is optional, as well as ``cacert``. |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 176 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 177 | - **RabbitMQ TLS** |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 178 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 179 | .. code-block:: yaml |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 180 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 181 | heat: |
Kirill Bespalov | 00da251 | 2017-11-21 13:21:21 +0300 | [diff] [blame] | 182 | server: |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 183 | message_queue: |
| 184 | port: 5671 |
| 185 | ssl: |
| 186 | enabled: True |
| 187 | (optional) cacert: cert body if the cacert_file does not exists |
| 188 | (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem |
| 189 | (optional) version: TLSv1_2 |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 190 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 191 | - **MySQL TLS** |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 192 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 193 | .. code-block:: yaml |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 194 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 195 | heat: |
| 196 | server: |
| 197 | database: |
| 198 | ssl: |
| 199 | enabled: True |
| 200 | (optional) cacert: cert body if the cacert_file does not exists |
| 201 | (optional) cacert_file: /etc/openstack/mysql-ca.pem |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 202 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 203 | - **Openstack HTTPS API** |
| 204 | |
| 205 | .. code-block:: yaml |
| 206 | |
| 207 | heat: |
Kirill Bespalov | 00da251 | 2017-11-21 13:21:21 +0300 | [diff] [blame] | 208 | server: |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 209 | identity: |
| 210 | protocol: https |
| 211 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 212 | clients: |
| 213 | keystone: |
| 214 | protocol: https |
| 215 | (optional) cacert_file: /etc/openstack/proxy.pem |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 216 | |
Dmitry Kalashnik | 1c26ac0 | 2017-12-06 13:37:19 +0400 | [diff] [blame] | 217 | Enhanced logging with logging.conf |
| 218 | ---------------------------------- |
| 219 | |
| 220 | By default logging.conf is disabled. |
| 221 | |
| 222 | That is possible to enable per-binary logging.conf with new variables: |
Dmitry Kalashnik | 1c26ac0 | 2017-12-06 13:37:19 +0400 | [diff] [blame] | 223 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 224 | * ``openstack_log_appender`` |
| 225 | Set to true to enable ``log_config_append`` for all OpenStack services |
Dmitry Kalashnik | 1c26ac0 | 2017-12-06 13:37:19 +0400 | [diff] [blame] | 226 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 227 | * ``openstack_fluentd_handler_enabled`` |
| 228 | Set to true to enable ``FluentHandler`` for all Openstack services |
| 229 | |
| 230 | * ``openstack_ossyslog_handler_enabled`` |
| 231 | Set to true to enable ``OSSysLogHandler`` for all Openstack services |
| 232 | |
| 233 | Only `WatchedFileHandler``, ``OSSysLogHandler``, and ``FluentHandler`` are |
| 234 | available. |
| 235 | |
| 236 | Also, it is possible to configure this with pillar: |
Dmitry Kalashnik | 1c26ac0 | 2017-12-06 13:37:19 +0400 | [diff] [blame] | 237 | |
| 238 | .. code-block:: yaml |
| 239 | |
| 240 | heat: |
| 241 | server: |
| 242 | logging: |
| 243 | log_appender: true |
| 244 | log_handlers: |
| 245 | watchedfile: |
| 246 | enabled: true |
| 247 | fluentd: |
| 248 | enabled: true |
Oleksii Chupryn | 99a3e1b | 2018-02-07 09:40:30 +0200 | [diff] [blame] | 249 | ossyslog: |
| 250 | enabled: true |
Jiri Konecny | f94dd92 | 2016-04-20 12:09:22 +0200 | [diff] [blame] | 251 | |
Filip Pytloun | dc94d87 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 252 | Documentation and Bugs |
| 253 | ====================== |
| 254 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 255 | * http://salt-formulas.readthedocs.io/ |
| 256 | Learn how to install and update salt-formulas |
Filip Pytloun | dc94d87 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 257 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 258 | * https://github.com/salt-formulas/salt-formula-heat/issues |
| 259 | In the unfortunate event that bugs are discovered, report the issue to the |
| 260 | appropriate issue tracker. Use the Github issue tracker for a specific salt |
| 261 | formula |
Filip Pytloun | dc94d87 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 262 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 263 | * https://launchpad.net/salt-formulas |
| 264 | For feature requests, bug reports, or blueprints affecting the entire |
| 265 | ecosystem, use the Launchpad salt-formulas project |
Filip Pytloun | dc94d87 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 266 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 267 | * https://launchpad.net/~salt-formulas-users |
| 268 | Join the salt-formulas-users team and subscribe to mailing list if required |
Filip Pytloun | dc94d87 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 269 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 270 | * https://github.com/salt-formulas/salt-formula-heat |
| 271 | Develop the salt-formulas projects in the master branch and then submit pull |
| 272 | requests against a specific formula |
Filip Pytloun | dc94d87 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 273 | |
OlgaGusarenko | 769c819 | 2018-07-30 18:16:44 +0300 | [diff] [blame] | 274 | * #salt-formulas @ irc.freenode.net |
| 275 | Use this IRC channel in case of any questions or feedback which is always |
| 276 | welcome |
Filip Pytloun | dc94d87 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 277 | |