Skip to content

Commit

Permalink
kingfisher-collect(incremental): Set ignore_version for DR and create…
Browse files Browse the repository at this point in the history
… scratchdir directory
  • Loading branch information
jpmckinney committed May 1, 2024
1 parent dc17eb2 commit 5ad645e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pillar/kingfisher_main.sls
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ python_apps:
spider: dominican_republic_api
start_date: '2023-07-13'
day: '1,15'
options: -a compile_releases=true
options: -a compile_releases=true -a ignore_version=true
powerbi: True
source_hash: 55f439386b8446067257a342d86254953c643fd569fee41a1b63a3b49d4aee6d
- identifier: ECUADOR
Expand Down
10 changes: 9 additions & 1 deletion salt/kingfisher/collect/incremental.sls
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ include:
{% set directory = userdir + '/' + entry.git.target %}
{% set sqldir = userdir + '/bi/sql' %}
{% set settingsdir = userdir + '/bi/settings' %}
{% set scratchdir = userdir + '/bi/scratch' %}
{{ create_user(entry.user, authorized_keys=salt['pillar.get']('ssh:incremental', [])) }}
Expand Down Expand Up @@ -59,6 +60,13 @@ cardinal:
- runas: {{ entry.user }}
- unless: 'test "$(ocdscardinal --version)" = "ocdscardinal {{ pillar.cardinal.version }}"'
{{ scratchdir }}:
file.directory:
- user: {{ entry.user }}
- group: {{ entry.user }}
- require:
- user: {{ entry.user }}_user_exists
{{ userdir }}/bin/manage.py:
file.managed:
- source: https://raw.githubusercontent.com/open-contracting/cardinal-rs/main/manage.py
Expand Down Expand Up @@ -144,7 +152,7 @@ run {{ sqldir }}/excluded_supplier.sql:
crawl: {{ crawl }}
# Power BI
settingsdir: {{ settingsdir }}
scratchdir: {{ userdir }}/bi/scratch
scratchdir: {{ scratchdir }}
- makedirs: True
- mode: 755
- require:
Expand Down

0 comments on commit 5ad645e

Please sign in to comment.