Skip to content

Commit

Permalink
tee -a /var/log/cron.log for prod/staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Truong committed May 19, 2020
1 parent 8cf3304 commit e0cba4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cert/activate.sls
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ run vault_pki:

checkgen_cert:
cron.present:
{% if 'prod' in grains['fqdn'] or 'staging' in grains['fqdn'] %}
- name: (/usr/local/bin/vault_pki list ; /usr/local/bin/vault_pki checkgen --timeout {{ vault_pki_timeout }}; /usr/local/bin/vault_pki list) 2>&1 | tee -a /var/log/cron.log | logger -t vault_pki
{% else %}
- name: (/usr/local/bin/vault_pki list ; /usr/local/bin/vault_pki checkgen --timeout {{ vault_pki_timeout }}; /usr/local/bin/vault_pki list) 2>&1 | logger -t vault_pki
{% endif %}
- identifier: checkgen_cert
- user: root
- hour: random
Expand Down

0 comments on commit e0cba4a

Please sign in to comment.