Categorygithub.com/max-bytes/omnikeeper-deploy-agent

# README

omnikeeper-deploy-agent

Base Go module for an application that does the following:

Fetches host data from omnikeeper, transforms it and stores it in a JSON config file (1 file per host). Then it triggers an ansible playbook (again per host) that can load the JSON config file and perform all kinds of operations. The main usecase is to make ansible render templated configuration files and deploy them to target hosts.

Overview

Overview of omnikeeper-deploy-agent

Run the sample app

Prerequisites for running the sample app:

  • working omnikeeper instance
  • working ansible_playbook executable
  • properly configured config file
  • playbook that reads the variable file (using variable {{host_variable_file}} that contains the variable file location), see contrib/sample-playbook.yml
go run cmd/sample_app/main.go --config config/sample-config.yml

Run tests

go test ./...

# Packages

No description provided by the author