This is an automated email from the ASF dual-hosted git repository. omartushevskyi pushed a commit to branch DLAB-1158 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-1158 by this push: new 77e9f3c fixed issue with scripts 77e9f3c is described below commit 77e9f3cee96d36fdfa7f49b8983b675ba4e6d913 Author: Oleh Martushevskyi <oleh_martushevs...@epam.com> AuthorDate: Fri Jan 17 17:39:29 2020 +0200 fixed issue with scripts --- infrastructure-provisioning/src/general/lib/os/debian/edge_lib.py | 2 +- infrastructure-provisioning/src/general/lib/os/redhat/edge_lib.py | 2 +- infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py | 2 +- infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure-provisioning/src/general/lib/os/debian/edge_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/edge_lib.py index 139c462..6b89030 100644 --- a/infrastructure-provisioning/src/general/lib/os/debian/edge_lib.py +++ b/infrastructure-provisioning/src/general/lib/os/debian/edge_lib.py @@ -99,7 +99,7 @@ def install_nginx_lua(edge_ip, nginx_version, keycloak_auth_server_url, keycloak os.environ['conf_stepcerts_kid'])) sudo('sed -i "s|STEP_PROVISIONER_PASSWORD_PATH|/home/{0}/keys/provisioner_password|g" ' '/usr/local/bin/manage_step_certs.sh'.format(user)) - sudo('bash -c \'echo "0 */3 * * * root /usr/local/bin/manage_step_certs.sh >> ' + sudo('bash -c \'echo "0 * * * * root /usr/local/bin/manage_step_certs.sh >> ' '/var/log/renew_certificates.log 2>&1" >> /etc/crontab \'') put('/root/templates/step-cert-manager.service', '/etc/systemd/system/step-cert-manager.service', use_sudo=True) diff --git a/infrastructure-provisioning/src/general/lib/os/redhat/edge_lib.py b/infrastructure-provisioning/src/general/lib/os/redhat/edge_lib.py index 831b13b..92a04b5 100644 --- a/infrastructure-provisioning/src/general/lib/os/redhat/edge_lib.py +++ b/infrastructure-provisioning/src/general/lib/os/redhat/edge_lib.py @@ -104,7 +104,7 @@ def install_nginx_ldap(edge_ip, nginx_version, ldap_ip, ldap_dn, ldap_ou, ldap_s os.environ['conf_stepcerts_kid'])) sudo('sed -i "s|STEP_PROVISIONER_PASSWORD_PATH|/home/{0}/keys/provisioner_password|g" ' '/usr/local/bin/manage_step_certs.sh'.format(user)) - sudo('bash -c \'echo "0 */3 * * * root /usr/local/bin/manage_step_certs.sh >> ' + sudo('bash -c \'echo "0 * * * * root /usr/local/bin/manage_step_certs.sh >> ' '/var/log/renew_certificates.log 2>&1" >> /etc/crontab \'') put('/root/templates/step-cert-manager.service', '/etc/systemd/system/step-cert-manager.service', use_sudo=True) diff --git a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py index d7431be..77c65d5 100644 --- a/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py +++ b/infrastructure-provisioning/src/ssn/scripts/configure_ssn_node.py @@ -173,7 +173,7 @@ def configure_ssl_certs(hostname, custom_ssl_cert): os.environ['conf_stepcerts_kid'])) sudo('sed -i "s|STEP_PROVISIONER_PASSWORD_PATH|/home/{0}/keys/provisioner_password|g" ' '/usr/local/bin/manage_step_certs.sh'.format(args.os_user)) - sudo('bash -c \'echo "0 */3 * * * root /usr/local/bin/manage_step_certs.sh >> ' + sudo('bash -c \'echo "0 * * * * root /usr/local/bin/manage_step_certs.sh >> ' '/var/log/renew_certificates.log 2>&1" >> /etc/crontab \'') put('/root/templates/step-cert-manager.service', '/etc/systemd/system/step-cert-manager.service', use_sudo=True) diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py index db79b55..efb343c 100644 --- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py +++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py @@ -163,7 +163,7 @@ def ensure_step_certs(): conn.sudo('sed -i "s|KID|{0}|g" /usr/local/bin/manage_step_certs.sh'.format(args.step_kid)) conn.sudo('sed -i "s|STEP_PROVISIONER_PASSWORD_PATH|/home/{0}/keys/provisioner_password|g" ' '/usr/local/bin/manage_step_certs.sh'.format(args.os_user)) - conn.sudo('bash -c \'echo "0 */3 * * * root /usr/local/bin/manage_step_certs.sh >> ' + conn.sudo('bash -c \'echo "0 * * * * root /usr/local/bin/manage_step_certs.sh >> ' '/var/log/renew_certificates.log 2>&1" >> /etc/crontab \'') conn.put('./step-cert-manager.service', '/tmp/step-cert-manager.service') conn.sudo('mv /tmp/step-cert-manager.service /etc/systemd/system/step-cert-manager.service') --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@dlab.apache.org For additional commands, e-mail: commits-h...@dlab.apache.org