Coder Social home page Coder Social logo

ansible-tower's Introduction

ansible-tower

Ansible Tower dockerized

Ansible Tower (AT) is a GUI for great Ansible tool, that provides powerful remote agentless hosts management via SSH. Ansible Tower is free for case <=10 nodes, but complex to install and support restricted OS list.

To help users get try AT with Docker benefits, I've create Docker image that potentially run on any mashine with Docker installed. This version install only local variant - all services(Redis, MongoDB, PostreSQL) inside container.

Prepereqisites:

  • Docker 1.8 and later (older version may work but untested)

To run Ansible Tower there is two ways: Create container without external data mounts so if you remove container, all Postgres data that used by AT is lost:

# docker run -t -d -p 443:443 -p 8080:8080 -v ~/certs:/certs -e SERVER_NAME=localhost --name=ast ybalt/ansible-tower

OR Create separate data-only container, it will save your DB data even if ast container removed(upgrade, etc):

# docker create -v /var/lib/postgresql/9.4/main --name astdata ybalt/ansible-tower /bin/true
# docker run -t -d --volumes-from astdata -v ~/certs:/certs -e SERVER_NAME=localhost -p 443:443 --name=ast ybalt/ansible-tower

NOTE: if you have an issue with 3.10- kernel like proot error: ptrace(TRACEME): Operation not permitted proot error: execve("/usr/bin/ansible-playbook"): Operation not permitted try to add --privileged flag to docker run. Use it with cautions as it provide extended access to host devices and may be dangerous

You may use mapping for /certs as above, to add certificate and license file. Startup script will copy files with this filenames to /etc/tower:

/certs/domain.crt - copied to /etc/tower/tower.cert
/certs/domain.key - copied to /etc/tower/tower.key
/certs/license    - copied to /etc/tower/license

change SERVER_NAME env to your mashine ip/name for make HTTPS works (certificate should be valid for this name)

Initial credentials: user:admin pass:000 All passwords for all other services is '000'

Limitations: Only local DBs supported

Please keep in mind, if you remove ast container, some data may be lost even if you use data-only container, as in Postgres AT store only projects/tasks/results.

If you find any bugs/issues or need some new features, feel free to make a pull request.

Trademarks: Ansible and Ansible Tower are trademarks of Ansible, Inc. Docker is a registered trademark of Docker, Inc.

ansible-tower's People

Contributors

arnabsinha4u avatar ybalt 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.