Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | |
Aleš Komárek | d13365c | 2017-04-11 13:13:37 +0200 | [diff] [blame] | 2 | ============ |
| 3 | Heat Formula |
| 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 | |
| 17 | Single Heat services on the controller node |
| 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 | |
Ondrej Smola | 24ae6a8 | 2017-07-18 10:53:14 +0200 | [diff] [blame] | 72 | Define server clients keystone parameter |
| 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 | |
Ondrej Smola | 70f2934 | 2017-04-28 12:58:06 +0200 | [diff] [blame] | 85 | Enable CORS parameters |
| 86 | |
| 87 | .. code-block:: yaml |
| 88 | |
| 89 | heat: |
| 90 | server: |
| 91 | cors: |
| 92 | allowed_origin: https:localhost.local,http:localhost.local |
| 93 | expose_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 94 | allow_methods: GET,PUT,POST,DELETE,PATCH |
| 95 | allow_headers: X-Auth-Token,X-Openstack-Request-Id,X-Subject-Token |
| 96 | allow_credentials: True |
| 97 | max_age: 86400 |
| 98 | |
| 99 | |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 100 | Heat client with specified git templates |
| 101 | |
| 102 | .. code-block:: yaml |
| 103 | |
| 104 | heat: |
| 105 | client: |
| 106 | enabled: true |
Jiri Broulik | b2ef328 | 2017-02-07 22:33:30 +0100 | [diff] [blame] | 107 | template: |
| 108 | admin: |
| 109 | domain: default |
| 110 | source: |
| 111 | engine: git |
| 112 | address: git@repo.domain.com/admin-templates.git |
| 113 | revision: master |
| 114 | default: |
| 115 | domain: default |
| 116 | source: |
| 117 | engine: git |
| 118 | address: git@repo.domain.com/default-templates.git |
| 119 | revision: master |
| 120 | |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 121 | |
Filip Pytloun | 923d869 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 122 | Ceilometer notification |
| 123 | |
| 124 | .. code-block:: yaml |
| 125 | |
| 126 | heat: |
| 127 | server: |
| 128 | enabled: true |
| 129 | version: icehouse |
| 130 | notification: true |
| 131 | |
Dmitry Ukov | f3f33a8 | 2017-05-05 11:56:46 +0400 | [diff] [blame] | 132 | Configuration of policy.json file |
| 133 | |
| 134 | .. code-block:: yaml |
| 135 | |
| 136 | heat: |
| 137 | server: |
| 138 | .... |
| 139 | policy: |
| 140 | deny_stack_user: 'not role:heat_stack_user' |
| 141 | 'cloudformation:ValidateTemplate': 'rule:deny_stack_user' |
| 142 | # Add key without value to remove line from policy.json |
| 143 | 'cloudformation:DescribeStackResource': |
| 144 | |
Jiri Konecny | f94dd92 | 2016-04-20 12:09:22 +0200 | [diff] [blame] | 145 | |
| 146 | Client-side RabbitMQ HA setup |
| 147 | |
| 148 | .. code-block:: yaml |
| 149 | |
| 150 | heat: |
| 151 | server: |
| 152 | .... |
| 153 | message_queue: |
| 154 | engine: rabbitmq |
| 155 | members: |
| 156 | - host: 10.0.16.1 |
| 157 | - host: 10.0.16.2 |
| 158 | - host: 10.0.16.3 |
| 159 | user: openstack |
| 160 | password: pwd |
| 161 | virtual_host: '/openstack' |
| 162 | .... |
| 163 | |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 164 | |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 165 | |
Kirill Bespalov | 00da251 | 2017-11-21 13:21:21 +0300 | [diff] [blame] | 166 | Configuring TLS communications |
| 167 | ------------------------------- |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 168 | |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 169 | |
Kirill Bespalov | 00da251 | 2017-11-21 13:21:21 +0300 | [diff] [blame] | 170 | **Note:** by default system wide installed CA certs are used, so ``cacert_file`` param is optional, as well as ``cacert``. |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 171 | |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 172 | |
Kirill Bespalov | 00da251 | 2017-11-21 13:21:21 +0300 | [diff] [blame] | 173 | - **RabbitMQ TLS** |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 174 | |
Kirill Bespalov | 00da251 | 2017-11-21 13:21:21 +0300 | [diff] [blame] | 175 | .. code-block:: yaml |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 176 | |
Kirill Bespalov | 00da251 | 2017-11-21 13:21:21 +0300 | [diff] [blame] | 177 | heat: |
| 178 | server: |
| 179 | message_queue: |
| 180 | port: 5671 |
| 181 | ssl: |
| 182 | enabled: True |
| 183 | (optional) cacert: cert body if the cacert_file does not exists |
| 184 | (optional) cacert_file: /etc/openstack/rabbitmq-ca.pem |
| 185 | (optional) version: TLSv1_2 |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 186 | |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 187 | |
Kirill Bespalov | 00da251 | 2017-11-21 13:21:21 +0300 | [diff] [blame] | 188 | - **MySQL TLS** |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 189 | |
Kirill Bespalov | 00da251 | 2017-11-21 13:21:21 +0300 | [diff] [blame] | 190 | .. code-block:: yaml |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 191 | |
Kirill Bespalov | 00da251 | 2017-11-21 13:21:21 +0300 | [diff] [blame] | 192 | heat: |
| 193 | server: |
| 194 | database: |
| 195 | ssl: |
| 196 | enabled: True |
| 197 | (optional) cacert: cert body if the cacert_file does not exists |
| 198 | (optional) cacert_file: /etc/openstack/mysql-ca.pem |
| 199 | |
| 200 | - **Openstack HTTPS API** |
| 201 | |
| 202 | .. code-block:: yaml |
| 203 | |
| 204 | heat: |
| 205 | server: |
| 206 | identity: |
| 207 | protocol: https |
| 208 | (optional) cacert_file: /etc/openstack/proxy.pem |
| 209 | clients: |
| 210 | keystone: |
| 211 | protocol: https |
| 212 | (optional) cacert_file: /etc/openstack/proxy.pem |
Kirill Bespalov | 27d20ca | 2017-08-06 15:43:28 +0300 | [diff] [blame] | 213 | |
Dmitry Kalashnik | 1c26ac0 | 2017-12-06 13:37:19 +0400 | [diff] [blame] | 214 | Enhanced logging with logging.conf |
| 215 | ---------------------------------- |
| 216 | |
| 217 | By default logging.conf is disabled. |
| 218 | |
| 219 | That is possible to enable per-binary logging.conf with new variables: |
| 220 | * openstack_log_appender - set it to true to enable log_config_append for all OpenStack services; |
| 221 | * openstack_fluentd_handler_enabled - set to true to enable FluentHandler for all Openstack services. |
Oleksii Chupryn | 99a3e1b | 2018-02-07 09:40:30 +0200 | [diff] [blame] | 222 | * openstack_ossyslog_handler_enabled - set to true to enable OSSysLogHandler for all Openstack services. |
Dmitry Kalashnik | 1c26ac0 | 2017-12-06 13:37:19 +0400 | [diff] [blame] | 223 | |
Oleksii Chupryn | 99a3e1b | 2018-02-07 09:40:30 +0200 | [diff] [blame] | 224 | Only WatchedFileHandler, OSSysLogHandler and FluentHandler are available. |
Dmitry Kalashnik | 1c26ac0 | 2017-12-06 13:37:19 +0400 | [diff] [blame] | 225 | |
| 226 | Also it is possible to configure this with pillar: |
| 227 | |
| 228 | .. code-block:: yaml |
| 229 | |
| 230 | heat: |
| 231 | server: |
| 232 | logging: |
| 233 | log_appender: true |
| 234 | log_handlers: |
| 235 | watchedfile: |
| 236 | enabled: true |
| 237 | fluentd: |
| 238 | enabled: true |
Oleksii Chupryn | 99a3e1b | 2018-02-07 09:40:30 +0200 | [diff] [blame] | 239 | ossyslog: |
| 240 | enabled: true |
Jiri Konecny | f94dd92 | 2016-04-20 12:09:22 +0200 | [diff] [blame] | 241 | |
Filip Pytloun | dc94d87 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 242 | Documentation and Bugs |
| 243 | ====================== |
| 244 | |
| 245 | To learn how to install and update salt-formulas, consult the documentation |
| 246 | available online at: |
| 247 | |
| 248 | http://salt-formulas.readthedocs.io/ |
| 249 | |
| 250 | In the unfortunate event that bugs are discovered, they should be reported to |
| 251 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 252 | formula: |
| 253 | |
| 254 | https://github.com/salt-formulas/salt-formula-heat/issues |
| 255 | |
| 256 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 257 | use Launchpad salt-formulas project: |
| 258 | |
| 259 | https://launchpad.net/salt-formulas |
| 260 | |
| 261 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 262 | |
| 263 | https://launchpad.net/~salt-formulas-users |
| 264 | |
| 265 | Developers wishing to work on the salt-formulas projects should always base |
| 266 | their work on master branch and submit pull request against specific formula. |
| 267 | |
| 268 | https://github.com/salt-formulas/salt-formula-heat |
| 269 | |
| 270 | Any questions or feedback is always welcome so feel free to join our IRC |
| 271 | channel: |
| 272 | |
| 273 | #salt-formulas @ irc.freenode.net |