Hello,
I'm trying to create Google compute engine instances and configure them
just after.
I successfully managed existing instances with a playbook and the dynamic
inventory.
However I can't manage instances I just created because I have to
*setup the SSH keymanually* in the google console or the gcloud compute sdk.
*Is it possible to bypass this last step with the GCE Module? *(Maybe using
the service account ?)
Moreover, when I specify a zone for a new instance I get an AttributeError
from the libcloud
Ex: europe-west1-a
File
"/home/klein_p/.ansible/tmp/ansible-tmp-1442242379.71-111777200918176/gce",
line 1515, in <module>
main()
File
"/home/klein_p/.ansible/tmp/ansible-tmp-1442242379.71-111777200918176/gce",
line 407, in main
module, gce, inames)
File
"/home/klein_p/.ansible/tmp/ansible-tmp-1442242379.71-111777200918176/gce",
line 248, in create_instances
lc_machine_type = gce.ex_get_size(machine_type)
File
"/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/gce.py",
line 4128, in ex_get_size
zone = self.ex_get_zone(zone)
File
"/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/gce.py",
line 4269, in ex_get_zone
if name.startswith('https://'):
AttributeError: 'NoneType' object has no attribute 'startswith'
It seems the string parameter can't be parsed.
(when I don't specify a zone the instance is created)
I'm using ansible 1.5.4
Thanks,
Paul
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/1f057326-2563-43c3-b5ea-271d3282947f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.