Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 2 | ============ |
| 3 | Salt Formula |
| 4 | ============ |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 5 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 6 | Salt is a new approach to infrastructure management. Easy enough to get |
| 7 | running in minutes, scalable enough to manage tens of thousands of servers, |
| 8 | and fast enough to communicate with them in seconds. |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 9 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 10 | Salt delivers a dynamic communication bus for infrastructures that can be used |
| 11 | for orchestration, remote execution, configuration management and much more. |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 12 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 13 | |
| 14 | Sample Metadata |
| 15 | =============== |
| 16 | |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 17 | |
| 18 | Salt master |
| 19 | ----------- |
| 20 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 21 | Salt master with base formulas and pillar metadata backend |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 22 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 23 | .. literalinclude:: tests/pillar/master_single_pillar.sls |
| 24 | :language: yaml |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 25 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 26 | Salt master with reclass ENC metadata backend |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 27 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 28 | .. literalinclude:: tests/pillar/master_single_reclass.sls |
| 29 | :language: yaml |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 30 | |
| 31 | Salt master with API |
| 32 | |
Ales Komarek | b2c8ff6 | 2016-08-22 00:20:01 +0200 | [diff] [blame] | 33 | .. literalinclude:: tests/pillar/master_api.sls |
| 34 | :language: yaml |
Ales Komarek | cdb280f | 2016-07-27 15:37:51 +0200 | [diff] [blame] | 35 | |
| 36 | Salt master with defined user ACLs |
| 37 | |
Ales Komarek | b2c8ff6 | 2016-08-22 00:20:01 +0200 | [diff] [blame] | 38 | .. literalinclude:: tests/pillar/master_acl.sls |
| 39 | :language: yaml |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 40 | |
| 41 | Salt master with preset minions |
| 42 | |
| 43 | .. code-block:: yaml |
| 44 | |
| 45 | salt: |
| 46 | master: |
| 47 | enabled: true |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 48 | minions: |
| 49 | - name: 'node1.system.location.domain.com' |
| 50 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 51 | Salt master with pip based installation (optional) |
Adam Tengler | caedd97 | 2016-05-04 16:44:00 +0200 | [diff] [blame] | 52 | |
| 53 | .. code-block:: yaml |
| 54 | |
| 55 | salt: |
| 56 | master: |
| 57 | enabled: true |
| 58 | ... |
| 59 | source: |
| 60 | engine: pip |
| 61 | version: 2016.3.0rc2 |
| 62 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 63 | Install formula through system package management |
Adam Tengler | 3eb85ad | 2016-05-06 02:52:40 +0200 | [diff] [blame] | 64 | |
| 65 | .. code-block:: yaml |
| 66 | |
| 67 | salt: |
| 68 | master: |
| 69 | enabled: true |
| 70 | ... |
| 71 | environment: |
| 72 | prd: |
Petr Michalec | 7a2f1d2 | 2017-05-17 22:08:32 +0200 | [diff] [blame] | 73 | keystone: |
Adam Tengler | 3eb85ad | 2016-05-06 02:52:40 +0200 | [diff] [blame] | 74 | source: pkg |
| 75 | name: salt-formula-keystone |
Petr Michalec | 7a2f1d2 | 2017-05-17 22:08:32 +0200 | [diff] [blame] | 76 | nova: |
| 77 | source: pkg |
| 78 | name: salt-formula-keystone |
| 79 | version: 0.1+0~20160818133412.24~1.gbp6e1ebb |
| 80 | postresql: |
| 81 | source: pkg |
| 82 | name: salt-formula-postgresql |
| 83 | version: purged |
| 84 | |
| 85 | Formula keystone is installed latest version and the formulas without version are installed in one call to aptpkg module. |
| 86 | If the version attribute is present sls iterates over formulas and take action to install specific version or remove it. |
| 87 | The version attribute may have these values ``[latest|purged|removed|<VERSION>]``. |
Adam Tengler | 3eb85ad | 2016-05-06 02:52:40 +0200 | [diff] [blame] | 88 | |
| 89 | Clone master branch of keystone formula as local feature branch |
| 90 | |
| 91 | .. code-block:: yaml |
| 92 | |
| 93 | salt: |
| 94 | master: |
| 95 | enabled: true |
| 96 | ... |
| 97 | environment: |
| 98 | dev: |
| 99 | formula: |
| 100 | keystone: |
| 101 | source: git |
| 102 | address: git@github.com:openstack/salt-formula-keystone.git |
| 103 | revision: master |
| 104 | branch: feature |
| 105 | |
| 106 | Salt master with specified formula refs (for example for Gerrit review) |
| 107 | |
| 108 | .. code-block:: yaml |
| 109 | |
| 110 | salt: |
| 111 | master: |
| 112 | enabled: true |
| 113 | ... |
| 114 | environment: |
| 115 | dev: |
| 116 | formula: |
| 117 | keystone: |
| 118 | source: git |
| 119 | address: https://git.openstack.org/openstack/salt-formula-keystone |
| 120 | revision: refs/changes/56/123456/1 |
| 121 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 122 | Salt master with logging handlers |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 123 | |
| 124 | .. code-block:: yaml |
| 125 | |
| 126 | salt: |
| 127 | master: |
| 128 | enabled: true |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 129 | handler: |
| 130 | handler01: |
| 131 | engine: udp |
| 132 | bind: |
| 133 | host: 127.0.0.1 |
| 134 | port: 9999 |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 135 | minion: |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 136 | handler: |
| 137 | handler01: |
| 138 | engine: udp |
| 139 | bind: |
| 140 | host: 127.0.0.1 |
| 141 | port: 9999 |
| 142 | handler02: |
| 143 | engine: zmq |
| 144 | bind: |
| 145 | host: 127.0.0.1 |
| 146 | port: 9999 |
| 147 | |
Ales Komarek | a9fc6e7 | 2017-09-06 15:02:40 +0200 | [diff] [blame^] | 148 | |
| 149 | Salt engine definition for saltgraph metadata collector |
| 150 | |
| 151 | .. code-block:: yaml |
| 152 | |
| 153 | salt: |
| 154 | master: |
| 155 | engine: |
| 156 | graph_metadata: |
| 157 | engine: saltgraph |
| 158 | host: 127.0.0.1 |
| 159 | port: 5432 |
| 160 | user: salt |
| 161 | password: salt |
| 162 | database: salt |
| 163 | |
| 164 | Salt engine definition for sending events from docker events |
| 165 | |
| 166 | .. code-block:: yaml |
| 167 | |
| 168 | salt: |
| 169 | master: |
| 170 | engine: |
| 171 | docker_events: |
| 172 | docker_url: unix://var/run/docker.sock |
| 173 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 174 | Salt master peer setup for remote certificate signing |
Jakub Pavlik | d485984 | 2016-05-23 10:48:04 +0200 | [diff] [blame] | 175 | |
| 176 | .. code-block:: yaml |
| 177 | |
| 178 | salt: |
| 179 | master: |
| 180 | peer: |
| 181 | ".*": |
| 182 | - x509.sign_remote_certificate |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 183 | |
Tomáš Kukrál | 8922aef | 2017-05-10 10:27:04 +0200 | [diff] [blame] | 184 | Configure verbosity of state output (used for `salt` command) |
| 185 | |
| 186 | .. code-block:: yaml |
| 187 | |
| 188 | salt: |
| 189 | master: |
Tomáš Kukrál | 044667b | 2017-05-11 10:12:15 +0200 | [diff] [blame] | 190 | state_output: changes |
Tomáš Kukrál | 8922aef | 2017-05-10 10:27:04 +0200 | [diff] [blame] | 191 | |
Ales Komarek | e7844d1 | 2017-06-08 12:00:01 +0200 | [diff] [blame] | 192 | Salt synchronise node pillar and modules after start |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 193 | |
| 194 | .. code-block:: yaml |
| 195 | |
| 196 | salt: |
| 197 | master: |
| 198 | reactor: |
| 199 | salt/minion/*/start: |
Ales Komarek | e7844d1 | 2017-06-08 12:00:01 +0200 | [diff] [blame] | 200 | - salt://salt/reactor/node_start.sls |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 201 | |
Ales Komarek | e7844d1 | 2017-06-08 12:00:01 +0200 | [diff] [blame] | 202 | Trigger basic node install |
| 203 | |
| 204 | .. code-block:: yaml |
| 205 | |
| 206 | salt: |
| 207 | master: |
| 208 | reactor: |
| 209 | salt/minion/install: |
| 210 | - salt://salt/reactor/node_install.sls |
| 211 | |
| 212 | Sample event to trigger the node installation |
| 213 | |
| 214 | .. code-block:: bash |
| 215 | |
| 216 | salt-call event.send 'salt/minion/install' |
| 217 | |
Ales Komarek | 213fbe0 | 2017-08-21 16:39:05 +0200 | [diff] [blame] | 218 | Run any defined orchestration pipeline |
Ales Komarek | 5c58de3 | 2017-06-06 11:49:32 +0200 | [diff] [blame] | 219 | |
| 220 | .. code-block:: yaml |
| 221 | |
| 222 | salt: |
| 223 | master: |
| 224 | reactor: |
| 225 | salt/orchestrate/start: |
| 226 | - salt://salt/reactor/orchestrate_start.sls |
| 227 | |
Ales Komarek | e7844d1 | 2017-06-08 12:00:01 +0200 | [diff] [blame] | 228 | Event to trigger the orchestration pipeline |
Ales Komarek | 5c58de3 | 2017-06-06 11:49:32 +0200 | [diff] [blame] | 229 | |
| 230 | .. code-block:: bash |
| 231 | |
Ales Komarek | e7844d1 | 2017-06-08 12:00:01 +0200 | [diff] [blame] | 232 | salt-call event.send 'salt/orchestrate/start' "{'orchestrate': 'salt/orchestrate/infra_install.sls'}" |
Ales Komarek | 5c58de3 | 2017-06-06 11:49:32 +0200 | [diff] [blame] | 233 | |
Ales Komarek | 3ed7c43 | 2017-08-24 16:15:49 +0200 | [diff] [blame] | 234 | Synchronise modules and pillars on minion start. |
| 235 | |
| 236 | .. code-block:: yaml |
| 237 | |
| 238 | salt: |
| 239 | master: |
| 240 | reactor: |
| 241 | 'salt/minion/*/start': |
| 242 | - salt://salt/reactor/minion_start.sls |
| 243 | |
Ales Komarek | 213fbe0 | 2017-08-21 16:39:05 +0200 | [diff] [blame] | 244 | Add and/or remove the minion key |
Ales Komarek | 5c58de3 | 2017-06-06 11:49:32 +0200 | [diff] [blame] | 245 | |
| 246 | .. code-block:: yaml |
| 247 | |
| 248 | salt: |
| 249 | master: |
| 250 | reactor: |
Ales Komarek | 213fbe0 | 2017-08-21 16:39:05 +0200 | [diff] [blame] | 251 | salt/key/create: |
| 252 | - salt://salt/reactor/key_create.sls |
| 253 | salt/key/remove: |
| 254 | - salt://salt/reactor/key_remove.sls |
Ales Komarek | 5c58de3 | 2017-06-06 11:49:32 +0200 | [diff] [blame] | 255 | |
Ales Komarek | 213fbe0 | 2017-08-21 16:39:05 +0200 | [diff] [blame] | 256 | Event to trigger the key creation |
Ales Komarek | 5c58de3 | 2017-06-06 11:49:32 +0200 | [diff] [blame] | 257 | |
| 258 | .. code-block:: bash |
| 259 | |
Adam Tengler | 6218896 | 2017-09-04 13:34:44 +0000 | [diff] [blame] | 260 | salt-call event.send 'salt/key/create' \ |
| 261 | > "{'node_id': 'id-of-minion', 'node_host': '172.16.10.100', 'orch_post_create': 'kubernetes.orchestrate.compute_install', 'post_create_pillar': {'node_name': 'id-of-minion'}}" |
Ales Komarek | 5c58de3 | 2017-06-06 11:49:32 +0200 | [diff] [blame] | 262 | |
Ales Komarek | 213fbe0 | 2017-08-21 16:39:05 +0200 | [diff] [blame] | 263 | .. note:: |
| 264 | |
| 265 | You can add pass additional `orch_pre_create`, `orch_post_create`, |
| 266 | `orch_pre_remove` or `orch_post_remove` parameters to the event to call |
| 267 | extra orchestrate files. This can be useful for example for |
| 268 | registering/unregistering nodes from the monitoring alarms or dashboards. |
| 269 | |
| 270 | The key creation event needs to be run from other machine than the one |
| 271 | being registered. |
| 272 | |
| 273 | Event to trigger the key removal |
| 274 | |
| 275 | .. code-block:: bash |
| 276 | |
| 277 | salt-call event.send 'salt/key/remove' |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 278 | |
| 279 | Salt syndic |
| 280 | ----------- |
| 281 | |
| 282 | The master of masters |
| 283 | |
| 284 | .. code-block:: yaml |
| 285 | |
| 286 | salt: |
| 287 | master: |
| 288 | enabled: true |
| 289 | order_masters: True |
| 290 | |
| 291 | Lower syndicated master |
| 292 | |
| 293 | .. code-block:: yaml |
| 294 | |
| 295 | salt: |
| 296 | syndic: |
| 297 | enabled: true |
| 298 | master: |
| 299 | host: master-of-master-host |
| 300 | timeout: 5 |
| 301 | |
| 302 | Syndicated master with multiple master of masters |
| 303 | |
| 304 | .. code-block:: yaml |
| 305 | |
| 306 | salt: |
| 307 | syndic: |
| 308 | enabled: true |
| 309 | masters: |
| 310 | - host: master-of-master-host1 |
| 311 | - host: master-of-master-host2 |
| 312 | timeout: 5 |
| 313 | |
| 314 | |
| 315 | Salt-minion proxy |
| 316 | ----------------- |
Jiri Broulik | a0f4668 | 2017-04-20 22:45:01 +0200 | [diff] [blame] | 317 | |
| 318 | Salt proxy pillar |
| 319 | |
| 320 | .. code-block:: yaml |
| 321 | |
| 322 | salt: |
| 323 | minion: |
Jiri Broulik | 8827524 | 2017-05-24 17:21:17 +0200 | [diff] [blame] | 324 | proxy_minion: |
Jiri Broulik | a0f4668 | 2017-04-20 22:45:01 +0200 | [diff] [blame] | 325 | master: localhost |
| 326 | device: |
| 327 | vsrx01.mydomain.local: |
| 328 | enabled: true |
| 329 | engine: napalm |
| 330 | csr1000v.mydomain.local: |
| 331 | enabled: true |
| 332 | engine: napalm |
| 333 | |
| 334 | .. note:: This is pillar of the the real salt-minion |
| 335 | |
| 336 | |
| 337 | Proxy pillar for IOS device |
| 338 | |
| 339 | .. code-block:: yaml |
| 340 | |
| 341 | proxy: |
| 342 | proxytype: napalm |
| 343 | driver: ios |
| 344 | host: csr1000v.mydomain.local |
| 345 | username: root |
| 346 | passwd: r00tme |
| 347 | |
| 348 | .. note:: This is pillar of the node thats not able to run salt-minion itself |
| 349 | |
| 350 | |
| 351 | Proxy pillar for JunOS device |
| 352 | |
| 353 | .. code-block:: yaml |
| 354 | |
| 355 | proxy: |
| 356 | proxytype: napalm |
| 357 | driver: junos |
| 358 | host: vsrx01.mydomain.local |
| 359 | username: root |
| 360 | passwd: r00tme |
| 361 | optional_args: |
| 362 | config_format: set |
| 363 | |
| 364 | .. note:: This is pillar of the node thats not able to run salt-minion itself |
| 365 | |
Ales Komarek | 8fb1da8 | 2016-08-21 23:52:03 +0200 | [diff] [blame] | 366 | |
| 367 | Salt SSH |
| 368 | -------- |
| 369 | |
| 370 | Salt SSH with sudoer using key |
| 371 | |
| 372 | .. literalinclude:: tests/pillar/master_ssh_minion_key.sls |
| 373 | :language: yaml |
| 374 | |
| 375 | Salt SSH with sudoer using password |
| 376 | |
| 377 | .. literalinclude:: tests/pillar/master_ssh_minion_password.sls |
| 378 | :language: yaml |
| 379 | |
| 380 | Salt SSH with root using password |
| 381 | |
| 382 | .. literalinclude:: tests/pillar/master_ssh_minion_root.sls |
| 383 | :language: yaml |
| 384 | |
| 385 | |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 386 | Salt minion |
| 387 | ----------- |
| 388 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 389 | Simplest Salt minion setup with central configuration node |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 390 | |
| 391 | .. code-block:: yaml |
| 392 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 393 | .. literalinclude:: tests/pillar/minion_master.sls |
| 394 | :language: yaml |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 395 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 396 | Multi-master Salt minion setup |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 397 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 398 | .. literalinclude:: tests/pillar/minion_multi_master.sls |
| 399 | :language: yaml |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 400 | |
| 401 | Salt minion with salt mine options |
| 402 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 403 | .. literalinclude:: tests/pillar/minion_mine.sls |
| 404 | :language: yaml |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 405 | |
| 406 | Salt minion with graphing dependencies |
| 407 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 408 | .. literalinclude:: tests/pillar/minion_graph.sls |
| 409 | :language: yaml |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 410 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 411 | Salt minion behind HTTP proxy |
Ondrej Smola | c2d3e6f | 2017-03-26 17:52:40 +0200 | [diff] [blame] | 412 | |
| 413 | .. code-block:: yaml |
| 414 | |
| 415 | salt: |
| 416 | minion: |
| 417 | proxy: |
| 418 | host: 127.0.0.1 |
| 419 | port: 3128 |
| 420 | |
Sam Stoelinga | bb4c04b | 2017-06-26 15:47:19 -0700 | [diff] [blame] | 421 | Salt minion to specify non-default HTTP backend. The default tornado backend |
| 422 | does not respect HTTP proxy settings set as environment variables. This is |
| 423 | useful for cases where you need to set no_proxy lists. |
| 424 | |
| 425 | .. code-block:: yaml |
| 426 | |
| 427 | salt: |
| 428 | minion: |
| 429 | backend: urllib2 |
| 430 | |
| 431 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 432 | Salt minion with PKI certificate authority (CA) |
Ales Komarek | 5d17e4b | 2016-04-08 11:53:53 +0200 | [diff] [blame] | 433 | |
| 434 | .. literalinclude:: tests/pillar/minion_pki_ca.sls |
| 435 | :language: yaml |
| 436 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 437 | Salt minion using PKI certificate |
Ales Komarek | 5d17e4b | 2016-04-08 11:53:53 +0200 | [diff] [blame] | 438 | |
| 439 | .. literalinclude:: tests/pillar/minion_pki_cert.sls |
| 440 | :language: yaml |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 441 | |
Petr Michalec | 56066ac | 2017-06-01 10:52:56 +0200 | [diff] [blame] | 442 | Salt minion trust CA certificates issued by salt CA on a specific host (ie: salt-master node) |
| 443 | |
| 444 | .. code-block:: yaml |
| 445 | |
| 446 | salt: |
| 447 | minion: |
| 448 | trusted_ca_minions: |
| 449 | - cfg01 |
Ales Komarek | 8fb1da8 | 2016-08-21 23:52:03 +0200 | [diff] [blame] | 450 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 451 | Salt control (cloud/kvm/docker) |
| 452 | ------------------------------- |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 453 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 454 | Salt cloud with local OpenStack provider |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 455 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 456 | .. literalinclude:: tests/pillar/control_cloud_openstack.sls |
| 457 | :language: yaml |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 458 | |
| 459 | Salt cloud with Digital Ocean provider |
| 460 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 461 | .. literalinclude:: tests/pillar/control_cloud_digitalocean.sls |
| 462 | :language: yaml |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 463 | |
Ales Komarek | 8fb1da8 | 2016-08-21 23:52:03 +0200 | [diff] [blame] | 464 | Salt virt with KVM cluster |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 465 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 466 | .. literalinclude:: tests/pillar/control_virt.sls |
| 467 | :language: yaml |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 468 | |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 469 | |
| 470 | Usage |
| 471 | ===== |
| 472 | |
| 473 | Working with salt-cloud |
| 474 | |
| 475 | .. code-block:: bash |
| 476 | |
| 477 | salt-cloud -m /path/to/map --assume-yes |
| 478 | |
| 479 | Debug LIBCLOUD for salt-cloud connection |
| 480 | |
| 481 | .. code-block:: bash |
| 482 | |
| 483 | export LIBCLOUD_DEBUG=/dev/stderr; salt-cloud --list-sizes provider_name --log-level all |
| 484 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 485 | |
Ales Komarek | 5474068 | 2017-05-15 07:16:23 +0200 | [diff] [blame] | 486 | More Information |
| 487 | ================ |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 488 | |
| 489 | * http://salt.readthedocs.org/en/latest/ |
| 490 | * https://github.com/DanielBryan/salt-state-graph |
| 491 | * http://karlgrz.com/testing-salt-states-rapidly-with-docker/ |
| 492 | * https://mywushublog.com/2013/03/configuration-management-with-salt-stack/ |
| 493 | * http://russell.ballestrini.net/replace-the-nagios-scheduler-and-nrpe-with-salt-stack/ |
| 494 | * https://github.com/saltstack-formulas/salt-formula |
| 495 | * http://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html |
| 496 | |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 497 | |
Filip Pytloun | b4b8059 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 498 | salt-cloud |
| 499 | ---------- |
| 500 | |
| 501 | * http://www.blog.sandro-mathys.ch/2013/07/setting-user-password-when-launching.html |
| 502 | * http://cloudinit.readthedocs.org/en/latest/topics/examples.html |
| 503 | * http://salt-cloud.readthedocs.org/en/latest/topics/install/index.html |
| 504 | * http://docs.saltstack.com/topics/cloud/digitalocean.html |
| 505 | * http://salt-cloud.readthedocs.org/en/latest/topics/rackspace.html |
| 506 | * http://salt-cloud.readthedocs.org/en/latest/topics/map.html |
| 507 | * http://docs.saltstack.com/en/latest/topics/tutorials/multimaster.html |
Ales Komarek | 8ba9c0b | 2016-02-21 14:59:59 +0100 | [diff] [blame] | 508 | |
Filip Pytloun | 954dbd6 | 2017-02-02 13:02:03 +0100 | [diff] [blame] | 509 | |
| 510 | Documentation and Bugs |
| 511 | ====================== |
| 512 | |
| 513 | To learn how to install and update salt-formulas, consult the documentation |
| 514 | available online at: |
| 515 | |
| 516 | http://salt-formulas.readthedocs.io/ |
| 517 | |
| 518 | In the unfortunate event that bugs are discovered, they should be reported to |
| 519 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 520 | formula: |
| 521 | |
| 522 | https://github.com/salt-formulas/salt-formula-salt/issues |
| 523 | |
| 524 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 525 | use Launchpad salt-formulas project: |
| 526 | |
| 527 | https://launchpad.net/salt-formulas |
| 528 | |
| 529 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 530 | |
| 531 | https://launchpad.net/~salt-formulas-users |
| 532 | |
| 533 | Developers wishing to work on the salt-formulas projects should always base |
| 534 | their work on master branch and submit pull request against specific formula. |
| 535 | |
| 536 | https://github.com/salt-formulas/salt-formula-salt |
| 537 | |
| 538 | Any questions or feedback is always welcome so feel free to join our IRC |
| 539 | channel: |
| 540 | |
| 541 | #salt-formulas @ irc.freenode.net |