kayobe/ansible/roles/cadvisor
John Garbutt 4d533b07ff Fix undefined variable in cadvisor role
When running latest kayobe on alaska, needed to ensure the correct
monitoring configuration was applied, I hit undefined variables,
hitting errors such as:

  The task includes an option with an undefined variable.
  The error was: 'nodeexporter_restart_policy' is undefined

On inspecting the role, it seems some cut and paste errors from the
nodeexporter role have snook in. The command is not required for the
docker_container directive, its not specified in the defaults.

Interestingly this triggered when I was just trying to redeploy haproxy.
2018-01-29 11:46:55 +00:00
..
defaults Added missing files per PR review. 2018-01-23 13:05:58 +00:00
tasks Fix undefined variable in cadvisor role 2018-01-29 11:46:55 +00:00
README.md roles/cadvisor: Added. 2018-01-23 12:25:20 +00:00

cAdvisor

This role can be used to configure cAdvisor running in a Docker container.

Requirements

The host executing the role has the following requirements:

  • Docker engine
  • Python docker >= 2.0.0

Role Variables

cadvisor_enabled: Whether the cAdvisor is enabled. Defaults to false. cadvisor_namespace: Docker image namespace. Defaults to cadvisor. cadvisor_image: Docker image name. cadvisor_tag: Docker image tag. Defaults to v0.28.3. cadvisor_image_full: Full docker image specification. cadvisor_restart_policy: Docker restart policy for cAdvisor container. Defaults to unless-stopped. cadvisor_restart_retries: Number of Docker restarts. Defaults to 10.

Dependencies

None

Example Playbook

The following playbook configures cAdvisor.

---
- hosts: cadvisor
  roles:
    - role: cadvisor

Author Information