From fc205127b772153ffd995981bfc1521f77a92cce Mon Sep 17 00:00:00 2001 From: Ryan Kraus Date: Sun, 24 May 2020 23:34:01 -0400 Subject: [PATCH] Added verbosity to a failed install because of cert age. This addresses issue #23 --- app/create_cluster.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/app/create_cluster.yml b/app/create_cluster.yml index 1c5751c..794c42a 100755 --- a/app/create_cluster.yml +++ b/app/create_cluster.yml @@ -19,14 +19,20 @@ changed_when: cluster_cert_age.stdout | int > 86400 - name: ensure certificates are not expired - assert: - that: - - cluster_cert_age is not changed - fail_msg: > - The cluster bootstrap certificate has expired. - Please re-create the installation repositories. - success_msg: Cluster certificates are valid. - quiet: yes + set_stats: + data: + post_message: + - "The cluster bootstrap certificate has expired. Please re-create the installation repositories to regenerate that installation configuration." + - "" + - "Recreate the install configs with:" + - ">> farosctl create install-repos" + - "" + when: cluster_cert_age is changed + + - name: ensure certificates are not expired + fail: + msg: The installation certificate has expired. + when: cluster_cert_age is changed - name: Ensure all cluster nodes are powered down hosts: cluster