Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
__init__.py
cfg.example.json
cfg_file.py
consul_all_svc.ctmpl
consul_single_svc.ctmpl

README.md

Nitrox for Consul-Template

Usage

Pre-requisites

  1. [Consul-template] (https://github.com/hashicorp/consul-template)
  2. Netscaler pre-requisites are here

Theory of operation

consul-template creates a JSON config file for a Consul service. This config file is fed to the python script which drives Netscaler configuration

Example

# in top-level directory of project
consul-template -consul $CONSUL_IP:8500 -template consul_single_svc.ctmpl:cfg.json:"python main.py --cfg-file cfg.json"