Skip to content

Commit

Permalink
WAC-42 Default to datapusher not being used (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansberry authored May 14, 2024
1 parent c8a690c commit 12f090b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions group_vars/all/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ ckan_db_image: "ckan/postgresql"
# ```python -c 'import secrets; print(secrets.token_urlsafe(20)[:25])'```
# ckan_beaker_secret: "IYe9lQOkeogHJrB8PWU17fK4_"
# ckan_api_secret: "cuu4ohph2PohDei3ae2xahJ3pohwoofonoar7eim9deem7au2ge1ieKej5Mai0Ea"
ckan_datapusher_enable: false
ckan_datapusher_url: "http://datapusher:8800"
ckan_datastore_read_url: "postgresql://datastore_ro:{{ ckan_ds_ro_pass }}@db/datastore"
ckan_datastore_write_url: "postgresql://ckan:{{ ckan_postgres_password }}@db/datastore"
Expand Down
3 changes: 2 additions & 1 deletion roles/ckan/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
login_host: "{{ ckan_fqdn }}"
login_user: "{{ rds_admin_username }}"
login_password: "{{ ckan_postgres_password }}"
when: fjelltopp_env_type == 'local'
when: (fjelltopp_env_type == 'local') and (ckan_datapusher_enable)
register: db_ping_result
retries: 10
delay: 5
Expand All @@ -106,6 +106,7 @@
become: false
with_items:
- ckandb_job.yaml
when: fjelltopp_env_type != 'local'

- name: Deploy CKAN
kubernetes.core.k8s:
Expand Down

0 comments on commit 12f090b

Please sign in to comment.