Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

Commit

Permalink
Added verbosity to a failed install because of cert age.
Browse files Browse the repository at this point in the history
This addresses issue #23
  • Loading branch information
rmkraus committed May 25, 2020
1 parent e063805 commit fc20512
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions app/create_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc20512

Please sign in to comment.