deploy: entry for google maps api key

This commit is contained in:
James Graham
2020-12-16 15:35:00 +00:00
parent b2cd5f4940
commit 2998a7e3fb
4 changed files with 11 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ class Relationship(models.Model):
class Meta: class Meta:
constraints = [ constraints = [
models.UniqueConstraint(fields=['source', 'person'], models.UniqueConstraint(fields=['source', 'target'],
name='unique_relationship'), name='unique_relationship'),
] ]

4
roles/defaults/main.yml Normal file
View File

@@ -0,0 +1,4 @@
---
db_name: 'breccia'
db_user: 'breccia'
db_pass: 'breccia'

View File

@@ -14,6 +14,8 @@ venv_dir: '{{ project_dir }}/venv'
web_user: nginx web_user: nginx
web_group: nginx web_group: nginx
db_name: '{{ project_name }}' db_name: '{{ project_name }}'
db_user: 'breccia'
db_pass: 'breccia'
display_short_name: 'BRECcIA' display_short_name: 'BRECcIA'
display_long_name: 'BRECcIA Mapper' display_long_name: 'BRECcIA Mapper'

View File

@@ -23,3 +23,7 @@ DEFAULT_FROM_EMAIL={{ default_from_email }}
{% if email_port is defined %} {% if email_port is defined %}
EMAIL_PORT={{ email_port }} EMAIL_PORT={{ email_port }}
{% endif %} {% endif %}
{% if google_maps_api_key is defined %}
GOOGLE_MAPS_API_KEY={{ google_maps_api_key }}
{% endif %}