Ian Levesque
b8aa2ff9a7
Fix session-based kv acquire/release ( #2181 )
...
* Fix session-based kv acquire/release
* add example of using session in doc
2016-12-08 11:34:13 -05:00
Rene Moser
002ce4b352
consul: add docs, fix typos, minor style fix
2016-12-08 11:34:09 -05:00
Sun JianKang
f7b6523ff5
add service address when register service ( #1299 )
2016-12-08 11:34:09 -05:00
James Cammarata
c6e8b9a0b7
Fixing/cleaning up kubernetes submission
...
1) Removed kubectl functionality. We'll move that into a different
module in the future. Also removed post/put/patch/delete options,
as they are not Ansible best practice.
2) Expanded error handling in areas where tracebacks were most likely,
based on bad data from users, etc.
3) Added an 'insecure' option and made the password param optional, to
enable the use of the local insecure port.
4) Allowed the data (both inline and from the file) to support multiple
items via a list. This is common in YAML files where mutliple docs
are used to create/remove multiple resources in one shot.
5) General bug fixing.
2016-12-08 11:34:08 -05:00
Eric Johnson
a59cb5cae1
Adding kubernetes module
2016-12-08 11:34:08 -05:00
Chris Tooley
b2c7d28f41
Modify consul certificate validation bypass keyword from 'verify' to 'validate_certs'
2016-12-08 11:34:00 -05:00
Chris Tooley
ca1efafc50
Add version_added to documentation
2016-12-08 11:33:59 -05:00
Chris Tooley
6c41d9cd38
Add https support for consul clustering modules
2016-12-08 11:33:59 -05:00
Justin Good
f85f575a58
Add support for recursive znode deletion
2016-12-08 11:33:57 -05:00
Michael Scherer
4589b67a44
Remove unused variables
...
Session_id is unused in update_session, changed is always specifically
set in all exit_json call, and consul_client.session.destroy return True
or False, and is unused later (nor checked)
2016-12-08 11:33:55 -05:00
Michael Scherer
fabd619070
Rename consul variable to consul_client
...
Since the module is also named consul, pyflakes emit a warning
about it since the variable shadow the module.
2016-12-08 11:33:55 -05:00
Michael Scherer
78571c053b
Pyflakes complain about unused import, so remove it
2016-12-08 11:33:55 -05:00
Michael Scherer
334bfbd465
Add a datacenter parameter, fix #1693
2016-12-08 11:33:55 -05:00
Toshio Kuratomi
ad0d2c1747
Update for modules which import json.
...
Some do not use the json module directly so don't need import json.
Some needed to fallback to simplejson with no traceback if neither was installed
Fixes #1298
2016-12-08 11:33:44 -05:00
Joel Thompson
3796e26a9d
Add no_log=True to consul modules' API tokens
...
API tokens should be considered sensitive and not logged.
2016-12-08 11:33:40 -05:00
twmartin
33ee8d6f89
Correct 'object not iterable' TypeError
2016-12-08 11:33:38 -05:00
Jimmy Tang
40e6b3870e
Fix documentation, the correct parameter is "name"
2016-12-08 11:33:33 -05:00
Brian Coca
a65647efee
added version_added and fixed some doc parsing issues
2016-12-08 11:33:27 -05:00
Jeremy Wells
c8e0f3a552
Add consul http checks to consul.py
...
Consul module already supports ttl and script checks. This commit adds
http checks.
2016-12-08 11:33:27 -05:00
Brian Coca
d530764c49
fixed option in examples
2016-12-08 11:33:27 -05:00
Matt Martz
503948203f
znode requires a minimum of python2.6
2016-12-08 11:33:24 -05:00
Toshio Kuratomi
dc788cf045
Make the znode module a valid ansible module
2016-12-08 11:33:24 -05:00
Konstantin Manna
21d1cd81f7
bugfix: uncall an uncallable dict
2016-12-08 11:33:21 -05:00
Chris Hoffman
fa82572f01
Removing token obfuscation
2016-12-08 11:33:21 -05:00
Chris Hoffman
3f7fe00110
Adding support for service ACLs in consul_acl module
2016-12-08 11:33:21 -05:00
Brian Coca
b0e86d3551
fixes to prevent doc brekage
2016-12-08 11:33:09 -05:00
Brian Coca
7c964b0dd3
moved znode to clustering added version_added
2016-12-08 11:33:08 -05:00
Toshio Kuratomi
a4859e1087
Clean up unneeded urllib2 imports
2016-12-08 11:33:01 -05:00
Brian Coca
b789277517
minor doc fixes
2016-12-08 11:33:00 -05:00
Matt Martz
18878be584
Add missing __init__.py file
2016-12-08 11:32:56 -05:00
Greg DeKoenigsberg
c65a612d1f
Changes to author formatting, remove emails
2016-12-08 11:32:51 -05:00
mlamatr
4005b2855b
corrected typo in URL for consul.io
2016-12-08 11:32:44 -05:00
Brian Coca
ce8db1cf79
fixed version on consul modules
2016-12-08 11:32:43 -05:00
Brian Coca
c4f52f62f7
fix doc parsing by correctly quoting author
2016-12-08 11:32:39 -05:00
Toshio Kuratomi
a8c12ec097
Add python >= 2.6 to documented deps
2016-12-08 11:32:36 -05:00
Matt Martz
acee6436af
Give consul modules a .py extension
2016-12-08 11:32:36 -05:00
Steve Gargan
366f163495
use module.fail_json to report import errors. document valid duration units
2016-12-08 11:32:35 -05:00
Steve Gargan
e1ff0feb58
documentation tweaks to fix missing arguments and specification of defaults
2016-12-08 11:32:35 -05:00
Steve Gargan
b5faf88494
Properly report exception causes particularly connection exceptions contacting the consul agent
2016-12-08 11:32:35 -05:00
Steve Gargan
e701972186
require a valid duration suffix for interval and ttl values
2016-12-08 11:32:35 -05:00
Steve Gargan
2728dc3fb8
fix logic that tests for change in an existing registered service
2016-12-08 11:32:35 -05:00
Steve Gargan
a04bd291b4
remove debug imports from acl module
2016-12-08 11:32:34 -05:00
Steve Gargan
4b5e73c11c
Initial commit of Ansible support for the Consul clustering framework ( http://consul.io ). Submission includes support for - creating and registering services and checks - reading, writing and lookup for values in consul's kv store - creating and manipulating sessions for distributed locking on values in the kv - creating and manipulating ACLs for restricting access to the kv store - inventory support that reads the Consul catalog and group nodes according to - datacenters - exposed services - service availability - arbitrary groupings from the kv store
...
This submission makes extensive use of the python-consul library and this is required
as a dependency and can be installed from pip.
The tests were written to target a vagrant cluster which can be setup by following the
instructions here http://github.com/sgargan/consul-vagrant
2016-12-08 11:32:34 -05:00