Coder Social home page Coder Social logo

aiminickwong / ansible-docker-swarm-tls Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wadeschulz/ansible-docker-swarm-tls

0.0 1.0 0.0 25 KB

Ansible Playbooks to Deploy Docker Swarm with TLS (including certificate creation)

License: MIT License

ansible-docker-swarm-tls's Introduction

ansible-docker-swarm-tls Readme

Ansible Playbooks to Deploy Docker Swarm with TLS (including certificate creation)

Configuration Settings

There are a few settings that can be configured in site.yml:

  • Certificate metadata
  • discovery_fqdn: defaults to consul discovery service, can be commented out and replaced with existing service (ie zookeeper)
  • docker_conf: filename for docker configuration template in docker/templates directory. Defaults to standard settings with discovery info
    • An additional config file, docker.devicemapper.conf.j2, is also present that uses the devicemapper storage opt with a default thinpool path of docker-thinpool

Deploy New Swarm

'''Currently runs only on CentOS'''

Specify the server you would like to use to generate certificates in the [ca] group. These will be downloaded to the Ansible hosts in a playbook subdirectory named client-certs that will be created at runtime. Variables for CSRs are located in site.yml under the cert role (admin email, organization name, and organizational unit). Additional certificate parameters can be added to the openssl.cnf.j2 file in the cert templates directory.

The current playbook setup will use FQDNs for the Swarm consul, managers, and nodes. If your servers do not have a resolvable FQDN, the playbook can be updated to use host IPv4 by editing the references in the swarm-discovery and swarm-nodes tasks.

cd newswarm-playbook
ansible-playbook -i hosts -k site.yml

Deploy New Nodes

To deploy additional nodes, make sure that the CA's private and public key are in the client-certs subdirectory of the playbook.

cd addnode-playbook
ansible-playbook -i newnodes -k site.yml

ansible-docker-swarm-tls's People

Contributors

wadeschulz avatar

Watchers

 avatar

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.