kayobe/ansible/roles/cadvisor
Mark Goddard 4038c8226b Change reserved keyword 'action' to 'kayobe_action'
For several roles (cadvisor, inspection-store, docker-registry, etc.),
we use an 'action' variable, in a similar manner to kolla-ansible,
to determine the current action being performed (deploy,
reconfigure, upgrade). It is likely this information will be
useful for custom playbooks, so we should expose it. The 'action'
keyword is reserved, and its use triggers a warning, so we change its
name to kayobe_action before advertising it to users.

Change-Id: I5ffbb8b014a31e27141bfc8bf780297d81c840be
Story: 2001663
Task: 12604
2018-05-21 16:00:57 +01:00
..
defaults Change reserved keyword 'action' to 'kayobe_action' 2018-05-21 16:00:57 +01:00
tasks Change reserved keyword 'action' to 'kayobe_action' 2018-05-21 16:00:57 +01: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