Skip to content

dimMaryanto93/ansible-role-checkmk-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dimmaryanto93.checkmk_agent

Repository ini digunakan untuk menginstall checkmk_agent untuk Linux

Support platform

  • Debian
  • Ubuntu
  • CentOS

Ansible - User Guide

Persiapan yang harus di lalukan, diantaranya

  1. Create new user on your server, Recomend using very-very Strong Password or using password generator.
adduser <username>
  1. Granted to sudoers with NOPASSWD, using visudo
username    ALL=(ALL) NOPASSWD:ALL
  1. 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.

Requirements

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

Role Variables

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

Dependencies

None

Example Playbook

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 }

License

MIT