Code Monkey home page Code Monkey logo

ansible-role-portainer's Introduction

#ansible-role-portainer

Portainer - the coolest UI for Docker http://portainer.io/

This role installs Portainer using Docker container

Tasks in Role

  • Ensure docker-py is present using pip
  • Remove existing container [if remove_existing_container: true]
  • Remove persistent data [if remove_persistent_data: true]
  • Deploy Portainer container to host [define persistent_data_path]
  • Configure Admin user password
  • Generate authentication token
  • Define endpoints [DICT | list]
  • Configure Portainer settings [Jinja2 template]
  • Configure registry [Jinja2 template]

Requirements

  • curl
  • docker (Service + python package)

Role Vars

name description default
configure_settings override default portainer settings with template false
configure_registry configure a docker registry for Portainer to use false
remove_persistent_data remove the persistent data directory on the host false
remove_existing_container remove an existing container named 'portainer' false
persistent_data_path path that will be used to store persistent data /opt/portainer:/data
auth_method use LDAP or standalone [2 for ldap, 1 for standalone]
registry_type 1 (Quay.io), 2 (Azure container registry) or 3 (custom registry)
version portainer version to use at the time of commiting 'develop' is the version that supports LDAP
See main.yml under 'defaults' for a complete list

Running the role

ansible-playbook -i myinventory ./playbooks/deploy-portainer.yml

Playbook example

---

- hosts: myhosts
  become: true
  vars:
    pip_install_packages:
      - name: docker
  vars_files:
    - vars/portainer.yml
  roles:
   - geerlingguy.docker
   - geerlingguy.pip
   - portainer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.