Repository ini digunakan untuk menginstall checkmk_agent untuk Linux
Support platform
- Debian
- Ubuntu
- CentOS
Persiapan yang harus di lalukan, diantaranya
- Create new user on your server, Recomend using very-very Strong Password or using password generator.
adduser <username>
- Granted to sudoers with NOPASSWD, using
visudo
username ALL=(ALL) NOPASSWD:ALL
- Authenticate with private-key for login ssh, generate ssh key on your local machine then use
ssh-copy-id user@your-ip-server
to copy public key to your server.
Untuk menggunakan role ini, kita membutuhkan package/collection
Temen-temen bisa install, dengan cara
ansible-galaxy collection install ansible.posix community.general
Atau temen-temen bisa menggunakan requirement.yaml
file and install menggunakan ansible-galaxy collection install -r requirement.yaml
, dengan format seperti berikut:
---
collections:
- ansible.posix
- community.general
Ada beberapa variable yang temen-temen bisa gunakan untuk setting docker daemon, diantaranya seperti berikut:
Variable name | Example value | Description |
---|---|---|
checkmk_server_url |
http://localhost:8080 |
checkmk server url |
checkmk_agent_version |
2.0.0p6-1 |
version checkmk agent bisa di check di alamat http://checkmk-server-ip:checkmk-server-port/cmk/check_mk/agents/ |
checkmk_agent_only_from |
['localhost', '192.168.88.10'] |
Untuk memprotect data yang di expose oleh check_mk_agent yang boleh di access oleh ip tersebut |
checkmk_agent_port |
'6556' |
Port yang di gunakan untuk berkomunikasi dengan checkmk_server |
None
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
become: true
roles:
- { role: dimmaryanto93.checkmk_agent }
MIT