Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 1 | |
Aleš Komárek | 53c944b | 2017-02-06 14:08:15 +0100 | [diff] [blame] | 2 | ================= |
| 3 | Designate formula |
| 4 | ================= |
| 5 | |
| 6 | Designate provides DNSaaS services for OpenStack. |
| 7 | |
| 8 | Sample pillars |
| 9 | ============== |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 10 | |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 11 | For Designate with BIND9 local backend: |
| 12 | |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 13 | .. code:: yaml |
| 14 | |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 15 | designate: |
| 16 | server: |
| 17 | enabled: true |
| 18 | region: RegionOne |
| 19 | domain_id: 5186883b-91fb-4891-bd49-e6769234a8fc |
| 20 | version: ocata |
| 21 | backend: |
| 22 | bind9: |
| 23 | rndc_key: 4pc+X4PDqb2q+5o72dISm72LM1Ds9X2EYZjqg+nmsS7FhdTwzFFY8l/iEDmHxnyjkA33EQC8H+z0fLLBunoitw== |
| 24 | rndc_algorithm: hmac-sha512 |
Mykyta Karpin | b251931 | 2017-08-08 13:24:22 +0300 | [diff] [blame] | 25 | api: |
| 26 | base_uri: 'http://127.0.0.1:9001' |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 27 | bind: |
| 28 | api: |
| 29 | address: 127.0.0.1 |
| 30 | database: |
| 31 | engine: mysql |
| 32 | host: 127.0.0.1 |
| 33 | port: 3306 |
| 34 | name: |
| 35 | main_database: designate |
| 36 | pool_manager: designate_pool_manager |
| 37 | user: designate |
| 38 | password: passw0rd |
| 39 | identity: |
| 40 | engine: keystone |
| 41 | host: 127.0.0.1 |
| 42 | port: 35357 |
| 43 | tenant: service |
| 44 | user: designate |
| 45 | password: passw0rd |
Ivan Udovichenko | a35a07d | 2017-09-29 14:50:10 +0300 | [diff] [blame^] | 46 | mdns: |
| 47 | address: 0.0.0.0 |
| 48 | port: 5354 |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 49 | message_queue: |
| 50 | engine: rabbitmq |
| 51 | members: |
| 52 | - host: 127.0.0.1 |
| 53 | user: openstack |
| 54 | password: password |
| 55 | virtual_host: '/openstack' |
| 56 | pools: |
| 57 | default: |
| 58 | description: 'default pool' |
| 59 | attributes: |
| 60 | service_tier: GOLD |
| 61 | ns_records: |
| 62 | - hostname: 'ns1.example.org.' |
| 63 | priority: 10 |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 64 | nameservers: |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 65 | - host: 127.0.0.1 |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 66 | port: 53 |
| 67 | targets: |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 68 | default_target: |
| 69 | type: bind9 |
| 70 | description: 'default target' |
| 71 | masters: |
| 72 | - host: 127.0.0.1 |
| 73 | port: 5354 |
| 74 | options: |
| 75 | host: 127.0.0.1 |
| 76 | port: 53 |
| 77 | rndc_host: 127.0.0.1 |
| 78 | rndc_port: 953 |
| 79 | rndc_key_file: /etc/designate/rndc.key |
Ivan Udovichenko | 53fd311 | 2017-09-07 14:07:09 +0300 | [diff] [blame] | 80 | worker: |
| 81 | enabled: true |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 82 | .. note:: |
Ivan Udovichenko | 53fd311 | 2017-09-07 14:07:09 +0300 | [diff] [blame] | 83 | *domain_id* parameter is UUID of DNS zone managed by designate-sink service. This zone will |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 84 | be populated by A records for fixed and floating ip addresses of spawned VMs. After designate |
| 85 | is deployed and zone is created, this parameter should be updated accordingly to UUID of |
| 86 | newly created zone. Then designate state should be reapplied. |
| 87 | |
Mykyta Karpin | b251931 | 2017-08-08 13:24:22 +0300 | [diff] [blame] | 88 | .. note:: |
| 89 | *server:api:base_uri* allows to set URL which is returned in designate-api responses, it is |
| 90 | useful in cases when, designate-api is deployed under proxy server. If not overriden in reclass, |
| 91 | it defaults to http://*server:bind:api:address*:9001/. |
| 92 | |
Ivan Udovichenko | 53fd311 | 2017-09-07 14:07:09 +0300 | [diff] [blame] | 93 | .. note:: |
Ivan Udovichenko | a35a07d | 2017-09-29 14:50:10 +0300 | [diff] [blame^] | 94 | *server:mdns:address* and *server:mdns:port* options allow to change MDNS listening address and |
| 95 | port. Changes to server:pools:*:targets will be also required if the MDNS's address and port are |
| 96 | being used there. |
| 97 | |
| 98 | .. note:: |
Ivan Udovichenko | 53fd311 | 2017-09-07 14:07:09 +0300 | [diff] [blame] | 99 | *worker:enabled* sets worker role and installs designate-worker and designate-producer packages |
| 100 | which services will push changes to backend DNS servers. |
| 101 | *pool_manager:enabled* should be a default role for older releases of OpenStack, older than |
| 102 | Newton in which designate-worker and designate-producer were represented. |
| 103 | In releases starting from Newton, only Designate pool manager service still allows live syncs |
| 104 | with Power DNS server for now. |
| 105 | |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 106 | Pools pillar for BIND9 master and multiple slaves setup: |
| 107 | |
| 108 | .. code:: yaml |
| 109 | |
| 110 | pools: |
| 111 | default: |
| 112 | description: 'default pool' |
| 113 | attributes: |
| 114 | service_tier: GOLD |
| 115 | ns_records: |
| 116 | - hostname: 'ns1.example.org.' |
| 117 | priority: 10 |
| 118 | nameservers: |
| 119 | - host: 192.168.0.1 |
| 120 | port: 53 |
| 121 | - host: 192.168.0.2 |
| 122 | port: 53 |
| 123 | - host: 192.168.0.3 |
| 124 | port: 53 |
| 125 | targets: |
| 126 | default_target: |
| 127 | type: bind9 |
| 128 | description: 'default target' |
| 129 | masters: |
| 130 | - host: 192.168.0.4 |
| 131 | port: 5354 |
| 132 | options: |
| 133 | host: 192.168.0.4 |
| 134 | port: 53 |
| 135 | rndc_host: 192.168.0.4 |
| 136 | rndc_port: 953 |
| 137 | rndc_key_file: /etc/designate/rndc.key |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 138 | |
| 139 | Usage |
Aleš Komárek | 53c944b | 2017-02-06 14:08:15 +0100 | [diff] [blame] | 140 | ===== |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 141 | |
| 142 | Create server |
| 143 | |
| 144 | .. code:: bash |
| 145 | |
| 146 | designate server-create --name ns.example.com. |
| 147 | |
| 148 | Create domain |
| 149 | |
| 150 | .. code:: bash |
| 151 | |
| 152 | designate domain-create --name example.com. --email mail@example.com |
| 153 | |
| 154 | Create record |
| 155 | |
| 156 | .. code:: bash |
| 157 | |
| 158 | designate record-create example.com. --name test.example.com. --type A --data 10.2.14.15 |
| 159 | |
| 160 | Test it |
| 161 | |
| 162 | .. code:: bash |
| 163 | |
| 164 | dig @127.0.0.1 test.example.com. |
Filip Pytloun | bfa7211 | 2017-02-02 13:17:47 +0100 | [diff] [blame] | 165 | |
| 166 | Documentation and Bugs |
| 167 | ====================== |
| 168 | |
| 169 | To learn how to install and update salt-formulas, consult the documentation |
| 170 | available online at: |
| 171 | |
| 172 | http://salt-formulas.readthedocs.io/ |
| 173 | |
| 174 | In the unfortunate event that bugs are discovered, they should be reported to |
| 175 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 176 | formula: |
| 177 | |
| 178 | https://github.com/salt-formulas/salt-formula-letsencrypt/issues |
| 179 | |
| 180 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 181 | use Launchpad salt-formulas project: |
| 182 | |
| 183 | https://launchpad.net/salt-formulas |
| 184 | |
| 185 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 186 | |
| 187 | https://launchpad.net/~salt-formulas-users |
| 188 | |
| 189 | Developers wishing to work on the salt-formulas projects should always base |
| 190 | their work on master branch and submit pull request against specific formula. |
| 191 | |
| 192 | https://github.com/salt-formulas/salt-formula-letsencrypt |
| 193 | |
| 194 | Any questions or feedback is always welcome so feel free to join our IRC |
| 195 | channel: |
| 196 | |
| 197 | #salt-formulas @ irc.freenode.net |