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 |
Mykyta Karpin | f728b07 | 2017-10-31 13:39:11 +0200 | [diff] [blame^] | 80 | quota: |
| 81 | zones: 40 |
Ivan Udovichenko | 53fd311 | 2017-09-07 14:07:09 +0300 | [diff] [blame] | 82 | worker: |
| 83 | enabled: true |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 84 | .. note:: |
Ivan Udovichenko | 53fd311 | 2017-09-07 14:07:09 +0300 | [diff] [blame] | 85 | *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] | 86 | be populated by A records for fixed and floating ip addresses of spawned VMs. After designate |
| 87 | is deployed and zone is created, this parameter should be updated accordingly to UUID of |
| 88 | newly created zone. Then designate state should be reapplied. |
| 89 | |
Mykyta Karpin | b251931 | 2017-08-08 13:24:22 +0300 | [diff] [blame] | 90 | .. note:: |
| 91 | *server:api:base_uri* allows to set URL which is returned in designate-api responses, it is |
| 92 | useful in cases when, designate-api is deployed under proxy server. If not overriden in reclass, |
| 93 | it defaults to http://*server:bind:api:address*:9001/. |
| 94 | |
Ivan Udovichenko | 53fd311 | 2017-09-07 14:07:09 +0300 | [diff] [blame] | 95 | .. note:: |
Ivan Udovichenko | a35a07d | 2017-09-29 14:50:10 +0300 | [diff] [blame] | 96 | *server:mdns:address* and *server:mdns:port* options allow to change MDNS listening address and |
| 97 | port. Changes to server:pools:*:targets will be also required if the MDNS's address and port are |
| 98 | being used there. |
| 99 | |
| 100 | .. note:: |
Ivan Udovichenko | 53fd311 | 2017-09-07 14:07:09 +0300 | [diff] [blame] | 101 | *worker:enabled* sets worker role and installs designate-worker and designate-producer packages |
| 102 | which services will push changes to backend DNS servers. |
| 103 | *pool_manager:enabled* should be a default role for older releases of OpenStack, older than |
| 104 | Newton in which designate-worker and designate-producer were represented. |
| 105 | In releases starting from Newton, only Designate pool manager service still allows live syncs |
| 106 | with Power DNS server for now. |
| 107 | |
Mykyta Karpin | f728b07 | 2017-10-31 13:39:11 +0200 | [diff] [blame^] | 108 | .. note:: |
| 109 | *server:quota:zones* allows to set default value for zones quota for all projects and users. |
| 110 | In case with Designate tempest plugin (0.2.0) zones quota should be increased to 40, so all |
| 111 | tests can pass. |
| 112 | |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 113 | Pools pillar for BIND9 master and multiple slaves setup: |
| 114 | |
| 115 | .. code:: yaml |
| 116 | |
| 117 | pools: |
| 118 | default: |
| 119 | description: 'default pool' |
| 120 | attributes: |
| 121 | service_tier: GOLD |
| 122 | ns_records: |
| 123 | - hostname: 'ns1.example.org.' |
| 124 | priority: 10 |
| 125 | nameservers: |
| 126 | - host: 192.168.0.1 |
| 127 | port: 53 |
| 128 | - host: 192.168.0.2 |
| 129 | port: 53 |
| 130 | - host: 192.168.0.3 |
| 131 | port: 53 |
| 132 | targets: |
| 133 | default_target: |
| 134 | type: bind9 |
| 135 | description: 'default target' |
| 136 | masters: |
| 137 | - host: 192.168.0.4 |
| 138 | port: 5354 |
| 139 | options: |
| 140 | host: 192.168.0.4 |
| 141 | port: 53 |
| 142 | rndc_host: 192.168.0.4 |
| 143 | rndc_port: 953 |
| 144 | rndc_key_file: /etc/designate/rndc.key |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 145 | |
| 146 | Usage |
Aleš Komárek | 53c944b | 2017-02-06 14:08:15 +0100 | [diff] [blame] | 147 | ===== |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 148 | |
| 149 | Create server |
| 150 | |
| 151 | .. code:: bash |
| 152 | |
| 153 | designate server-create --name ns.example.com. |
| 154 | |
| 155 | Create domain |
| 156 | |
| 157 | .. code:: bash |
| 158 | |
| 159 | designate domain-create --name example.com. --email mail@example.com |
| 160 | |
| 161 | Create record |
| 162 | |
| 163 | .. code:: bash |
| 164 | |
| 165 | designate record-create example.com. --name test.example.com. --type A --data 10.2.14.15 |
| 166 | |
| 167 | Test it |
| 168 | |
| 169 | .. code:: bash |
| 170 | |
| 171 | dig @127.0.0.1 test.example.com. |
Filip Pytloun | bfa7211 | 2017-02-02 13:17:47 +0100 | [diff] [blame] | 172 | |
| 173 | Documentation and Bugs |
| 174 | ====================== |
| 175 | |
| 176 | To learn how to install and update salt-formulas, consult the documentation |
| 177 | available online at: |
| 178 | |
| 179 | http://salt-formulas.readthedocs.io/ |
| 180 | |
| 181 | In the unfortunate event that bugs are discovered, they should be reported to |
| 182 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 183 | formula: |
| 184 | |
| 185 | https://github.com/salt-formulas/salt-formula-letsencrypt/issues |
| 186 | |
| 187 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 188 | use Launchpad salt-formulas project: |
| 189 | |
| 190 | https://launchpad.net/salt-formulas |
| 191 | |
| 192 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 193 | |
| 194 | https://launchpad.net/~salt-formulas-users |
| 195 | |
| 196 | Developers wishing to work on the salt-formulas projects should always base |
| 197 | their work on master branch and submit pull request against specific formula. |
| 198 | |
| 199 | https://github.com/salt-formulas/salt-formula-letsencrypt |
| 200 | |
| 201 | Any questions or feedback is always welcome so feel free to join our IRC |
| 202 | channel: |
| 203 | |
| 204 | #salt-formulas @ irc.freenode.net |