wangsha.docker-cadvisor

docker-cadvisor

Build Status Ansible Galaxy

This is an Ansible role that helps you manage and run the cAdvisor Docker container.

Requirements

This role has been tested only on Ubuntu 14.04. You need to have up-to-date versions of docker-py and docker installed because it uses Ansible's Docker module.

You need Ansible version >=2.0.0.0 and <=2.1.0.0.

Examples

To install this module from Ansible Galaxy into the './roles' directory, run:

ansible-galaxy install wangsha.docker-cadvisor -p ./roles

To use it in a playbook, you can do it like this, assuming Docker is already set up:

- 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"

Check the defaults/main.yml file for role variables that you can change.

If you need a playbook to set up Docker, check out angstwad.docker_ubuntu on Galaxy.

License

MIT

Author Information

  • wangsha
Informazioni sul progetto

Ansible role to install docker cadvisor container

Installa
ansible-galaxy install wangsha.docker-cadvisor
Licenza
mit
Download
4.8k
Proprietario