once more
This commit is contained in:
parent
cc36937b3c
commit
9a86af1799
1 changed files with 21 additions and 21 deletions
|
@ -110,10 +110,10 @@
|
||||||
- name: Add the cirros-0.3.2-x86_64 image
|
- name: Add the cirros-0.3.2-x86_64 image
|
||||||
glance_image:
|
glance_image:
|
||||||
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
||||||
name: cirros-0.3.2-x86_64
|
name=cirros-0.3.2-x86_64
|
||||||
disk_format: qcow2
|
disk_format=qcow2
|
||||||
is_public: True
|
is_public=True
|
||||||
file: /root/images/cirros-0.3.2-x86_64-disk.img
|
file=/root/images/cirros-0.3.2-x86_64-disk.img
|
||||||
|
|
||||||
- name: create non-standard flavor
|
- name: create non-standard flavor
|
||||||
action: shell source /root/keystonerc_admin && nova flavor-list | grep m1.builder || nova flavor-create m1.builder 6 5120 50 3
|
action: shell source /root/keystonerc_admin && nova flavor-list | grep m1.builder || nova flavor-create m1.builder 6 5120 50 3
|
||||||
|
@ -126,10 +126,10 @@
|
||||||
- name: Add the images
|
- name: Add the images
|
||||||
glance_image:
|
glance_image:
|
||||||
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
||||||
name: "{{ item.name }}"
|
name="{{ item.name }}"
|
||||||
disk_format: qcow2
|
disk_format=qcow2
|
||||||
is_public: True
|
is_public=True
|
||||||
file: "{{ item.file }}"
|
file="{{ item.file }}"
|
||||||
with_items:
|
with_items:
|
||||||
- name: fedora-cloud-64-20-20140407
|
- name: fedora-cloud-64-20-20140407
|
||||||
file: /root/images/Fedora-x86_64-20-20140407-sda.qcow2
|
file: /root/images/Fedora-x86_64-20-20140407-sda.qcow2
|
||||||
|
@ -145,9 +145,9 @@
|
||||||
- name: Create tenants
|
- name: Create tenants
|
||||||
keystone_user:
|
keystone_user:
|
||||||
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
||||||
tenant: "{{ item.name }}"
|
tenant="{{ item.name }}"
|
||||||
tenant_description: "{{ item.desc }}"
|
tenant_description="{{ item.desc }}"
|
||||||
state: present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
- { name: persistent, desc: "persistent instances" }
|
- { name: persistent, desc: "persistent instances" }
|
||||||
- { name: qa, desc: "" }
|
- { name: qa, desc: "" }
|
||||||
|
@ -166,10 +166,10 @@
|
||||||
- name: Create users
|
- name: Create users
|
||||||
keystone_user:
|
keystone_user:
|
||||||
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
||||||
user: "{{ item.name }}"
|
user="{{ item.name }}"
|
||||||
email: "{{ item.email }}"
|
email="{{ item.email }}"
|
||||||
tenant: "{{ item.tenant }}"
|
tenant="{{ item.tenant }}"
|
||||||
state: present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
- { name: kevin, email: 'kevin@fedoraproject.org', tenant: infrastructure }
|
- { name: kevin, email: 'kevin@fedoraproject.org', tenant: infrastructure }
|
||||||
- { name: laxathom, email: 'laxathom@fedoraproject.org', tenant: infrastructure }
|
- { name: laxathom, email: 'laxathom@fedoraproject.org', tenant: infrastructure }
|
||||||
|
@ -199,9 +199,9 @@
|
||||||
neutron_network:
|
neutron_network:
|
||||||
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
login_username="admin" login_password="{{ ADMIN_PASS }}" login_tenant_name="admin"
|
||||||
name=external
|
name=external
|
||||||
router_external: True
|
router_external=True
|
||||||
provider_network_type: flat
|
provider_network_type=flat
|
||||||
provider_physical_network: floatnet
|
provider_physical_network=floatnet
|
||||||
register: EXTERNAL_ID
|
register: EXTERNAL_ID
|
||||||
- name: Create an external subnet
|
- name: Create an external subnet
|
||||||
neutron_subnet:
|
neutron_subnet:
|
||||||
|
@ -209,10 +209,10 @@
|
||||||
name=external-subnet
|
name=external-subnet
|
||||||
network_name=external-subnet
|
network_name=external-subnet
|
||||||
cidr="{{ public_interface_cidr }}"
|
cidr="{{ public_interface_cidr }}"
|
||||||
allocation_pool_start: "{{ public_floating_start }}"
|
allocation_pool_start="{{ public_floating_start }}"
|
||||||
allocation_pool_end: "{{ public_floating_end }}"
|
allocation_pool_end="{{ public_floating_end }}"
|
||||||
gateway_ip="{{ public_gateway_ip }}"
|
gateway_ip="{{ public_gateway_ip }}"
|
||||||
enable_dhcp: False
|
enable_dhcp=False
|
||||||
register: EXTERNAL_SUBNET_ID
|
register: EXTERNAL_SUBNET_ID
|
||||||
- shell: source /root/keystonerc_admin && nova floating-ip-create external
|
- shell: source /root/keystonerc_admin && nova floating-ip-create external
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue