[copr] remove insecure mode from builderpb
This commit is contained in:
parent
0b73bffe5f
commit
b8c6ca3c89
2 changed files with 3 additions and 4 deletions
|
@ -6,17 +6,17 @@ def nova_result_to_builder_ip(nova_result, network_name):
|
||||||
|
|
||||||
|
|
||||||
def network_name_to_id(network_name, username, password, tenant_name, auth_url):
|
def network_name_to_id(network_name, username, password, tenant_name, auth_url):
|
||||||
nt = Client(username, password, tenant_name, auth_url, insecure=True)
|
nt = Client(username, password, tenant_name, auth_url)
|
||||||
return nt.networks.find(label=network_name).id
|
return nt.networks.find(label=network_name).id
|
||||||
|
|
||||||
|
|
||||||
def image_name_to_id(image_name, username, password, tenant_name, auth_url):
|
def image_name_to_id(image_name, username, password, tenant_name, auth_url):
|
||||||
nt = Client(username, password, tenant_name, auth_url, insecure=True)
|
nt = Client(username, password, tenant_name, auth_url)
|
||||||
return nt.images.find(name=image_name).id
|
return nt.images.find(name=image_name).id
|
||||||
|
|
||||||
|
|
||||||
def flavor_name_to_id(flavor_name, username, password, tenant_name, auth_url):
|
def flavor_name_to_id(flavor_name, username, password, tenant_name, auth_url):
|
||||||
nt = Client(username, password, tenant_name, auth_url, insecure=True)
|
nt = Client(username, password, tenant_name, auth_url)
|
||||||
return nt.flavors.find(name=flavor_name).id
|
return nt.flavors.find(name=flavor_name).id
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
- name: spin/ensure vm with nova_compute
|
- name: spin/ensure vm with nova_compute
|
||||||
local_action:
|
local_action:
|
||||||
module: nova_compute
|
module: nova_compute
|
||||||
insecure: True
|
|
||||||
auth_url: "{{OS_AUTH_URL}}"
|
auth_url: "{{OS_AUTH_URL}}"
|
||||||
login_username: "{{OS_USERNAME}}"
|
login_username: "{{OS_USERNAME}}"
|
||||||
login_password: "{{OS_PASSWORD}}"
|
login_password: "{{OS_PASSWORD}}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue