gravyboat / demo-spm-2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

demo-app-1

Note

Please note that several states include other states which are NOT part of this repository. I have left them available as examples that you can easily fill in, and some which you can omit. In addition this repository is a companion to demo-app-2.

Setup with Vagrant

Download and install VirtualBox and Vagrant. If you have old versions of either, you may need to upgrade to a newer version.

Installing Virtualbox

Download the .dmg from here: https://www.virtualbox.org/wiki/Downloads

Follow the instructions here: https://www.virtualbox.org/manual/ch02.html#idp52694656

Installing Vagrant

https://docs.vagrantup.com/v2/installation/index.html

Preparing the repo

git clone https://github.com/gravyboat/demo-app-1.git
cd demo-app-1

Bringing up the VM

vagrant up

If this fails, you may need to visit the config.vm.box_url specified in the Vagrantfile to download the image. Once downloaded, move the image to a directory like ~/VM_boxes/, and add the image to vagrant:

vagrant box add <path-to-image> --name centos-min

Connecting to the system

vagrant ssh
cd /home/vagrant/demo-app-1

At this point Nginx should be up and running and available at http://192.168.44.3. If you have not brought up demo-app-2 then you will receive a 502 Bad Gateway error.

Available states

demo-app-1

Includes several other states which install and configure Nginx and other requirements.

demo-app-1.nginx

Configures the demo-app-1 Nginx setup.

About

License:MIT License


Languages

Language:SaltStack 100.0%