Use explicit docker-compose path in cronjobs
As docker-compose resides in /usr/local/bin, which is not in the default PATH for crontabs, use the full path to the executable. Change-Id: I26e4147c4d2e964ff1c91831cf326222b92147bf
This commit is contained in:
parent
45ea2cb5bb
commit
161f709c2d
@ -49,4 +49,4 @@
|
|||||||
hour: '{{ 23 | random(seed=inventory_hostname) }}'
|
hour: '{{ 23 | random(seed=inventory_hostname) }}'
|
||||||
# Note we backup to /var/log/nodepool because that is what we have bind
|
# Note we backup to /var/log/nodepool because that is what we have bind
|
||||||
# mounted in the container and we are operating relative to that context
|
# mounted in the container and we are operating relative to that context
|
||||||
job: docker-compose -f /etc/nodepool-builder-compose/docker-compose.yaml exec nodepool-builder nodepool export-image-data /var/log/nodepool/nodepool-image-backup.json
|
job: /usr/local/bin/docker-compose -f /etc/nodepool-builder-compose/docker-compose.yaml exec nodepool-builder nodepool export-image-data /var/log/nodepool/nodepool-image-backup.json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user