owebretthauer / ansible-multi-environment-provisioning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible Multi-Environment Provisioning

Provision all Environments the same way, from a single ansible playbook source.

Dependencies

Build Demo-Application

./mvnw clean package

Provisioning Docker Container

cd .packer

# Docker Base-Image
packer build base-image.js

# Docker Tomcat-Image
packer build tomcat-image.js

# Docker DemoApp-Image
packer build deploy-application.js

Provisioning Vagrant Images

# first vagrant up that creates the environment, provisioning is run
vagrant up

# when provision on a running environment
vagrant provisioning

Provisioning Bare-Metal

cd provisioning
ansible-playbook full-image.yml -i profiles/profileA/hosts

About


Languages

Language:Shell 47.4%Language:Batchfile 33.1%Language:JavaScript 19.2%Language:Java 0.4%