Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.41 KB

File metadata and controls

65 lines (45 loc) · 1.41 KB

Opsmatic

The Opsmatic role allows the installation of the Opsmatic Agent on hosts you're managing with Ansible

Requirements

This role has no requirements

Role Variables

The variable opsmatic_integration_token must contain your Opsmatic integration token, you can obtain this through the Opsmatic UI.

Dependencies

This role has no dependencies.

Example Playbook

- hosts: servers
  roles:
     - opsmatic.opsmatic

Example /default/main.yml

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']

Testing

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>

License

MIT

Author Information

Contact us at https://github.com/opsmatic/opsmatic-ansible