summaryrefslogtreecommitdiff
path: root/README.md
blob: efc34b6aed0a4215e1582e529448fdbb6b1e5ac3 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Ansible modules for managing OpenStack

These are additional, unofficial Ansible modules for managing OpenStack.

These are a dependency of the [openstack-ansible][1] repo for doing a test deployment of OpenStack into virtual machines managed by vagrant.

To use this, add this directory to to the ANSIBLE_LIBRARY environment variable, or symlink this directory to ./library relative to the playbook that uses it.

[1]: http://github.com/lorin/openstack-ansible

## keystone_manage

Initialize the keystone database:

    keystone_manage: action=db_sync

This is the equivalent of:

    # keystone-manage db_sync


## keystone_user

Manage users, tenants, and roles

Create a tenant

    keystone_user: token=$admin_token tenant=demo tenant_description="Default Tenant"

Create a user

    keystone_user: token=$admin_token user=admin tenant=demo password=secrete

Create and apply a role:

    keystone_user: token=$admin_token role=admin user=admin tenant=demo

## keystone_service

Manage services and endpoints

    keystone_service: token=$admin_token name=keystone type=identity description="Identity Service" public_url="http://192.168.206.130:5000/v2.0" internal_url="http://192.168.206.130:5000/v2.0" admin_url="http://192.168.206.130:35357/v2.0"

You can use `url` as an alias for `public_url`. If you don't specify internal and admin urls, they will default to the same value of public url. For example:

    keystone_service: token=$admin_token name=nova type=compute description="Compute Service" url=http://192.168.206.130:8774/v2/%(tenant_id)s


## glance_manage

Initialize the glance database:

    glance_manage: action=db_sync

This is the (idempotent) equivalent of:

    # glance-manage version_control 0
    # glance-manage db_sync


## glance

Add images

    glance: name=cirros file=/tmp/cirros-0.3.0-x86_64-disk.img disk_format=qcow2 is_public=true user=admin tenant=demo password=secrete region=RegionOne auth_url=http://192.168.206.130:5000/v2.0

## Not yet supported
- Disabled tenants
- Deleting users
- Deleting roles
- Deleting services
- Deleting endpoints
- Deleting images
- Updating tenants
- Updating users
- Updating services
- Updating endpoints
- Multiple endpoints per service
- Updating images


## Will probably never be supported
- Non-unique names for tenants, users, roles, services and images.