mkdir -p /tmp/apidoc
chown foreman:foreman /tmp/apidoc
foreman-rake apipie:static_swagger_json OUT=/tmp/apidoc
results in:
[root@sat]# ll /tmp/apidoc
total 27712
mkdir -p /tmp/apidoc
chown foreman:foreman /tmp/apidoc
foreman-rake apipie:static_swagger_json OUT=/tmp/apidoc
results in:
[root@sat]# ll /tmp/apidoc
total 27712
#!/bin/bash | |
fqdn=ilo.example.com | |
username=Administrator | |
password=Password | |
#Check if the certificate is expiring soon | |
echo | openssl s_client -servername $fqdn -connect $fqdn:443 2>/dev/null | openssl x509 -noout -checkend 2592000 | |
if [ "$?" == "1" ]; then | |
#Expiring in less than one month. We need to renew |