[ansible-project] Re: Can not attach CM rom in Vmware

2016-02-11 Thread kesten broughton
I saw the same problem and have not found a fix for it yet. -- 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 ansible-project+unsubscr...@googlegroups.com. To

[ansible-project] Re: Using the git module with HTTP/S creds

2016-01-31 Thread kesten broughton
"Ansible (although it may just be git itself, behind the scenes) appears to freeze the username/password combination into the repo's .git/config file" Old thread, but it appears that this is a git feature, not an ansible thing.

Re: [ansible-project] Ansible 2.0 VMWare modules

2016-01-26 Thread Kesten Broughton
rgument. >> >> On Friday, January 15, 2016 at 11:30:23 AM UTC-6, Kesten Broughton wrote: >>> >>> vsphere_guest is based on pysphere and the ansible-extra-modules vmware >>> modules are based on psphere, (both of which are largely abandoned) >>> bu

[ansible-project] how to tag in vmware?

2016-01-12 Thread Kesten Broughton
pic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-51-host-management-guide.pdf> Has anyone seen tagging support for vmware? If not, i may take a crack at vmware_tags which would handle tagging anything that has an id or other unique identifier. kesten -- Kesten Broughton 512 701 4209 -

[ansible-project] how to attach extra private ips to an ec2 instance

2015-11-24 Thread Kesten Broughton
I've looked at modules ec2 create an instance and attach it to an interface_id or add one private and or one public ip ec2_eip attach extra public ips ec2_eni attach extra ethernet interfaces I'm trying to attach extra private ips (routable within a vpc) to a virtual eth0:1, eth0:2 to

[ansible-project] Re: Selecting hosts with softlayer.py dynamic inventory

2015-10-07 Thread Kesten Broughton
We are needing the same thing. My understanding is that the inventory modules are expected to be modified for your own needs. We modified ec2.py to strip off the ec2_tag prefix so that we could group things without renaming all roles to ec2_tag... or having to write a large and rapidly

[ansible-project] suggest having "allow_destroy" tag in ec2_module to prevent accidental deletion of servers

2015-09-14 Thread Kesten Broughton
ault would have avoided this situation as well. https://github.com/ansible/ansible/issues/9431 Would a pr for this be considered? Kesten Broughton 512 701 4209 -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from

Re: [ansible-project] Abridged summary of ansible-project@googlegroups.com - 18 updates in 8 topics

2015-09-09 Thread Kesten Broughton
ell. https://github.com/ansible/ansible/issues/9431 Would a pr for this be considered? Kesten Broughton 512 701 4209 -- 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

[ansible-project] Re: Ansible and IBM SoftLayer

2015-06-18 Thread kesten broughton
Is there anything available for testing? On Sunday, January 18, 2015 at 12:09:05 PM UTC-6, Peter Mooshammer wrote: I would be interested as well. thanks Peter On Sunday, January 18, 2015 at 8:47:38 AM UTC-8, Nate Dobbs wrote: I see as of the latest release of ansbile there exists an

[ansible-project] how to use distinct hosts files and dynamic inventory?

2015-03-08 Thread Kesten Broughton
://groups.google.com/forum/?utm_source=digestutm_medium=email#!forum/ansible-project/join . To unsubscribe from this group and stop receiving emails from it send an email to ansible-project+unsubscr...@googlegroups.com. -- Kesten Broughton 512 701 4209 -- You received this message because you

[ansible-project] Re: Flummoxed with tags and environment variables

2015-03-04 Thread Kesten Broughton
Does it work without the tags? Have you tried putting a debug statement above the - include: line to make sure? I had a problem with copy and paste somehow depositing a \r at the end of my string when loading it from and env variable sourced from a file (downloaded a key from AWS to my mac).

[ansible-project] running ansible-playbook from a debugger

2015-03-04 Thread Kesten Broughton
= utils.parse_extra_vars(options.extra_vars, vault_pass) QUestion. Am I missing something from my setup. Is there a way to prep the IDE so that I don't have to hack the ansible code? I did do the source ./env_setup and suggested. kesten -- Kesten Broughton 512 701 4209 -- You received this message because

Re: [ansible-project] AWS_SECRET_KEY I need to rstrip('/r') on ubuntu or I get an error

2015-01-21 Thread Kesten Broughton
Hi Brian, Actually, no windows machine involved. I just go to the AWS manage keys and download the credentials.csv. Then copied and pased into an aws.ini file. I was using an ubuntu 14.04 machine. I'll see if i can reproduce on my mac. k On Friday, January 16, 2015 at 8:35:57 AM UTC-6, Brian

[ansible-project] AWS_SECRET_KEY I need to rstrip('/r') on ubuntu or I get an error

2015-01-16 Thread Kesten Broughton
}} command: create zone: {{aws_vpc.zone}} record: my-record.org type: A ttl: 7200 value: 1.1.1.1,2.2.2.2,3.3.3.3 Am I doing something wrong, or is this something I should make a bug report for? -- Kesten Broughton 512 701 4209 -- You received this message

[ansible-project] Re: ansible and gce.py

2015-01-07 Thread kesten broughton
Hi Peter, I tried the secrets.py way and got the same error. I did get things working by setting the GCE_INI_PATH cat $GCE_INI_PATH [gce] # You can find your generated gce_service_account_email_address on the compute web console gce_service_account_email_address =

Re: [ansible-project] Role and playbook versioning

2015-01-04 Thread kesten broughton
Are the results of this thread available in a release yet? I tried a few of the suggestions from this thread but none worked, not even the one listed in the documentation http://docs.ansible.com/playbooks_roles.html cat meta.yml dependencies: - { role:

[ansible-project] Re: cross-playbook serial?

2014-12-16 Thread kesten broughton
+1 I have this problem a lot when I use delegate_to with multiple targets making a request of a single delegate. Lock conflicts cause intermittent failure. On Tuesday, December 16, 2014 9:41:04 AM UTC-6, Hagai Kariti wrote: Hi I'm running a deployment that consists of different plays, some

Re: [ansible-project] Re: Merging dictionaries for environment parameter

2014-11-26 Thread kesten broughton
It would be nicer to have a filter for jinja2, but this works: defaults.yml d1: k1: 1 d2: k1: 2 k2: 3 tasks/main.yml - name: dbg debug: msg={{d1}} {{d2}} - set_fact: d1: {% do d1.update(d2) %}{{d1}} - debug: msg={{d1['k1']}} OUTPUT TASK: [gnf_data | dbg]

[ansible-project] Need serial at the task level for delegate_to or another solution

2014-10-20 Thread Kesten Broughton
that the ca.db.serial.new is a tmp resource and one target removes it while another is still using it. I also get this on other tasks if the command acquires a lock on a resource. I feel like if i could attache a - serial: 1 - to the above, things would work. any tips? Kesten Broughton 512 701 4209 -- You

Re: [ansible-project] help avoiding u prefixes on template generated output of a dictionary

2014-09-25 Thread kesten broughton
: dict1: {{dict1|to_yaml}} Which produces: dict1: {_int1: '5', _str1: four} On Wed, Sep 24, 2014 at 1:54 PM, Matt Martz ma...@sivel.net javascript: wrote: You should probably use either the to_nice_yaml or to_yaml filters On Wed, Sep 24, 2014 at 1:48 PM, kesten broughton kesten.b...@gmail.com

[ansible-project] debug statements trigger security check error A variable inserted a new parameter into the module args

2014-09-03 Thread Kesten Broughton
variables if they contain equal signs (for example: {{var}}). -- Kesten Broughton 512 701 4209 -- 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 ansible-project

Re: [ansible-project] Best practices for using Ansible with and without Vagrant

2014-08-26 Thread kesten broughton
For this particular problem (calling on every vm) i use a trick i found online: only include the ansible provision call in the last vm in the Vagrantfile in is provider section. On Thursday, June 6, 2013 8:11:54 AM UTC-5, Peter Petrov wrote: On Thursday, June 6, 2013 12:51:46 PM UTC+3, Gilles

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-08-21 Thread kesten broughton
definitely prioritize it, I don't want to see these start to fork - there's no good reason for that. On Wed, Aug 20, 2014 at 10:03 PM, kesten broughton kesten.brough...@gmail.com wrote: I started with vsphere_guest but had to give up for lack of the ability to clone from a vm. There was talk

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-07-10 Thread kesten broughton
9, 2014 at 3:54 PM, kesten broughton kesten.b...@gmail.com javascript: wrote: I was referring to the vsphere_clone mentioned, not vsphere_guest which is in trunk https://github.com/ansible/ansible/tree/devel/library/cloud As far as i can tell, vsphere_guest currently only supports creating

Re: [ansible-project] vmware/esx/vsphere module - planning

2014-07-09 Thread kesten broughton
, Jul 9, 2014 at 2:47 PM, Michael DeHaan mich...@ansible.com wrote: This is actually already in core. On Wed, Jul 9, 2014 at 8:11 AM, kesten broughton kesten.brough...@gmail.com wrote: If you've got a public git branch, i can help with testing and documentation. I've worked with pysphere

Re: [ansible-project] with_sequence is incompatible with idempotency

2014-05-01 Thread kesten broughton
GMT+02:00 kesten broughton kesten.b...@gmail.comjavascript: : The error is fatal: [localhost] = can't count backwards This occurs whenever count=0 or start=M end=M If with_sequence is used for the purpose of bringing a system to a state = HAS N of something then there should be a way

Re: [ansible-project] with_sequence is incompatible with idempotency

2014-05-01 Thread kesten broughton
time) then you can run those 2 tasks multiples times works for me on grub.conf Phil 2014-05-01 15:34 GMT+02:00 kesten broughton kesten.brough...@gmail.com: Phil, the link doesn't work for me. On Thursday, May 1, 2014 2:32:23 AM UTC-5, Philippe Eveque wrote: In similar case

[ansible-project] with_sequence is incompatible with idempotency

2014-04-30 Thread Kesten Broughton
I recently had a need for with_sequence, but it doesn't seem possible to do a zero count of actions. Suppose i have a local action to create N things, perhaps vms or floating ips. Some number M N may already be present. I'd like to do hosts: localhost vars: expected_foo_count: 10 - name:

Re: [ansible-project] with_sequence is incompatible with idempotency

2014-04-30 Thread kesten broughton
with idempotency. It may imply with sequence can't traverse a zero length list, which more accurately describes the problem. So, the best thing to do here is to share what the error is and we can go from there. On Wed, Apr 30, 2014 at 9:34 AM, Kesten Broughton solarmobi...@gmail.comjavascript

Re: [ansible-project] request: group_vars loading strategy to handle deploy-specific roles variables

2014-04-29 Thread kesten broughton
, Kesten Broughton solarmobi...@gmail.comjavascript: wrote: However, i'm not clear if dropping my group_vars into ansible/plugins/vars_plugins/group_vars.py will run before, after or instead of lib/ansible/inventory/vars_plugins/group_vars.py? Is there a way to specify ordering / precedence

[ansible-project] Re: AttributeError: 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC'

2014-04-29 Thread kesten broughton
This bit me enough times that i eventually added a task for it in my playbook for creating new ansible controllers. Its NOT pretty. But it works and i've had no ill issues from it. #https://github.com/ansible/ansible/issues/276 - name: Patch bug related to pycrypto lineinfile:

[ansible-project] Is there a way to used dot-nested vars with 'default' filter in jinja2 templates?

2014-04-24 Thread Kesten Broughton
) }} I presume this is a problem at the jinja2 level? I would like to avoid the '_' flattened solution as it becomes pretty unreadable for large config files. Any suggestions on how to work around this? thanks Kesten Broughton 512 701 4209 -- You received this message because you are subscribed

[ansible-project] Re: rsync works but synchronize errors

2014-04-23 Thread kesten broughton
I was having similar problems in a similar env (ansible 1.6 / centos 6.5) and haven't gotten it completely working yet. A few questions: Do you have the ansible_ssh_private_key set in your hosts file (since the synchronize spec doesn't expose -i option)? Your command is sudo for rsync (sudo: no

Re: [ansible-project] msg: httplib2 is not installed for uri module when httplib2 is installed

2014-04-23 Thread Kesten Broughton
. Perhaps try running: /usr/bin/python -c import httplib2; print httplib2.__file__ /usr/local/bin/python -c import httplib2; print httplib2.__file__ As well as looking at: echo $PYTHONPATH -- Matt Martz m...@sivel.net On April 22, 2014 at 4:43:37 PM, Kesten Broughton ( solarmobiletrail

[ansible-project] msg: httplib2 is not installed for uri module when httplib2 is installed

2014-04-22 Thread Kesten Broughton
The play is run against localhost (my mac) but even the 3 controller openstack nodes have httplib2 installed (though in dist-packages not site-packages because it is ubuntu). any ideas? -- Kesten Broughton 512 701 4209 -- You received this message because you are subscribed to the Google Groups

[ansible-project] delegate_to: with a different user from the target hosts

2014-04-14 Thread Kesten Broughton
: mkstemp /tmp/ansible/.jdk1.7.0_25.rpm.NYd0r7 failed: Permission denied (13) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6] Killed by signal 1. -- Kesten Broughton 512 701 4209 -- You received this message because you

[ansible-project] Re: delegate_to: with a different user from the target hosts

2014-04-14 Thread kesten broughton
to keys, the ansible_ssh_private_key_file won't work as the location is different for controller vs delegate. The only fix would be to place all tenant keys in /etc/ssh/identities/ on all hosts which seems pretty non-standard. On Monday, April 14, 2014 11:05:16 AM UTC-5, Kesten Broughton wrote: We

Re: [ansible-project] request: group_vars loading strategy to handle deploy-specific roles variables

2014-04-01 Thread Kesten Broughton
March 2014 15:37, Kesten Broughton solarmobi...@gmail.comjavascript: wrote: In a previous threadhttps://groups.google.com/forum/#!topic/ansible-project/LgiQ6CRHRCY, it was discussed how one could apply deployment specific vars to a play. My solution at the time was to pass in a master

Re: [ansible-project] request: group_vars loading strategy to handle deploy-specific roles variables

2014-04-01 Thread Kesten Broughton
/vars_plugins/group_vars.py? Is there a way to specify ordering / precedence of files in a plugin directory? Maybe just point me to the plugin loader code? k On Tue, Apr 1, 2014 at 9:50 AM, Kesten Broughton solarmobiletrail...@gmail.com wrote: Thanks serge and michael. I'm not opposed to writing my

Re: [ansible-project] Abridged summary of ansible-project@googlegroups.com - 2 updates in 1 topic

2014-03-30 Thread Kesten Broughton
-project/20cf300fb397b47b6c04f5d5cae9%40google.comhttps://groups.google.com/d/msgid/ansible-project/20cf300fb397b47b6c04f5d5cae9%40google.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- Kesten Broughton 512 701 4209 -- You received

[ansible-project] request: group_vars loading strategy to handle deploy-specific roles variables

2014-03-24 Thread Kesten Broughton
request along these lines be considered, or is there an alternate preferred method that achieves the deployment-specific vars management we need? kesten -- Kesten Broughton 512 701 4209 -- You received this message because you are subscribed to the Google Groups Ansible Project group

[ansible-project] keystone_user questions

2014-03-17 Thread Kesten Broughton
comment also doesn't specify which password The token to be uses in case the password is not specified and there are two password type fields. thanks kesten Kesten Broughton 512 701 4209 -- You received this message because you are subscribed to the Google Groups Ansible Project group

[ansible-project] Re: keystone_user questions

2014-03-17 Thread Kesten Broughton
, Kesten Broughton wrote: I am able to connect to my openstack private cloud directly using pyrax. I have ~/.pyrax.cfg and ~/.pyrax.creds to accomplish this. Now i'm trying to get it working via ansible. In the docs, it's not clear how the example tenant creation is authenticated. http

[ansible-project] Permission denied using ansible-vault edit

2014-02-27 Thread Kesten Broughton
email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/047d7b8747c498715904f365fd9f%40google.com . For more options, visit https://groups.google.com/groups/opt_out. -- Kesten Broughton 512 701 4209 -- You

[ansible-project] multi-user vault processes

2014-02-24 Thread Kesten Broughton
-to-administer-vm -- Kesten Broughton 512 701 4209 -- 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 ansible-project+unsubscr...@googlegroups.com. To post

[ansible-project] /etc/hosts substitute for dynamic hosts

2014-01-21 Thread Kesten Broughton
Is there a standard way of supplying the hosts to ip mapping without relying on /etc/hosts? My typical ansible-playbook procedure is 1. Create a vm 2. Add ip fqdn hostname line to /etc/hosts 3. Add hostname to groups in ansible_hosts file I would prefer to keep dynamically generated hosts

Re: [ansible-project] Re: Include Files for Role Variables

2014-01-20 Thread kesten broughton
-at-task while developing scripts / debugging. It would be nice if include_vars at the top of the file would get loaded even when starting at a task below that. It's hard to imagine a case where that would be bad. On Sun, Jan 19, 2014 at 11:00 AM, kesten broughton kesten.b

[ansible-project] Re: Include Files for Role Variables

2014-01-19 Thread kesten broughton
Another approach that is working for me is to pass in a vars file that points to all the other vars files that you may need that change from run to run. ansible-playbook -i hosts site.yml -e @cluster_config.yml The use case is for creating clusters of hadoop based apps that have a high degree

Re: [ansible-project] Escaping $ inside a variable

2013-12-11 Thread kesten broughton
: On 11 December 2013 08:48, Kesten Broughton solarmobi...@gmail.comjavascript: wrote: path_to_git_extras: 'PATH=\\$PATH:\\$ANSIBLE_21CT_HOME/roles/git/files' does '' quoting help? path_to_git_extras: PATH=$PATH:$ANSIBLE_21CT_HOME/roles/git/files K -- You received

Re: [ansible-project] Escaping $ inside a variable

2013-12-11 Thread kesten broughton
remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer. -- IBM maintenance manual, 1925 On 12 December 2013 05:13, kesten broughton kesten.brough...@gmail.com wrote

[ansible-project] loading ini style facts for user settings

2013-11-30 Thread Kesten Broughton
I'm trying to work out a system that will accommodate user specific settings for things like credentials (using vault) and user specific facts. I'd like to be able to load .yml and .ini style. I use --start-at-task a lot, so ideally, i would like something like ansible_facts that will always be