Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push geonode #311

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add credential setting for geonode.
  • Loading branch information
ismailsunni committed Jul 17, 2018
commit 9718dfe5d3dfa177f741cef3b2bf05656761cd37
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -118,6 +118,7 @@ sftp_pg_credential.env
sftp_media_credential-dev.env
sftp_pg_credential-dev.env
inaware_credential.env
geonode_credential.env

# apt-cacher-ng
71-apt-cacher-ng
8 changes: 8 additions & 0 deletions deployment/ansible/development/group_vars/all.sample.yml
Original file line number Diff line number Diff line change
@@ -118,6 +118,14 @@ inaware:
user: inawareuser
password: thepassword

# This is used to push hazard layer to GeoNode.
# Set this fact to your appropriate credentials. If not used,
# leave as blank
geonode:
host: http://138.201.158.66
user: test_geonode_user
password: test_geonode_password

# This declaration is used to describe port forwarding that is being used
# by docker-compose. Leave it as default.
docker_port_forward:
8 changes: 8 additions & 0 deletions deployment/ansible/development/group_vars/all.travis.yml
Original file line number Diff line number Diff line change
@@ -118,6 +118,14 @@ inaware:
user:
password:

# This is used to push hazard layer to GeoNode.
# Set this fact to your appropriate credentials. If not used,
# leave as blank
geonode:
host:
user:
password:

# This declaration is used to describe port forwarding that is being used
# by docker-compose. Leave it as default.
docker_port_forward:
Original file line number Diff line number Diff line change
@@ -26,3 +26,11 @@
owner: '{{ remote_user }}'
group: '{{ remote_group }}'
mode: "u=rw,g=rw,o=r"

- name: customize geonode credentials
template:
src: geonode_credential.env.j2
dest: '{{ project_path }}/deployment/geonode_credential.env'
owner: '{{ remote_user }}'
group: '{{ remote_group }}'
mode: "u=rw,g=rw,o=r"
Original file line number Diff line number Diff line change
@@ -331,6 +331,8 @@ services:
- INASAFE_WORK_DIR={{ inasafe_headless.working_dir }}
- INASAFE_OUTPUT_DIR={{ inasafe_headless.working_dir }}/outputs
- QGIS_DEBUG=0
env_file:
- geonode_credential.env
network_mode: "bridge"

{% endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# copy this template as sftp_credential.env for production mode credential
# and as sftp_credential-dev.env for development mode credential
REALTIME_GEONODE_URL={{ geonode.host }}
REALTIME_GEONODE_USER={{ geonode.user }}
REALTIME_GEONODE_PASSWORD={{ geonode.password }}