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 |
| 46 | message_queue: |
| 47 | engine: rabbitmq |
| 48 | members: |
| 49 | - host: 127.0.0.1 |
| 50 | user: openstack |
| 51 | password: password |
| 52 | virtual_host: '/openstack' |
| 53 | pools: |
| 54 | default: |
| 55 | description: 'default pool' |
| 56 | attributes: |
| 57 | service_tier: GOLD |
| 58 | ns_records: |
| 59 | - hostname: 'ns1.example.org.' |
| 60 | priority: 10 |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 61 | nameservers: |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 62 | - host: 127.0.0.1 |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 63 | port: 53 |
| 64 | targets: |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 65 | default_target: |
| 66 | type: bind9 |
| 67 | description: 'default target' |
| 68 | masters: |
| 69 | - host: 127.0.0.1 |
| 70 | port: 5354 |
| 71 | options: |
| 72 | host: 127.0.0.1 |
| 73 | port: 53 |
| 74 | rndc_host: 127.0.0.1 |
| 75 | rndc_port: 953 |
| 76 | rndc_key_file: /etc/designate/rndc.key |
| 77 | |
| 78 | .. note:: |
| 79 | *domain_id* parameter is UUID of DNS zone managed by designate-sink service. This zone will |
| 80 | be populated by A records for fixed and floating ip addresses of spawned VMs. After designate |
| 81 | is deployed and zone is created, this parameter should be updated accordingly to UUID of |
| 82 | newly created zone. Then designate state should be reapplied. |
| 83 | |
Mykyta Karpin | b251931 | 2017-08-08 13:24:22 +0300 | [diff] [blame^] | 84 | .. note:: |
| 85 | *server:api:base_uri* allows to set URL which is returned in designate-api responses, it is |
| 86 | useful in cases when, designate-api is deployed under proxy server. If not overriden in reclass, |
| 87 | it defaults to http://*server:bind:api:address*:9001/. |
| 88 | |
Mykyta Karpin | 8bda8df | 2017-06-08 14:48:55 +0300 | [diff] [blame] | 89 | Pools pillar for BIND9 master and multiple slaves setup: |
| 90 | |
| 91 | .. code:: yaml |
| 92 | |
| 93 | pools: |
| 94 | default: |
| 95 | description: 'default pool' |
| 96 | attributes: |
| 97 | service_tier: GOLD |
| 98 | ns_records: |
| 99 | - hostname: 'ns1.example.org.' |
| 100 | priority: 10 |
| 101 | nameservers: |
| 102 | - host: 192.168.0.1 |
| 103 | port: 53 |
| 104 | - host: 192.168.0.2 |
| 105 | port: 53 |
| 106 | - host: 192.168.0.3 |
| 107 | port: 53 |
| 108 | targets: |
| 109 | default_target: |
| 110 | type: bind9 |
| 111 | description: 'default target' |
| 112 | masters: |
| 113 | - host: 192.168.0.4 |
| 114 | port: 5354 |
| 115 | options: |
| 116 | host: 192.168.0.4 |
| 117 | port: 53 |
| 118 | rndc_host: 192.168.0.4 |
| 119 | rndc_port: 953 |
| 120 | rndc_key_file: /etc/designate/rndc.key |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 121 | |
| 122 | Usage |
Aleš Komárek | 53c944b | 2017-02-06 14:08:15 +0100 | [diff] [blame] | 123 | ===== |
Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame] | 124 | |
| 125 | Create server |
| 126 | |
| 127 | .. code:: bash |
| 128 | |
| 129 | designate server-create --name ns.example.com. |
| 130 | |
| 131 | Create domain |
| 132 | |
| 133 | .. code:: bash |
| 134 | |
| 135 | designate domain-create --name example.com. --email mail@example.com |
| 136 | |
| 137 | Create record |
| 138 | |
| 139 | .. code:: bash |
| 140 | |
| 141 | designate record-create example.com. --name test.example.com. --type A --data 10.2.14.15 |
| 142 | |
| 143 | Test it |
| 144 | |
| 145 | .. code:: bash |
| 146 | |
| 147 | dig @127.0.0.1 test.example.com. |
Filip Pytloun | bfa7211 | 2017-02-02 13:17:47 +0100 | [diff] [blame] | 148 | |
| 149 | Documentation and Bugs |
| 150 | ====================== |
| 151 | |
| 152 | To learn how to install and update salt-formulas, consult the documentation |
| 153 | available online at: |
| 154 | |
| 155 | http://salt-formulas.readthedocs.io/ |
| 156 | |
| 157 | In the unfortunate event that bugs are discovered, they should be reported to |
| 158 | the appropriate issue tracker. Use Github issue tracker for specific salt |
| 159 | formula: |
| 160 | |
| 161 | https://github.com/salt-formulas/salt-formula-letsencrypt/issues |
| 162 | |
| 163 | For feature requests, bug reports or blueprints affecting entire ecosystem, |
| 164 | use Launchpad salt-formulas project: |
| 165 | |
| 166 | https://launchpad.net/salt-formulas |
| 167 | |
| 168 | You can also join salt-formulas-users team and subscribe to mailing list: |
| 169 | |
| 170 | https://launchpad.net/~salt-formulas-users |
| 171 | |
| 172 | Developers wishing to work on the salt-formulas projects should always base |
| 173 | their work on master branch and submit pull request against specific formula. |
| 174 | |
| 175 | https://github.com/salt-formulas/salt-formula-letsencrypt |
| 176 | |
| 177 | Any questions or feedback is always welcome so feel free to join our IRC |
| 178 | channel: |
| 179 | |
| 180 | #salt-formulas @ irc.freenode.net |