Skip to content

Latest commit

 

History

History

deployment

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Testing deployment scripts

Before doing real deployment you may want to try to deploy to a sandbox, instructions bellow helps you to do that.

Install vagrant, virtualbox and ansible:

sudo apt install vagrant virtualbox python-pip
sudo pip install 'ansible>=1.6'

For the vagrant, you will probably need to download it from vagrant.com, because at least 1.6 version is required.

Prepare virtual machine for testing deployment:

vagrant up
ssh-copy-id vagrant@10.0.0.42

You already had your ssh key, didn't you?

And try to deploy:

ansible-playbook -u vagrant -i 10.0.0.42, deploy.yml

Be patient, this last command may take long time to finish, up to 10 minutes.

Next thing to test is import script:

ansible-playbook -u vagrant -i 10.0.0.42, import-data.yml

If everything went well you should see working web page by visiting http://localhost:8080/ .