From 8ea0f387d14aefe7231008576d348de3758e15b7 Mon Sep 17 00:00:00 2001 From: mag Date: Mon, 1 Dec 2025 11:49:57 +0100 Subject: [PATCH] Upload files to "meta" --- meta/argument_specs.yml | 201 ++++++++++++++++++++++++++++++++++++++++ meta/main.yml | 63 +++++++++++++ 2 files changed, 264 insertions(+) create mode 100644 meta/argument_specs.yml create mode 100644 meta/main.yml diff --git a/meta/argument_specs.yml b/meta/argument_specs.yml new file mode 100644 index 0000000..c88fbb9 --- /dev/null +++ b/meta/argument_specs.yml @@ -0,0 +1,201 @@ +argument_specs: + + main: + short_description: Install Checkmk agents + description: + - This role installs Checkmk agents. + author: + - Robin Gierse + + options: + + checkmk_agent_version: + type: "str" + default: "2.3.0p26" + description: + - Refer to the README for details. + + checkmk_agent_edition: + type: "str" + default: "cre" + description: + - Refer to the README for details. + + checkmk_agent_server: + type: "str" + required: true + description: + - Refer to the README for details. + + checkmk_agent_server_protocol: + type: "str" + default: "http" + description: + - Refer to the README for details. + + checkmk_agent_site: + type: "str" + required: true + description: + - Refer to the README for details. + + checkmk_agent_registration_server_protocol: + type: "str" + default: "http" + description: + - Refer to the README for details. + + checkmk_agent_registration_server: + type: "str" + default: "localhost" + description: + - Refer to the README for details. + + checkmk_agent_registration_site: + type: "str" + default: "mysite" + description: + - Refer to the README for details. + + checkmk_agent_server_validate_certs: + type: "bool" + default: true + description: + - Refer to the README for details. + + checkmk_agent_server_port: + type: "str" + default: "{% if checkmk_agent_server_protocol == 'https' %}443{% else %}80{% endif %}" + description: + - Refer to the README for details. + + checkmk_agent_user: + type: "str" + default: "automation" + description: + - Refer to the README for details. + + checkmk_agent_port: + type: "int" + default: 6556 + description: + - Refer to the README for details. + + checkmk_agent_pass: + type: "str" + description: + - Refer to the README for details. This is mutually exclusive with 'checkmk_agent_secret'. + + checkmk_agent_secret: + type: "str" + description: + - Refer to the README for details. This is mutually exclusive with 'checkmk_agent_pass'. + + checkmk_agent_auto_activate: + type: "bool" + default: false + description: + - Refer to the README for details. + + checkmk_agent_add_host: + type: "bool" + default: false + description: + - Refer to the README for details. + + checkmk_agent_discover: + type: "bool" + default: false + description: + - Refer to the README for details. + + checkmk_agent_discover_max_parallel_tasks: + type: "int" + default: 0 + description: + - Refer to the README for details. + + checkmk_agent_force_foreign_changes: + type: "bool" + default: false + description: + - Refer to the README for details. + + checkmk_agent_update: + type: "bool" + default: false + description: + - Refer to the README for details. + + checkmk_agent_tls: + type: "bool" + default: false + description: + - Refer to the README for details. + + checkmk_agent_configure_firewall: + type: "bool" + default: true + description: + - Refer to the README for details. + + checkmk_agent_configure_firewall_zone: + type: "str" + default: "public" + description: + - Refer to the README for details. + + checkmk_agent_force_install: + type: "bool" + default: false + description: + - Refer to the README for details. + + checkmk_agent_prep_legacy: + type: "bool" + default: false + description: + - Refer to the README for details. + + checkmk_agent_delegate_api_calls: + type: "str" + default: "localhost" + description: + - Refer to the README for details. + + checkmk_agent_delegate_download: + type: "str" + default: "{{ inventory_hostname }}" + description: + - Refer to the README for details. + + checkmk_agent_host_name: + type: "str" + default: "{{ inventory_hostname }}" + description: + - Refer to the README for details. + + checkmk_agent_folder: + type: "str" + default: "{{ checkmk_var_folder_path | default('/') }}" + description: + - Refer to the README for details. + + checkmk_agent_host_attributes: + type: "dict" + default: + ipaddress: "{{ checkmk_agent_host_ip | default(omit) }}" + description: + - Refer to the README for details. + + checkmk_agent_mode: + type: "str" + default: "pull" + description: + - Refer to the README for details. + + checkmk_agent_no_log: + type: "bool" + default: true + description: + - Refer to the README for details. diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..599b003 --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,63 @@ +--- +galaxy_info: + role_name: agent + + author: Robin Gierse + company: Checkmk GmbH + description: This role installs Checkmk agents. + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: GPL-2.0-or-later + + min_ansible_version: "2.4" + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + platforms: + - name: Debian + versions: + - all + - name: Ubuntu + versions: + - all + - name: EL + versions: + - all + - name: opensuse + versions: + - all + - name: SLES + versions: + - all + - name: Windows + versions: + - all + + galaxy_tags: [checkmk, monitoring, agent] + # List tags for your role here, one per line. A tag is a keyword that describes + # and categorizes the role. Users find roles by searching for tags. Be sure to + # remove the '[]' above, if you add tags to this list. + # + # NOTE: A tag is limited to a single word comprised of alphanumeric characters. + # Maximum 20 tags per role. + +dependencies: [] +# List your role dependencies here, one per line. Be sure to remove the '[]' above, +# if you add dependencies to this list.