Pavel Cizinsky | 8236144 | 2016-11-25 14:26:47 +0100 | [diff] [blame^] | 1 | salt-formula-designate |
| 2 | ====================== |
| 3 | |
| 4 | Designate provides DNSaaS services for OpenStack ## Sample pillars |
| 5 | |
| 6 | .. code:: yaml |
| 7 | |
| 8 | designate: |
| 9 | server: |
| 10 | database: |
| 11 | host: ${_param:database_vip_address} |
| 12 | notification: true |
| 13 | message_queue: |
| 14 | members: |
| 15 | - host: ${_param:messaging_node01_address} |
| 16 | - host: ${_param:messaging_node02_address} |
| 17 | - host: ${_param:messaging_node03_address} |
| 18 | pool: |
| 19 | pool_id: cae73b6f-95eb-4a7d-a567-099ae6176e08 |
| 20 | nameservers: |
| 21 | - uuid: 690d7bc8-811b-404c-abcc-9cec54d87092 |
| 22 | host: ${_param:cluster_node01_address} |
| 23 | port: 53 |
| 24 | - uuid: bc5ddcf0-8d95-4f87-b435-9ff831a4a14c |
| 25 | host: ${_param:cluster_node02_address} |
| 26 | port: 53 |
| 27 | - uuid: a43d5375-a5ec-4077-8c87-ec0b08fa3bd1 |
| 28 | host: ${_param:cluster_node03_address} |
| 29 | port: 53 |
| 30 | targets: |
| 31 | uuid: f26e0b32-736f-4f0a-831b-039a415c481e |
| 32 | options: 'port: 53, host: 127.0.0.1' |
| 33 | masters: 127.0.0.1:5354 |
| 34 | type: bind9 |
| 35 | |
| 36 | Usage |
| 37 | ----- |
| 38 | |
| 39 | Create server |
| 40 | |
| 41 | .. code:: bash |
| 42 | |
| 43 | designate server-create --name ns.example.com. |
| 44 | |
| 45 | Create domain |
| 46 | |
| 47 | .. code:: bash |
| 48 | |
| 49 | designate domain-create --name example.com. --email mail@example.com |
| 50 | |
| 51 | Create record |
| 52 | |
| 53 | .. code:: bash |
| 54 | |
| 55 | designate record-create example.com. --name test.example.com. --type A --data 10.2.14.15 |
| 56 | |
| 57 | Test it |
| 58 | |
| 59 | .. code:: bash |
| 60 | |
| 61 | dig @127.0.0.1 test.example.com. |