- Changed underlying consul library from
python-consul
which is no longer maintained topython-consul2
which is maintained. - Certain Python3 libraries return byte strings. We need to decode them in order to correctly json-ify them.
- Drop Python 2.7 support
- Add README documentation
- Properly increment pack.yaml version
- Pack supports client key/certificate and CA certificate parameters. issue #22
- Pack supports consul profiles. issue #23
- New Actions
- ACLInfo
- ACLUpdate
- ACLClone
- Fixed destory_session method to return the result.
- Updated all actions to support ACL Tokens.
- Require python-consul v1.1.0
- Changed Actions
- All actions take a consul_profile parameter. If no profile is provided the action uses consul_default as defined in the pack configuration.
- CatalogDeregister takes check_id and token.
- CatalogServices takes node_meta.
- CatalogNodes takes node_meta.
- Update agent_service_register
tags
to be an array.
- Update agent_service_register
check
to be an object.
- Implementation for basic locking using consul key store/session.
- Make acl_list return a list instead of a string.
- Support for consul consistency mode.
- Fixed enable/disable for SSL certification verification.
- Linting fixes
Added the following API calls. (See https://python-consul.readthedocs.io for documentation)
- AgentChecks
- AgentForce
- AgentJoin
- AgentMaintenance
- AgentMembers
- AgentServices
- EventFire
- EventList
- HealthNode
- HealthState
- ServiceDeregister
- ServiceMaintenance
- ServiceRegister
- SessionCreate
- SessionDestroy
- SessionInfo
- SessionList
- SessionNode
- SessionRenew
- Renamed existing action names to be aligned with the consul API. This helps logically group operations by the subsystem they will apply to.
- Returned unmodified data from Consul API from some existing actions. Some of the existing actions were masking the metadata returned by the consul API. This metadata is useful in certain cases.
- Updated action
runner_type
fromrun-python
topython-script
- Added consul.health_service action to query a services status and group the result by hostname
- Added consul.health_check action to query a services status and group the result by check
- Added consul.list action to get a list of Keys from consul under a given key
- Added Recursive lookup for consul.get action.
- Both list and get use the same python runner with additional
recurse
, andkeys
parameters with appropriate defaults.
- Added ability to register and deregister a remote service with consul
- Added ports parameter to consul.query_service. When true, include ports in node list ip:port.
- Initial Release