state-hiu / 2C-GeoNode

3 stars 9 forks source link

State_2c_Geonode

This repo contains the static and template files for the 2C GeoNode as well as the configuration files needed to install GeoNode using the ansible-geonode scripts.

Steps for Installing GeoNode on Amazon AWS

The playbook.yml file in this repo has the settings used when installing GeoNode using ansible-geonode.

On Amazon AWS:

On your local machine:

sudo apt-get update
sudo apt-get install software-properties-common -y
sudo apt-add-repository ppa:ansible/ansible -y
sudo apt-get update -y
sudo apt-get install ansible -y

Only tested with Ansible version 2.2.1.0, to find out which version of Ansible you have type ansible --version. To install version 2.2.1.0, intead of the previous commands, run the following:

sudo apt-get update
sudo apt-get install software-properties-common -y
sudo apt-get install python-pip
sudo pip install 'ansible==2.2.1.0'
[amazon2]
dev.secondarycities.geonode.state.gov

**if you are having permission problems connecting with ssh, use sudo before the ansible-playbook command

**if you are deploying on AWS and want to use a domain name from Route53 first create a new ec2 instance, then associate that instance to a static ip. Then in route53 create an A record with that elastic ip. Then within your /etc/ansible/hosts file and within the server_name of your playbook.yml file write in that domain name