We'll start by creating the VMs, provisioning the
prod node, and bringing up Jenkins, our deployment tool of choice.
vagrant up cd prod vagrant ssh cd ansible-playbook /vagrant/ansible/prod2.yml \ -i /vagrant/ansible/hosts/prod ansible-playbook /vagrant/ansible/jenkins-node.yml \ -i /vagrant/ansible/hosts/prod ansible-playbook /vagrant/ansible/jenkins.yml \ -c local
Since it will take a couple of minutes until everything is set, let us discuss what should be automated and how. We are already familiar with the Jenkins Workflow. It served us well, so there is no real reason to change the tool at this time. We'll use it to automate the blue-green deployment procedure. The flow will have ...