This plugin uses os.environ['ANSIBLE_CONSUL_URL'] to get the consul url, 
defaulting to http://localhost:8500 if not set. This works fine when run on 
the host node where consul is running. 

How would I set a dynamically environment set a host env when this lookup 
is running local?

I have hacked the source to allow for getting host and port from params, eg:

                consul_api = consul.Consul(host=params['consul_host'], 
port=params['consul_port'])

I am happy to provide a PR for this, but would for sure like to get rid of 
my local copy. 

-- 
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/cfefa12f-254d-436e-a97a-6b402302cdcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to