blob: d0b267ef83fd3156e7589c7585816ab57f5b2d2b [file] [log] [blame]
Pavel Cizinsky82361442016-11-25 14:26:47 +01001
Aleš Komárek53c944b2017-02-06 14:08:15 +01002=================
3Designate formula
4=================
5
6Designate provides DNSaaS services for OpenStack.
7
8Sample pillars
9==============
Pavel Cizinsky82361442016-11-25 14:26:47 +010010
Mykyta Karpin8bda8df2017-06-08 14:48:55 +030011For Designate with BIND9 local backend:
12
Pavel Cizinsky82361442016-11-25 14:26:47 +010013.. code:: yaml
14
Mykyta Karpin8bda8df2017-06-08 14:48:55 +030015 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 Karpinb2519312017-08-08 13:24:22 +030025 api:
26 base_uri: 'http://127.0.0.1:9001'
Mykyta Karpin8bda8df2017-06-08 14:48:55 +030027 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 Cizinsky82361442016-11-25 14:26:47 +010061 nameservers:
Mykyta Karpin8bda8df2017-06-08 14:48:55 +030062 - host: 127.0.0.1
Pavel Cizinsky82361442016-11-25 14:26:47 +010063 port: 53
64 targets:
Mykyta Karpin8bda8df2017-06-08 14:48:55 +030065 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 Karpinb2519312017-08-08 13:24:22 +030084.. 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 Karpin8bda8df2017-06-08 14:48:55 +030089Pools 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 Cizinsky82361442016-11-25 14:26:47 +0100121
122Usage
Aleš Komárek53c944b2017-02-06 14:08:15 +0100123=====
Pavel Cizinsky82361442016-11-25 14:26:47 +0100124
125Create server
126
127.. code:: bash
128
129 designate server-create --name ns.example.com.
130
131Create domain
132
133.. code:: bash
134
135 designate domain-create --name example.com. --email mail@example.com
136
137Create record
138
139.. code:: bash
140
141 designate record-create example.com. --name test.example.com. --type A --data 10.2.14.15
142
143Test it
144
145.. code:: bash
146
147 dig @127.0.0.1 test.example.com.
Filip Pytlounbfa72112017-02-02 13:17:47 +0100148
149Documentation and Bugs
150======================
151
152To learn how to install and update salt-formulas, consult the documentation
153available online at:
154
155 http://salt-formulas.readthedocs.io/
156
157In the unfortunate event that bugs are discovered, they should be reported to
158the appropriate issue tracker. Use Github issue tracker for specific salt
159formula:
160
161 https://github.com/salt-formulas/salt-formula-letsencrypt/issues
162
163For feature requests, bug reports or blueprints affecting entire ecosystem,
164use Launchpad salt-formulas project:
165
166 https://launchpad.net/salt-formulas
167
168You can also join salt-formulas-users team and subscribe to mailing list:
169
170 https://launchpad.net/~salt-formulas-users
171
172Developers wishing to work on the salt-formulas projects should always base
173their work on master branch and submit pull request against specific formula.
174
175 https://github.com/salt-formulas/salt-formula-letsencrypt
176
177Any questions or feedback is always welcome so feel free to join our IRC
178channel:
179
180 #salt-formulas @ irc.freenode.net