blob: 48cb5ff7c45e48374a5d1051d58aa70f4485c14a [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
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 Cizinsky82361442016-11-25 14:26:47 +010059 nameservers:
Mykyta Karpin8bda8df2017-06-08 14:48:55 +030060 - host: 127.0.0.1
Pavel Cizinsky82361442016-11-25 14:26:47 +010061 port: 53
62 targets:
Mykyta Karpin8bda8df2017-06-08 14:48:55 +030063 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
82Pools 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 Cizinsky82361442016-11-25 14:26:47 +0100114
115Usage
Aleš Komárek53c944b2017-02-06 14:08:15 +0100116=====
Pavel Cizinsky82361442016-11-25 14:26:47 +0100117
118Create server
119
120.. code:: bash
121
122 designate server-create --name ns.example.com.
123
124Create domain
125
126.. code:: bash
127
128 designate domain-create --name example.com. --email mail@example.com
129
130Create record
131
132.. code:: bash
133
134 designate record-create example.com. --name test.example.com. --type A --data 10.2.14.15
135
136Test it
137
138.. code:: bash
139
140 dig @127.0.0.1 test.example.com.
Filip Pytlounbfa72112017-02-02 13:17:47 +0100141
142Documentation and Bugs
143======================
144
145To learn how to install and update salt-formulas, consult the documentation
146available online at:
147
148 http://salt-formulas.readthedocs.io/
149
150In the unfortunate event that bugs are discovered, they should be reported to
151the appropriate issue tracker. Use Github issue tracker for specific salt
152formula:
153
154 https://github.com/salt-formulas/salt-formula-letsencrypt/issues
155
156For feature requests, bug reports or blueprints affecting entire ecosystem,
157use Launchpad salt-formulas project:
158
159 https://launchpad.net/salt-formulas
160
161You can also join salt-formulas-users team and subscribe to mailing list:
162
163 https://launchpad.net/~salt-formulas-users
164
165Developers wishing to work on the salt-formulas projects should always base
166their work on master branch and submit pull request against specific formula.
167
168 https://github.com/salt-formulas/salt-formula-letsencrypt
169
170Any questions or feedback is always welcome so feel free to join our IRC
171channel:
172
173 #salt-formulas @ irc.freenode.net