Ilya Kharin | 981d02c | 2017-04-19 10:27:56 +0400 | [diff] [blame] | 1 | =============== |
| 2 | Rundeck Formula |
| 3 | =============== |
| 4 | |
| 5 | Rundeck is open source software that helps you automate routine operational |
| 6 | procedures in data center or cloud environments. |
Ilya Kharin | 63bfc49 | 2017-06-14 16:53:43 +0400 | [diff] [blame] | 7 | |
| 8 | Sample pillars |
| 9 | ============== |
| 10 | |
| 11 | Configure Server |
| 12 | ~~~~~~~~~~~~~~~~ |
| 13 | |
| 14 | Rundeck is suppose to be configure for running in Docker Swarm and the server |
| 15 | state prepares only configuration files, including binding parameters, system |
| 16 | user, Rundeck users and API tokens: |
| 17 | |
| 18 | .. code-block:: yaml |
| 19 | |
| 20 | rundeck: |
| 21 | server: |
| 22 | enabled: true |
| 23 | user: |
| 24 | uid: 550 |
| 25 | gid: 550 |
| 26 | api: |
| 27 | host: 10.20.0.2 |
| 28 | port: 4440 |
| 29 | https: false |
| 30 | ssh: |
| 31 | user: runbook |
| 32 | private_key: <private> |
| 33 | public_key: <public> |
| 34 | |
| 35 | users: |
| 36 | admin: |
| 37 | name: admin |
| 38 | password: password |
| 39 | roles: |
| 40 | - user |
| 41 | - admin |
| 42 | - architect |
| 43 | - deploy |
| 44 | - build |
| 45 | john: |
| 46 | name: John |
| 47 | password: johnspassword |
| 48 | roles: |
| 49 | - user |
| 50 | - admin |
| 51 | - architect |
| 52 | - deploy |
| 53 | - build |
| 54 | kate: |
| 55 | name: Kate |
| 56 | password: katespassword |
| 57 | roles: |
| 58 | - user |
| 59 | - admin |
| 60 | - architect |
| 61 | - deploy |
| 62 | - build |
| 63 | |
| 64 | tokens: |
| 65 | admin: EcK8zhQw |
| 66 | |
| 67 | |
| 68 | To configure Rundeck to use PostgreSQL instead of H2: |
| 69 | |
| 70 | |
| 71 | .. code-block:: yaml |
| 72 | |
| 73 | rundeck: |
| 74 | server: |
| 75 | datasource: |
| 76 | engine: postgresql |
| 77 | host: 10.20.0.2 |
| 78 | port: 5432 |
| 79 | username: ${_param:rundeck_postgresql_username} |
| 80 | password: ${_param:rundeck_postgresql_password} |
| 81 | database: ${_param:rundeck_postgresql_database} |
| 82 | |
| 83 | |
| 84 | Configure Client |
| 85 | ~~~~~~~~~~~~~~~~ |
| 86 | |
Ilya Kharin | 28ffe0c | 2017-06-08 03:29:42 +0400 | [diff] [blame] | 87 | Configure Secret Keys |
| 88 | ^^^^^^^^^^^^^^^^^^^^^ |
| 89 | |
| 90 | It is possible to configure secret items in Key Storage in Rundeck: |
| 91 | |
| 92 | .. code-block:: yaml |
| 93 | |
| 94 | rundeck: |
| 95 | client: |
| 96 | enabled: true |
| 97 | secret: |
| 98 | openstack/username: |
| 99 | type: password |
| 100 | content: admin |
| 101 | openstack/password: |
| 102 | type: password |
| 103 | content: password |
| 104 | openstack/keypair/private: |
| 105 | type: private |
| 106 | content: <private> |
| 107 | openstack/keypair/public: |
| 108 | type: public |
| 109 | content: <public> |
| 110 | |
| 111 | It is possible to disable keys to be sure that they are not present in Rundeck: |
| 112 | |
| 113 | .. code-block:: yaml |
| 114 | |
| 115 | rundeck: |
| 116 | client: |
| 117 | secret: |
| 118 | openstack/username: |
| 119 | enabled: false |
| 120 | |
Ilya Kharin | 63bfc49 | 2017-06-14 16:53:43 +0400 | [diff] [blame] | 121 | Configure Projects |
| 122 | ^^^^^^^^^^^^^^^^^^ |
| 123 | |
| 124 | Projects can be configured with a set of nodes which are available to run jobs |
| 125 | within them. Rundeck uses `rundeck:server:ssh` credentials to access nodes. |
| 126 | Jobs can be configured from a separate GIT repository using the SCM Import |
| 127 | plugin. |
| 128 | |
| 129 | |
| 130 | .. code-block:: yaml |
| 131 | |
| 132 | rundeck: |
| 133 | client: |
| 134 | enabled: true |
| 135 | project: |
| 136 | project0: |
| 137 | description: project |
| 138 | node: |
| 139 | node01: |
| 140 | nodename: node01 |
| 141 | hostname: node01.cluster.local |
| 142 | username: runbook |
| 143 | tags: [ubuntu, docker] |
| 144 | node02: |
| 145 | nodename: node02 |
| 146 | hostname: node02.cluster.local |
| 147 | username: runbook |
| 148 | tags: [centos, docker] |
| 149 | plugin: |
| 150 | import: |
Pavel Cizinsky | 555d667 | 2018-12-12 12:03:14 +0100 | [diff] [blame] | 151 | address: https://gerrit.cluster.local/jobs/rundeck-jobs.git |
Ilya Kharin | 63bfc49 | 2017-06-14 16:53:43 +0400 | [diff] [blame] | 152 | branch: master |