ansible_role_arpwatch

Ansible role arpwatch

Managing arpwatch.

Build Status

License

MIT / BSD

Author Information

Requirements

  • Ensure a package manager is available and configured with the correct package sources and repositories.
  • Ensure privileged permissions are set for the user executing this role to:
    • Install packages.
    • Manage arpwatch settings and configurations.

Dependencies

N/A

Compatibility

Compatible with the following list of operating systems:

  • CentOS 7
  • CentOS 8
  • RHEL 7.x
  • RHEL 8.x

Role Variables

Variable name Description
role_arpwatch_required_package_list A per distro package list.
role_arpwatch_required_packages Rendered list of distribution package list.
role_arpwatch_service_enabled Whether to have the service enabled.
role_arpwatch_config_file_path Absolute path to arpwatch confguration file.
role_arpwatch_config_params A list of parameters that will be rendered line by line in the configuration file.

Example Playbook

---
- name: Manage arpwatch
  become: True
  gather_facts: True
  tasks:
    - import_role:
        name: ansible_role_arpwatch
      vars:
        role_arpwatch_required_package_list:
          RedHat_7:
            - arpwatch
          RedHat_8:
            - arpwatch
        role_arpwatch_required_packages: '{{ role_arpwatch_required_package_list[ansible_distribution + "_" + ansible_distribution_major_version] | default(["arpwatch"]) }}'
        role_arpwatch_service_enabled: True
        role_arpwatch_config_file_path: /etc/sysconfig/arpwatch
        role_arpwatch_config_params:
          - 'OPTIONS="-u arpwatch -e -"'

...

Useful shell commands

N/A

Additional documentation resources

N/A

Testing with Molecule

This role is locally tested with the use of Molecule, the configuration is located at: molecule/default.
The Molecule tests are run (using the docker driver) on Dockerhub images built for this purpose:

CI/CD with Travis CI

This role uses Travis CI to run online tests with the use of Molecule and pushes notifications to import the role into Ansible Galaxy once the tests are successful. The Travis CI configuration is located at the root of the Ansible role .travis.yml

Install
ansible-galaxy install Caseraw/ansible_role_arpwatch
GitHub repository
License
Unknown
Downloads
19
Owner
DevOps | RHCA | Red Hat Accelerator