Skip to content

boutetnico/ansible-role-pmm-client

Repository files navigation

tests Ansible Galaxy

ansible-role-pmm-client

This role installs PMM client.

It is part of a family of Ansible roles allowing to setup and configure PMM:

Requirements

Ansible 2.10 or newer.

Supported Platforms

Role Variables

Variable Required Default Choices Comments
pmm_client_server_url true https://admin:admin@127.0.0.1:443 string
pmm_client_server_insecure_tls true false bool
pmm_client_package_state true present string Use latest to upgrade PMM client.
pmm_client_services true [] list Services to configure. See defaults/main.yml.

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - role: ansible-role-pmm-client
      pmm_client_server_insecure_tls: true
      pmm_client_services:
        - type: mysql
          name: "service-mysql"
          flags: "--username=root --password=root"
        - type: mongodb
          name: "service-mongodb"
          flags: "--port=27017"

Testing

Debian

molecule --base-config molecule/shared/base.yml test --scenario-name debian-11
molecule --base-config molecule/shared/base.yml test --scenario-name debian-12

Ubuntu

molecule --base-config molecule/shared/base.yml test --scenario-name ubuntu-2204

License

MIT

Author Information

@boutetnico