diff options
author | Michael Gugino <mgugino@redhat.com> | 2017-09-11 09:46:25 -0400 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2017-09-11 09:48:23 -0400 |
commit | b626e982bdb87bffd3f05fcbfc05e40abadd84e2 (patch) | |
tree | c25a0755005dae152a65f4d95e27342303464ef0 /playbooks/common | |
parent | 69f03840248a0adadb38b73d9155393af9b069fb (diff) | |
download | openshift-b626e982bdb87bffd3f05fcbfc05e40abadd84e2.tar.gz openshift-b626e982bdb87bffd3f05fcbfc05e40abadd84e2.tar.bz2 openshift-b626e982bdb87bffd3f05fcbfc05e40abadd84e2.tar.xz openshift-b626e982bdb87bffd3f05fcbfc05e40abadd84e2.zip |
Add openshift_public_hostname length check
Currently, the variable openshift_hostname is checked to ensure it
is less than 63 characters.
The variable openshift_public_hostname should also be checked for
this length.
This commit checks the length of openshift_public_hostname to ensure
it is 63 characters or less.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1467790
Diffstat (limited to 'playbooks/common')
-rw-r--r-- | playbooks/common/openshift-cluster/sanity_checks.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/sanity_checks.yml b/playbooks/common/openshift-cluster/sanity_checks.yml index 7e28a11e8..26716a92d 100644 --- a/playbooks/common/openshift-cluster/sanity_checks.yml +++ b/playbooks/common/openshift-cluster/sanity_checks.yml @@ -45,3 +45,7 @@ - fail: msg: openshift_hostname must be 63 characters or less when: openshift_hostname is defined and openshift_hostname | length > 63 + + - fail: + msg: openshift_public_hostname must be 63 characters or less + when: openshift_public_hostname is defined and openshift_public_hostname | length > 63 |