Last active
February 2, 2017 23:28
-
-
Save towens/4d0abd6de75d9c47666c6b14c062dd19 to your computer and use it in GitHub Desktop.
Revisions
-
towens revised this gist
Feb 2, 2017 . 1 changed file with 10 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,19 @@ cronscript: file.managed: - name: /var/lib/airflow/cronfile.sh - source: salt://dag_sync/cronfile.sh.j2 - template: jinja - group: airflow - user: airflow - mode: 700 - require: - user: airflow - group: airflow /var/lib/airflow/cronfile.sh: cron.present: - identifier: dagcron - user: airflow - minute: '*/1' - require: - file: cronscript -
towens revised this gist
Feb 2, 2017 . 1 changed file with 0 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,12 +4,6 @@ cronscript: - name: /var/lib/airflow/cronfile.sh - source: salt://dag_sync/cronfile.sh.j2 - template: jinja # updates when state applied /var/lib/airflow/cronfile.sh: -
towens created this gist
Feb 2, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ # does not update file when state applied cronscript: file.managed: - name: /var/lib/airflow/cronfile.sh - source: salt://dag_sync/cronfile.sh.j2 - template: jinja - user: airflow - group: airflow - mode: 0744 - require: - user: airflow - group: airflow # updates when state applied /var/lib/airflow/cronfile.sh: file.managed: - source: salt://dag_sync/cronfile.sh.j2 - template: jinja - user: airflow - group: airflow - mode: 0744 - require: - user: airflow - group: airflow