The Opsmatic role allows the installation of the Opsmatic Agent on hosts you're managing with Ansible
This role has no requirements
The variable opsmatic_integration_token
must contain your Opsmatic integration token, you can obtain this through the Opsmatic UI.
This role has no dependencies.
- hosts: servers
roles:
- opsmatic.opsmatic
In the event that you would like to set all of the default variables change the default/main.yml
file:
---
opsmatic_auth_http: "https://api.opsmatic.com"
opsmatic_integration_token: "YOURINTEGRATIONTOKEN"
opsmatic_install_cli: true
opsmatic_host_alias: "myhostalias_name"
opsmatic_groups: ['groupone','grouptwo','groupthree', 'yet-another-group']
opsmatic_file_monitor_list: ['/etc/nginx/nginx.conf','/etc/ssh/sshd_config','/etc/hosts']
bundle install --path vendor/bundle
bundle exec kitchen list
bundle exec kitchen test
# for development, shorter cycle
bundle exec kitchen converge <platform>
bundle exec kitchen verify <platform>
MIT
Contact us at https://github.com/opsmatic/opsmatic-ansible