|
| 1 | +OpenStack Host Aggregates |
| 2 | +========================= |
| 3 | + |
| 4 | +This role can be used to register host aggregates in Nova using the |
| 5 | +`openstack.cloud.host_aggregate` module. |
| 6 | + |
| 7 | +Requirements |
| 8 | +------------ |
| 9 | + |
| 10 | +The OpenStack Nova API should be accessible from the target host. |
| 11 | + |
| 12 | +Role Variables |
| 13 | +-------------- |
| 14 | + |
| 15 | +`os_host_aggregates_venv` is a path to a directory in which to create a |
| 16 | +virtualenv. |
| 17 | + |
| 18 | +`os_host_aggregates_auth_type` is an authentication type compatible with the |
| 19 | +`auth_type` argument of `openstack.cloud` Ansible modules. |
| 20 | + |
| 21 | +`os_host_aggregates_auth` is a dict containing authentication information |
| 22 | +compatible with the `auth` argument of `openstack.cloud` Ansible modules. |
| 23 | + |
| 24 | +`os_host_aggregates_cacert` is an optional path to a CA certificate bundle. |
| 25 | + |
| 26 | +`os_host_aggregates_interface` is the endpoint URL type to fetch from the |
| 27 | +service catalog. Maybe be one of `public`, `admin`, or `internal`. |
| 28 | + |
| 29 | +`os_host_aggregates` is a list of Nova host aggregates to register. Each item |
| 30 | +should be a dict containing the item 'name', and optionally: |
| 31 | + |
| 32 | +* 'availability_zone' (name of the availability zone to set on the aggregate) |
| 33 | +* 'hosts' (list of hostnames to add to the aggregate) |
| 34 | +* 'metadata' (dict of key/value pairs to set on the aggregate) |
| 35 | + |
| 36 | +Dependencies |
| 37 | +------------ |
| 38 | + |
| 39 | +This role depends on the `stackhpc.openstack.os_openstacksdk` role. |
| 40 | + |
| 41 | +Example Playbook |
| 42 | +---------------- |
| 43 | + |
| 44 | +The following playbook registers a Nova host aggregate. |
| 45 | + |
| 46 | + --- |
| 47 | + - name: Ensure Nova host aggregates are registered |
| 48 | + hosts: localhost |
| 49 | + roles: |
| 50 | + - role: stackhpc.openstack.os_host_aggregates |
| 51 | + os_host_aggregates_venv: "~/os-host-aggregates-venv" |
| 52 | + os_host_aggregates_auth_type: "password" |
| 53 | + os_host_aggregates_auth: |
| 54 | + project_name: <keystone project> |
| 55 | + username: <keystone user> |
| 56 | + password: <keystone password> |
| 57 | + auth_url: <keystone auth URL> |
| 58 | + os_host_aggregates: |
| 59 | + - name: db_aggregate |
| 60 | + availability_zone: az1 |
| 61 | + hosts: |
| 62 | + - host1 |
| 63 | + - host2 |
| 64 | + metadata: |
| 65 | + type: dbcluster |
| 66 | + |
| 67 | +Author Information |
| 68 | +------------------ |
| 69 | + |
| 70 | +- Pierre Riteau ( <[email protected]>) |
0 commit comments