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