File: shell-v2.rst

package info (click to toggle)
python-designateclient 2.1.0-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 692 kB
  • sloc: python: 4,422; makefile: 47; sh: 30
file content (43 lines) | stat: -rw-r--r-- 925 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
=============================
designate v2 cli and examples
=============================

In order to use the v2 you need *python-openstackclient* available.

::

    $ pip install python-openstackclient


Using the client
----------------

Source credentials first

::

    $ source ~/openrc

Or you can use the ~/.config/openstack/clouds.yaml approach.

.. note::

    This required you to pass in --os-cloud <cloudname> after the "openstack" part.

We can now try to create a primary zone

.. code-block:: shell-session

    $ openstack zone create example.net. --email foo@example.org

Create a A type recordset with some records in it.

.. code-block:: shell-session

    $ openstack recordset create example.net --type A www --records 10.0.0.1 10.0.0.2

Set a PTR record for a Floating IP

.. code-block:: shell-session

    $ openstack ptr record set RegionOne:5c02c519-4928-4a38-bd10-c748c200912f mail.example.net.