docker-cadvisor
docker-cadvisor
Ansible role to manage and run the cadvisor docker container.
Requirements
This role has only been tested on Ubuntu 14.04. Since this uses Ansible's
docker module, you will need to ensure that a recent-ish version of docker-py
and docker
are installed.
ansible>=2.0.0.0,<=2.1.0.0
Examples
Install this module from Ansible Galaxy into the './roles' directory:
ansible-galaxy install wangsha.docker-cadvisor -p ./roles
Use it in a playbook as follows, assuming you already have docker setup:
- hosts: 'servers'
roles:
- role: angstwad.docker_ubuntu
become: true
- role: wangsha.docker-influxdb
- role: wangsha.docker-cadvisor
become: true
docker_cadvisor_links:
- "influxdb:influxdb"
docker_cadvisor_command: "-storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=influxdb:8086"
Have a look at the defaults/main.yml for role variables that can be overridden.
If you need a playbook to set Docker itself, have a look at angstwad.docker_ubuntu Galaxy role.
License
Author Information
- wangsha
Install
ansible-galaxy install wangsha/docker-cadvisor
License
mit
Downloads
4760
Owner