Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 2 | ===== |
| 3 | Usage |
| 4 | ===== |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 5 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 6 | Horizon is the canonical implementation of OpenStack Dashboard, which |
| 7 | provides a web-based user interface to OpenStack services including Nova, |
Ales Komarek | 231eb65 | 2017-04-11 16:01:19 +0200 | [diff] [blame] | 8 | Swift, Keystone, etc. |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 9 | |
Ales Komarek | 231eb65 | 2017-04-11 16:01:19 +0200 | [diff] [blame] | 10 | Sample Pillars |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 11 | ============== |
| 12 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 13 | Simplest Horizon setup: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 14 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 15 | .. code-block:: yaml |
| 16 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 17 | horizon: |
| 18 | server: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 19 | enabled: true |
Ales Komarek | 2e7d83b | 2016-11-22 22:58:12 +0100 | [diff] [blame] | 20 | secret_key: secret |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 21 | host: |
| 22 | name: cloud.lab.cz |
| 23 | cache: |
| 24 | engine: 'memcached' |
| 25 | host: '127.0.0.1' |
| 26 | port: 11211 |
| 27 | prefix: 'CACHE_HORIZON' |
Oleksii Chupryn | 7d3d648 | 2017-03-07 11:23:27 +0200 | [diff] [blame] | 28 | api_versions: |
| 29 | identity: 2 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 30 | identity: |
| 31 | engine: 'keystone' |
| 32 | host: '127.0.0.1' |
| 33 | port: 5000 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 34 | mail: |
| 35 | host: '127.0.0.1' |
| 36 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 37 | Multidomain setup for Horizon: |
Dmitry Stremkovskiy | 381e560 | 2017-07-18 18:50:13 +0300 | [diff] [blame] | 38 | |
| 39 | .. code-block:: yaml |
| 40 | |
| 41 | horizon: |
| 42 | server: |
| 43 | enabled: true |
| 44 | default_domain: MYDOMAIN |
| 45 | multidomain: True |
| 46 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 47 | Simple branded Horizon: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 48 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 49 | .. code-block:: yaml |
| 50 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 51 | horizon: |
| 52 | server: |
| 53 | enabled: true |
| 54 | branding: 'OpenStack Company Dashboard' |
| 55 | default_dashboard: 'admin' |
| 56 | help_url: 'http://doc.domain.com' |
| 57 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 58 | Horizon with policy files metadata. With source mine you can obtain real |
| 59 | time policy file state from targeted node (OpenStack control node), |
| 60 | provided you have policy file published to specified grain key. Source |
| 61 | file will obtain static policy definition from formula files directory. |
Adam Tengler | 08874e3 | 2017-05-05 17:24:29 +0000 | [diff] [blame] | 62 | |
| 63 | .. code-block:: yaml |
| 64 | |
| 65 | horizon: |
| 66 | server: |
| 67 | enabled: true |
| 68 | policy: |
| 69 | identity: |
| 70 | source: mine |
| 71 | host: ctl01.my-domain.local |
| 72 | name: keystone_policy.json |
| 73 | grain_name: keystone_policy |
| 74 | enabled: true |
| 75 | compute: |
| 76 | source: file |
| 77 | name: nova_policy.json |
| 78 | enabled: true |
| 79 | network: |
| 80 | source: file |
| 81 | name: neutron_policy.json |
| 82 | enabled: true |
| 83 | image: |
| 84 | source: file |
| 85 | name: glance_policy.json |
| 86 | enabled: true |
| 87 | volume: |
| 88 | source: file |
| 89 | name: cinder_policy.json |
| 90 | enabled: true |
| 91 | telemetry: |
| 92 | source: file |
| 93 | name: ceilometer_policy.json |
| 94 | enabled: true |
| 95 | orchestration: |
| 96 | source: file |
| 97 | name: heat_policy.json |
| 98 | enabled: true |
Ales Komarek | 231eb65 | 2017-04-11 16:01:19 +0200 | [diff] [blame] | 99 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 100 | Horizon with enabled SSL security (when SSL is realised by proxy): |
Ales Komarek | 231eb65 | 2017-04-11 16:01:19 +0200 | [diff] [blame] | 101 | |
| 102 | .. code-block:: yaml |
| 103 | |
| 104 | horizon: |
| 105 | server: |
| 106 | enabled: True |
| 107 | secure: True |
| 108 | |
| 109 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 110 | Horizon package setup with SSL: |
Adam Tengler | 250e9b3 | 2018-06-26 14:39:31 +0000 | [diff] [blame] | 111 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 112 | .. important:: For the sake of backwards compatibility, the ``ssl_no_verify`` |
| 113 | attribute defaults to ``true`` when |
| 114 | ``horizon:server:identity:encryption`` is set to ``'ssl'``. |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 115 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 116 | .. code-block:: yaml |
| 117 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 118 | horizon: |
| 119 | server: |
| 120 | enabled: true |
| 121 | secret_key: MEGASECRET |
| 122 | version: juno |
Adam Tengler | 250e9b3 | 2018-06-26 14:39:31 +0000 | [diff] [blame] | 123 | ssl_no_verify: false |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 124 | ssl: |
| 125 | enabled: true |
| 126 | authority: CA_Authority |
| 127 | host: |
| 128 | name: cloud.lab.cz |
| 129 | cache: |
| 130 | engine: 'memcached' |
| 131 | host: '127.0.0.1' |
| 132 | port: 11211 |
| 133 | prefix: 'CACHE_HORIZON' |
Oleksii Chupryn | 7d3d648 | 2017-03-07 11:23:27 +0200 | [diff] [blame] | 134 | api_versions: |
| 135 | identity: 2 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 136 | identity: |
| 137 | engine: 'keystone' |
| 138 | host: '127.0.0.1' |
| 139 | port: 5000 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 140 | mail: |
| 141 | host: '127.0.0.1' |
| 142 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 143 | Horizon with custom ``SESSION_ENGINE`` (default is |
| 144 | ``signed_cookies``, valid options are: ``signed_cookies``, |
| 145 | ``cache``, ``file``) and ``SESSION_TIMEOUT``: |
Adam Tengler | ddef050 | 2017-05-04 11:36:54 +0000 | [diff] [blame] | 146 | |
| 147 | .. code-block:: yaml |
| 148 | |
| 149 | horizon: |
| 150 | server: |
| 151 | enabled: True |
| 152 | secure: True |
| 153 | session: |
| 154 | engine: 'cache' |
| 155 | timeout: 43200 |
| 156 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 157 | Multi-regional Horizon setup: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 158 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 159 | .. code-block:: yaml |
| 160 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 161 | horizon: |
| 162 | server: |
| 163 | enabled: true |
| 164 | version: juno |
| 165 | secret_key: MEGASECRET |
| 166 | cache: |
| 167 | engine: 'memcached' |
| 168 | host: '127.0.0.1' |
| 169 | port: 11211 |
| 170 | prefix: 'CACHE_HORIZON' |
Oleksii Chupryn | 7d3d648 | 2017-03-07 11:23:27 +0200 | [diff] [blame] | 171 | api_versions: |
| 172 | identity: 2 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 173 | identity: |
| 174 | engine: 'keystone' |
| 175 | host: '127.0.0.1' |
| 176 | port: 5000 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 177 | mail: |
| 178 | host: '127.0.0.1' |
| 179 | regions: |
| 180 | - name: cluster1 |
| 181 | address: http://cluster1.example.com:5000/v2.0 |
| 182 | - name: cluster2 |
| 183 | address: http://cluster2.example.com:5000/v2.0 |
| 184 | |
Pavel Cizinsky | 4c77364 | 2018-08-21 15:28:57 +0200 | [diff] [blame] | 185 | Configuration of LAUNCH_INSTANCE_DEFAULTS parameter: |
| 186 | |
| 187 | .. code-block:: yaml |
| 188 | |
| 189 | horizon: |
| 190 | server: |
| 191 | launch_instance_defaults: |
| 192 | config_drive: False |
| 193 | enable_scheduler_hints: True |
| 194 | disable_image: False |
| 195 | disable_instance_snapshot: False |
| 196 | disable_volume: False |
| 197 | disable_volume_snapshot: False |
| 198 | create_volume: False |
| 199 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 200 | Horizon setup with sensu plugin: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 201 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 202 | .. code-block:: yaml |
| 203 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 204 | horizon: |
| 205 | server: |
| 206 | enabled: true |
| 207 | version: juno |
| 208 | sensu_api: |
| 209 | host: localhost |
| 210 | port: 4567 |
Ales Komarek | 2e7d83b | 2016-11-22 22:58:12 +0100 | [diff] [blame] | 211 | plugin: |
| 212 | monitoring: |
| 213 | app: horizon_monitoring |
| 214 | source: |
| 215 | type: git |
| 216 | address: git@repo1.robotice.cz:django/horizon-monitoring.git |
| 217 | rev: develop |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 218 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 219 | Sensu multi API: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 220 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 221 | .. code-block:: yaml |
| 222 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 223 | horizon: |
| 224 | server: |
| 225 | enabled: true |
| 226 | version: juno |
| 227 | sensu_api: |
| 228 | dc1: |
| 229 | host: localhost |
| 230 | port: 4567 |
| 231 | dc2: |
| 232 | host: anotherhost |
| 233 | port: 4567 |
| 234 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 235 | Horizon setup with jenkins plugin: |
Ales Komarek | 2e7d83b | 2016-11-22 22:58:12 +0100 | [diff] [blame] | 236 | |
| 237 | .. code-block:: yaml |
| 238 | |
| 239 | horizon: |
| 240 | server: |
| 241 | enabled: true |
| 242 | version: juno |
| 243 | jenkins_api: |
| 244 | url: https://localhost:8080 |
| 245 | user: admin |
| 246 | password: pwd |
| 247 | plugin: |
| 248 | jenkins: |
| 249 | app: horizon_jenkins |
| 250 | source: |
| 251 | type: pkg |
| 252 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 253 | Horizon setup with billometer plugin: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 254 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 255 | .. code-block:: yaml |
| 256 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 257 | horizon: |
| 258 | server: |
| 259 | enabled: true |
| 260 | version: juno |
| 261 | billometer_api: |
| 262 | host: localhost |
| 263 | port: 9753 |
| 264 | api_version: 1 |
Ales Komarek | 2e7d83b | 2016-11-22 22:58:12 +0100 | [diff] [blame] | 265 | plugin: |
| 266 | billing: |
| 267 | app: horizon_billing |
| 268 | source: |
| 269 | type: git |
| 270 | address: git@repo1.robotice.cz:django/horizon-billing.git |
| 271 | rev: develop |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 272 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 273 | Horizon setup with Contrail plugin: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 274 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 275 | .. code-block:: yaml |
| 276 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 277 | horizon: |
| 278 | server: |
| 279 | enabled: true |
| 280 | version: icehouse |
Ales Komarek | 2e7d83b | 2016-11-22 22:58:12 +0100 | [diff] [blame] | 281 | plugin: |
| 282 | contrail: |
| 283 | app: contrail_openstack_dashboard |
| 284 | override: true |
| 285 | source: |
| 286 | type: git |
| 287 | address: git@repo1.robotice.cz:django/horizon-contrail.git |
| 288 | rev: develop |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 289 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 290 | Horizon setup with sentry log handler: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 291 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 292 | .. code-block:: yaml |
| 293 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 294 | horizon: |
| 295 | server: |
| 296 | enabled: true |
| 297 | version: juno |
| 298 | ... |
| 299 | logging: |
| 300 | engine: raven |
| 301 | dsn: http://pub:private@sentry1.test.cz/2 |
| 302 | |
| 303 | Multisite with Git source |
| 304 | ------------------------- |
| 305 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 306 | Simple Horizon setup from Git repository: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 307 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 308 | .. code-block:: yaml |
| 309 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 310 | horizon: |
| 311 | server: |
| 312 | enabled: true |
| 313 | app: |
| 314 | default: |
| 315 | secret_key: MEGASECRET |
| 316 | source: |
| 317 | engine: git |
| 318 | address: https://github.com/openstack/horizon.git |
| 319 | rev: stable/havana |
| 320 | cache: |
| 321 | engine: 'memcached' |
| 322 | host: '127.0.0.1' |
| 323 | port: 11211 |
| 324 | prefix: 'CACHE_DEFAULT' |
Oleksii Chupryn | 7d3d648 | 2017-03-07 11:23:27 +0200 | [diff] [blame] | 325 | api_versions: |
| 326 | identity: 2 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 327 | identity: |
| 328 | engine: 'keystone' |
| 329 | host: '127.0.0.1' |
| 330 | port: 5000 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 331 | mail: |
| 332 | host: '127.0.0.1' |
| 333 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 334 | Themed multisite setup: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 335 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 336 | .. code-block:: yaml |
| 337 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 338 | horizon: |
| 339 | server: |
| 340 | enabled: true |
| 341 | app: |
| 342 | openstack1c: |
| 343 | secret_key: MEGASECRET1 |
| 344 | source: |
| 345 | engine: git |
| 346 | address: https://github.com/openstack/horizon.git |
| 347 | rev: stable/havana |
| 348 | plugin: |
| 349 | contrail: |
| 350 | app: contrail_openstack_dashboard |
| 351 | override: true |
| 352 | source: |
| 353 | type: git |
| 354 | address: git@repo1.robotice.cz:django/horizon-contrail.git |
| 355 | rev: develop |
| 356 | theme: |
| 357 | app: site1_theme |
| 358 | source: |
| 359 | type: git |
| 360 | address: git@repo1.domain.com:django/horizon-site1-theme.git |
| 361 | cache: |
| 362 | engine: 'memcached' |
| 363 | host: '127.0.0.1' |
| 364 | port: 11211 |
| 365 | prefix: 'CACHE_SITE1' |
Oleksii Chupryn | 7d3d648 | 2017-03-07 11:23:27 +0200 | [diff] [blame] | 366 | api_versions: |
| 367 | identity: 2 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 368 | identity: |
| 369 | engine: 'keystone' |
| 370 | host: '127.0.0.1' |
| 371 | port: 5000 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 372 | mail: |
| 373 | host: '127.0.0.1' |
| 374 | openstack2: |
| 375 | secret_key: MEGASECRET2 |
| 376 | source: |
| 377 | engine: git |
| 378 | address: https://repo1.domain.com/openstack/horizon.git |
| 379 | rev: stable/icehouse |
| 380 | plugin: |
| 381 | contrail: |
| 382 | app: contrail_openstack_dashboard |
| 383 | override: true |
| 384 | source: |
| 385 | type: git |
| 386 | address: git@repo1.domain.com:django/horizon-contrail.git |
| 387 | rev: develop |
| 388 | monitoring: |
| 389 | app: horizon_monitoring |
| 390 | source: |
| 391 | type: git |
| 392 | address: git@domain.com:django/horizon-monitoring.git |
| 393 | rev: develop |
| 394 | theme: |
| 395 | app: bootswatch_theme |
| 396 | source: |
| 397 | type: git |
| 398 | address: git@repo1.robotice.cz:django/horizon-bootswatch-theme.git |
| 399 | rev: develop |
| 400 | cache: |
| 401 | engine: 'memcached' |
| 402 | host: '127.0.0.1' |
| 403 | port: 11211 |
| 404 | prefix: 'CACHE_SITE2' |
Oleksii Chupryn | 7d3d648 | 2017-03-07 11:23:27 +0200 | [diff] [blame] | 405 | api_versions: |
| 406 | identity: 3 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 407 | identity: |
| 408 | engine: 'keystone' |
| 409 | host: '127.0.0.1' |
| 410 | port: 5000 |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 411 | mail: |
| 412 | host: '127.0.0.1' |
| 413 | |
Adam Tengler | 383e571 | 2018-06-26 20:09:54 +0000 | [diff] [blame] | 414 | Set advanced theme options (for Horizon version Mitaka and newer). |
| 415 | |
| 416 | Full example: |
| 417 | |
| 418 | .. code-block:: yaml |
| 419 | |
| 420 | horizon: |
| 421 | server: |
| 422 | themes: |
| 423 | default: default # optional, default: "default" |
| 424 | directory: themes # optional, default: "themes" |
| 425 | cookie_name: theme # optional, default: "theme" |
| 426 | available: |
| 427 | default: # slug |
| 428 | name: "Default" # display name |
| 429 | description: "Default style theme" |
| 430 | path: "themes/default" # optional, default: "<directory>/<slug>", e.g. "themes/default" |
| 431 | enabled: True |
| 432 | material: |
| 433 | name: "Material" |
| 434 | description: "Google's Material Design style theme" |
| 435 | path: "themes/material" |
| 436 | enabled: True |
| 437 | |
| 438 | Minimal example: |
| 439 | |
| 440 | .. code-block:: yaml |
| 441 | |
| 442 | horizon: |
| 443 | server: |
| 444 | theme: |
| 445 | available: |
| 446 | default: # slug |
| 447 | name: "Default" # display name |
| 448 | description: "Default style theme" |
| 449 | material: |
| 450 | name: "Material" |
| 451 | description: "Google's Material Design style theme" |
| 452 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 453 | API versions override: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 454 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 455 | .. code-block:: yaml |
| 456 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 457 | horizon: |
| 458 | server: |
| 459 | enabled: true |
| 460 | app: |
| 461 | openstack_api_overrride: |
| 462 | secret_key: MEGASECRET1 |
| 463 | api_versions: |
| 464 | identity: 3 |
| 465 | volume: 2 |
| 466 | source: |
| 467 | engine: git |
| 468 | address: https://github.com/openstack/horizon.git |
| 469 | rev: stable/havana |
| 470 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 471 | Control dashboard behavior: |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 472 | |
Adam Tengler | dbd1f05 | 2016-01-25 21:12:26 +0100 | [diff] [blame] | 473 | .. code-block:: yaml |
| 474 | |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 475 | horizon: |
| 476 | server: |
| 477 | enabled: true |
| 478 | app: |
| 479 | openstack_dashboard_overrride: |
Ales Komarek | 2e7d83b | 2016-11-22 22:58:12 +0100 | [diff] [blame] | 480 | secret_key: password |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 481 | dashboards: |
| 482 | settings: |
| 483 | enabled: true |
| 484 | project: |
| 485 | enabled: false |
| 486 | order: 10 |
| 487 | admin: |
| 488 | enabled: false |
| 489 | order: 20 |
| 490 | source: |
| 491 | engine: git |
| 492 | address: https://github.com/openstack/horizon.git |
| 493 | rev: stable/juno |
| 494 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 495 | Enable WebSSO feature. Define a list of choices |
| 496 | [supported choices: oidc, saml2], ``credentials`` choice |
| 497 | will be automatically appended and choice description is |
| 498 | predefined. DEPRECATED |
Aleksieiev, Oleksii | 318d9de | 2018-05-18 16:37:18 -0700 | [diff] [blame] | 499 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 500 | WebSSO with credentials and saml2: |
Alexander Noskov | 787a812 | 2016-12-07 13:00:49 +0400 | [diff] [blame] | 501 | |
| 502 | .. code-block:: yaml |
| 503 | |
| 504 | horizon: |
| 505 | server: |
| 506 | enabled: true |
| 507 | websso: |
| 508 | login_url: "WEBROOT + 'auth/login/'" |
| 509 | logout_url: "WEBROOT + 'auth/logout/'" |
Aleksieiev, Oleksii | 318d9de | 2018-05-18 16:37:18 -0700 | [diff] [blame] | 510 | login_redirect_url: "WEBROOT + 'project/'" |
Alexander Noskov | 787a812 | 2016-12-07 13:00:49 +0400 | [diff] [blame] | 511 | websso_choices: |
| 512 | - saml2 |
Alexander Noskov | 787a812 | 2016-12-07 13:00:49 +0400 | [diff] [blame] | 513 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 514 | Enable WebSSO feature. Define a map of choices in the following |
| 515 | format: ``{"<choice_name>": {"description": "<choice_description>"}``. |
Aleksieiev, Oleksii | 318d9de | 2018-05-18 16:37:18 -0700 | [diff] [blame] | 516 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 517 | WebSSO with saml2 and credentials: |
Aleksieiev, Oleksii | 318d9de | 2018-05-18 16:37:18 -0700 | [diff] [blame] | 518 | |
| 519 | .. code-block:: yaml |
| 520 | |
| 521 | horizon: |
| 522 | server: |
| 523 | enabled: true |
| 524 | websso: |
| 525 | login_url: "WEBROOT + 'auth/login/'" |
| 526 | logout_url: "WEBROOT + 'auth/logout/'" |
| 527 | login_redirect_url: "WEBROOT + 'project/'" |
| 528 | websso_choices: |
| 529 | saml2: |
| 530 | description: "Security Assertion Markup Language" |
| 531 | credentials: |
| 532 | description: "Keystone Credentials" |
| 533 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 534 | WebSSO with IDP mapping: |
Aleksieiev, Oleksii | 318d9de | 2018-05-18 16:37:18 -0700 | [diff] [blame] | 535 | |
| 536 | .. code-block:: yaml |
| 537 | |
| 538 | horizon: |
| 539 | server: |
| 540 | enabled: true |
| 541 | websso: |
| 542 | login_url: "WEBROOT + 'auth/login/'" |
| 543 | logout_url: "WEBROOT + 'auth/logout/'" |
| 544 | login_redirect_url: "WEBROOT + 'project/'" |
| 545 | websso_choices: |
| 546 | credentials: |
| 547 | description: "Keystone Credentials" |
| 548 | saml2: |
| 549 | description: "Security Assertion Markup Language" |
| 550 | oidc: |
| 551 | description: "OpenID Connect" |
| 552 | myidp_oidc: |
| 553 | description: "Acme Corporation - OpenID Connect" |
| 554 | myidp_saml2: |
| 555 | description: "Acme Corporation - SAML2" |
| 556 | idp_mapping: |
| 557 | myidp_oidc: |
| 558 | id: myidp |
| 559 | protocol: oidc |
| 560 | myidp_saml2: |
| 561 | id: myidp |
| 562 | protocol: saml2 |
Ales Komarek | 231eb65 | 2017-04-11 16:01:19 +0200 | [diff] [blame] | 563 | |
Vasyl Saienko | c9cfd1f | 2018-09-10 13:47:12 +0000 | [diff] [blame] | 564 | |
| 565 | Upgrades |
| 566 | ======== |
| 567 | |
| 568 | Each openstack formula provide set of phases (logical bloks) that will help to |
| 569 | build flexible upgrade orchestration logic for particular components. The list |
| 570 | of phases and theirs descriptions are listed in table below: |
| 571 | |
| 572 | +-------------------------------+------------------------------------------------------+ |
| 573 | | State | Description | |
| 574 | +===============================+======================================================+ |
| 575 | | <app>.upgrade.service_running | Ensure that all services for particular application | |
| 576 | | | are enabled for autostart and running | |
| 577 | +-------------------------------+------------------------------------------------------+ |
| 578 | | <app>.upgrade.service_stopped | Ensure that all services for particular application | |
| 579 | | | disabled for autostart and dead | |
| 580 | +-------------------------------+------------------------------------------------------+ |
| 581 | | <app>.upgrade.pkgs_latest | Ensure that packages used by particular application | |
| 582 | | | are installed to latest available version. | |
| 583 | | | This will not upgrade data plane packages like qemu | |
| 584 | | | and openvswitch as usually minimal required version | |
| 585 | | | in openstack services is really old. The data plane | |
| 586 | | | packages should be upgraded separately by `apt-get | |
| 587 | | | upgrade` or `apt-get dist-upgrade` | |
| 588 | | | Applying this state will not autostart service. | |
| 589 | +-------------------------------+------------------------------------------------------+ |
| 590 | | <app>.upgrade.render_config | Ensure configuration is rendered actual version. + |
| 591 | +-------------------------------+------------------------------------------------------+ |
| 592 | | <app>.upgrade.pre | We assume this state is applied on all nodes in the | |
| 593 | | | cloud before running upgrade. | |
| 594 | | | Only non destructive actions will be applied during | |
| 595 | | | this phase. Perform service built in service check | |
| 596 | | | like (keystone-manage doctor and nova-status upgrade)| |
| 597 | +-------------------------------+------------------------------------------------------+ |
| 598 | | <app>.upgrade.upgrade.pre | Mostly applicable for data plane nodes. During this | |
| 599 | | | phase resources will be gracefully removed from | |
| 600 | | | current node if it is allowed. Services for upgraded | |
| 601 | | | application will be set to admin disabled state to | |
| 602 | | | make sure node will not participate in resources | |
| 603 | | | scheduling. For example on gtw nodes this will set | |
| 604 | | | all agents to admin disable state and will move all | |
| 605 | | | routers to other agents. | |
| 606 | +-------------------------------+------------------------------------------------------+ |
| 607 | | <app>.upgrade.upgrade | This state will basically upgrade application on | |
| 608 | | | particular target. Stop services, render | |
| 609 | | | configuration, install new packages, run offline | |
| 610 | | | dbsync (for ctl), start services. Data plane should | |
| 611 | | | not be affected, only OpenStack python services. | |
| 612 | +-------------------------------+------------------------------------------------------+ |
| 613 | | <app>.upgrade.upgrade.post | Add services back to scheduling. | |
| 614 | +-------------------------------+------------------------------------------------------+ |
| 615 | | <app>.upgrade.post | This phase should be launched only when upgrade of | |
| 616 | | | the cloud is completed. Cleanup temporary files, | |
| 617 | | | perform other post upgrade tasks. | |
| 618 | +-------------------------------+------------------------------------------------------+ |
| 619 | | <app>.upgrade.verify | Here we will do basic health checks (API CRUD | |
| 620 | | | operations, verify do not have dead network | |
| 621 | | | agents/compute services) | |
| 622 | +-------------------------------+------------------------------------------------------+ |
| 623 | |
| 624 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 625 | Read more |
| 626 | ========= |
Filip Pytloun | f8a1d5b | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 627 | |
| 628 | * https://github.com/openstack/horizon |
| 629 | * http://dijks.wordpress.com/2012/07/06/how-to-change-screen-resolution-of-novnc-client-in-openstack-essex-dashboard-nova-horizon/ |
Filip Pytloun | 219343c | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 630 | |
Ales Komarek | 231eb65 | 2017-04-11 16:01:19 +0200 | [diff] [blame] | 631 | |
Filip Pytloun | 219343c | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 632 | Documentation and Bugs |
| 633 | ====================== |
| 634 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 635 | * http://salt-formulas.readthedocs.io/ |
| 636 | Learn how to install and update salt-formulas |
Filip Pytloun | 219343c | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 637 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 638 | * https://github.com/salt-formulas/salt-formula-horizon/issues |
| 639 | In the unfortunate event that bugs are discovered, report the issue to the |
| 640 | appropriate issue tracker. Use the Github issue tracker for a specific salt |
| 641 | formula |
Filip Pytloun | 219343c | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 642 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 643 | * https://launchpad.net/salt-formulas |
| 644 | For feature requests, bug reports, or blueprints affecting the entire |
| 645 | ecosystem, use the Launchpad salt-formulas project |
Filip Pytloun | 219343c | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 646 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 647 | * https://launchpad.net/~salt-formulas-users |
| 648 | Join the salt-formulas-users team and subscribe to mailing list if required |
Filip Pytloun | 219343c | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 649 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 650 | * https://github.com/salt-formulas/salt-formula-horizon |
| 651 | Develop the salt-formulas projects in the master branch and then submit pull |
| 652 | requests against a specific formula |
Filip Pytloun | 219343c | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 653 | |
OlgaGusarenko | 8c33bca | 2018-07-30 18:33:34 +0300 | [diff] [blame] | 654 | * #salt-formulas @ irc.freenode.net |
| 655 | Use this IRC channel in case of any questions or feedback which is always |
| 656 | welcome |