agent

command module
v0.0.0-...-5753017 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

README

Tactycal

Tactycal agent is a tool for collecting details about the machine and a list of installed packages. The data is then submitted to Tactycal API where it's matched with a list of known issues and vulnerabilities.

Installation

Prebuilt binaries

Please visit "Download agent" section in Tactycal for detailed instructions on how to install the agent on your system.

Building from source

Execute following to get the source:

$ go get github.com/tactycal/agent          # checkout the code
$ cd $GOPATH/src/github.com/tactycal/agent  # move to the directory
$ make                                      # list all supported targets

The most important targets:

$ make test                      # runs unit tests
$ make build                     # builds agent 
$ make up                        # starts agents in all distributions
$ make up/<distribution>         # starts agent for specific distribution

Currently supported distributions are:

  • centos
  • debian
  • rhel
  • ubuntu
  • openSUSE
  • sles
  • amzn (Amazon Linux AMI)

Run make or make help for a list of all supported targets.

Configuration

Agent can be configured with a simple key/value configuration file. It will take /etc/tactycal/agent.conf as a default, unless a custom file is provided:

$ tactycal -f your_config.conf

Following configuration options are available:

Option Required Description
token Yes token used for authentication and authorization
uri No full API endpoint, defaults to https://api.tactycal.com/v1 (should be used for development only)
labels No list of comma separated values that will be stored together with your host (you can also use environment variables, ex: $SERVER_ROLE)
proxy No URL of the proxy server
timeout No set timeout for calls to Tactycal's API (check Go's documentation for notation)
state No path to file where client's authentication state will be stored

Running the agent

Additional command line arguments can be set when running Tactycal:

Argument Default Description
-f string /etc/tactycal/agent.conf use a configuration file
-d false output debug information
-s string /var/opt/tactycal/state path to where Tactycal can write its state
-t duration 3s client timeout for request in seconds (check Go's documentation for notation)
-v print version and exit
-l false print host information and installed packages to standard output as json string and exit

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package osDiscovery implements functions to get basic operating system identification data for Linux operating system.
Package osDiscovery implements functions to get basic operating system identification data for Linux operating system.
Package packageLookup provides function to get list of installed packages.
Package packageLookup provides function to get list of installed packages.
Package stubUtils provides wrapper functions for reading from file, writing to file, executing a command and stub interface for unit testing.
Package stubUtils provides wrapper functions for reading from file, writing to file, executing a command and stub interface for unit testing.

Jump to

Keyboard shortcuts

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