2017-09-01 05:21:25 +03:00
# check_openshift.yml
---
2018-04-12 05:53:20 +03:00
- name : openshift_project should be defined
2017-09-01 05:21:25 +03:00
assert :
that :
2018-04-12 05:53:20 +03:00
- openshift_project is defined and openshift_project != ''
msg : "Set the value of 'openshift_project' in the inventory file."
2017-09-01 05:21:25 +03:00
2017-09-08 00:21:28 +03:00
- name : openshift_user should be defined
2017-09-01 05:21:25 +03:00
assert :
that :
- openshift_user is defined and openshift_user != ''
msg : "Set the value of 'openshift_user' in the inventory file."
2018-01-28 16:17:04 +03:00
- name : openshift_password or openshift_token should be defined
2017-09-01 05:21:25 +03:00
assert :
that :
2018-01-28 16:17:04 +03:00
- (openshift_password is defined and openshift_password != '') or
(openshift_token is defined and openshift_token != '')
msg : "Set the value of 'openshift_password' or 'openshift_token' in the inventory file."
2017-09-01 05:21:25 +03:00
2017-09-26 16:58:07 +03:00
- name : docker_registry should be defined if not using dockerhub
2017-09-01 05:21:25 +03:00
assert :
that :
- docker_registry is defined and docker_registry != ''
msg : "Set the value of 'docker_registry' in the inventory file."
2017-09-26 16:58:07 +03:00
when : dockerhub_base is not defined
2017-09-01 05:21:25 +03:00
2017-09-26 16:58:07 +03:00
- name : docker_registry_repository should be defined if not using dockerhub
2017-09-01 05:21:25 +03:00
assert :
that :
- docker_registry_repository is defined and docker_registry_repository != ''
msg : "Set the value of 'docker_registry_repository' in the inventory file."
2017-09-26 16:58:07 +03:00
when : dockerhub_base is not defined
2017-09-01 05:21:25 +03:00
2017-09-26 16:58:07 +03:00
- name : docker_registry_username should be defined if not using dockerhub
2017-09-01 05:21:25 +03:00
assert :
that :
- docker_registry_username is defined and docker_registry_username != ''
msg : "Set the value of 'docker_registry_username' in the inventory file."
2017-09-26 16:58:07 +03:00
when : dockerhub_base is not defined
2017-09-01 05:21:25 +03:00
2017-09-08 00:21:28 +03:00
- name : docker_registry_password should be defined
2017-09-01 05:21:25 +03:00
assert :
that :
- docker_registry_password is defined and docker_registry_password != ''
msg : "Set the value of 'docker_registry_password' in the inventory file."
2017-09-26 16:58:07 +03:00
when : dockerhub_base is not defined