dont need the unless for ssl since using x509v2 now

This commit is contained in:
m0duspwnens
2023-06-28 15:02:09 -04:00
parent 120d21c0da
commit eeaf077baf

View File

@@ -64,10 +64,6 @@ managerssl_crt:
- days_remaining: 0
- days_valid: 820
- backup: True
- unless:
# https://github.com/saltstack/salt/issues/52167
# Will trigger 5 days (432000 sec) from cert expiration
- 'enddate=$(date -d "$(openssl x509 -in /etc/pki/managerssl.crt -enddate -noout | cut -d= -f2)" +%s) ; now=$(date +%s) ; expire_date=$(( now + 432000)); [ $enddate -gt $expire_date ]'
- timeout: 30
- retry:
attempts: 5