Ansible Deployment Scripts for Django
Ansible 2.0.0.2
Miniconda (Good to have)
Both of this can be installed by using the installer script. pre_install.sh
RedHat
Ubuntu
Running ansible script
maintain_source(-e "maintain_source=False")
export ECLAIM_BRANCH=${SHIPPABLE_ECLAIM_BRANCH:-staging} && export DEPLOYMENT_URL=git@bitbucket.org:eclaim_revamp_team/eclaim_revamp.git && ansible-playbook -i django_app_server_db_server/deployment/hosts django_app_server_db_server/deployment/main.yml --ask-pass -c paramiko -e 'db_server_ip=localhost'
maintain_source(-e "maintain_source=True")
export ECLAIM_BRANCH=${SHIPPABLE_ECLAIM_BRANCH:-staging} && export DEPLOYMENT_URL=git@bitbucket.org:eclaim_revamp_team/eclaim_revamp.git && ansible-playbook -e 'django_app_home=/opt/eclaim_revamp/eclaim app_version=eclaim_revamp db_server_ip=localhost' -i django_app_server_db_server/deployment/hosts django_app_server_db_server/deployment/main.yml **-e "maintain_source=True"** --ask-pass -c paramiko
app_version= eclaim_revamp/eclaim
db_server= localhost/dbserver_ip address
maintain_source=True/False
app_version
= What version of eclaims to install new / old
db_server
= ip address of the db server. Useful when installing in app server / db server setup
maintain_source
= used mainly for debugging. It short cuts the deletion of the eclaims source so that do not have to spend time
re-checking out source code (Takes long time)
email_host
= email host
email_host_user
= Client email host user
email_host_pass
= Client email host password
server_email
= Client server mail
email_port
= Client server mail port number
to override default email notification settings
roles:
- {role: app_server,
email_host: smtp.google.com,
email_host_user: test,
email_host_pass: test,
server_email: test@test.com ,
email_port: 5678 }