write image as name instead of id

This commit is contained in:
Miroslav Suchý 2015-03-25 14:24:50 +00:00
parent b6df57c85a
commit e1e3ff5e93
2 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,8 @@
--- ---
instance_type: m1.xlarge instance_type: m1.xlarge
image: "{{ f20_qcow_id }}" #image: "{{ f20_qcow_id }}"
keypair: fedora-admin-20130801 image: "Fedora-Cloud-Base-20141203-21"
keypair: msuchy
security_group: web-80-anywhere-persistent,web-443-anywhere-persistent,ssh-anywhere-persistent,default security_group: web-80-anywhere-persistent,web-443-anywhere-persistent,ssh-anywhere-persistent,default
zone: nova zone: nova
hostbase: copr-be-dev- hostbase: copr-be-dev-

View file

@ -40,7 +40,7 @@
login_password: "{{ADMIN_PASS}}" login_password: "{{ADMIN_PASS}}"
login_tenant_name: "{{inventory_tenant}}" login_tenant_name: "{{inventory_tenant}}"
name: "{{inventory_instance_name}}" name: "{{inventory_instance_name}}"
image_id: "{{ image }}" image_id: "{{ image|image_name_to_id('admin', ADMIN_PASS, inventory_tenant, os_auth_url) }}"
wait_for: 300 wait_for: 300
flavor_id: "{{ instance_type|flavor_name_to_id('admin', ADMIN_PASS, inventory_tenant, os_auth_url) }} flavor_id: "{{ instance_type|flavor_name_to_id('admin', ADMIN_PASS, inventory_tenant, os_auth_url) }}
security_groups: "{{security_group}}" security_groups: "{{security_group}}"