omnikeeper-deploy-agent

module
v2.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0

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 ./...

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL