mirror of https://github.com/ceph/ceph-ansible.git
validate: check custom repository config options
This adds missing configuration options when the 'custom' repository is used. Signed-off-by: Jugwan Eom <zugwan@gmail.com>pull/3924/head
parent
4ae5ce399b
commit
6c4f48812a
|
@ -66,6 +66,9 @@ class ActionModule(ActionBase):
|
|||
notario.validate(
|
||||
host_vars, ceph_repository_dev, defined_keys=True)
|
||||
|
||||
if host_vars["ceph_repository"] == "custom":
|
||||
notario.validate(host_vars, ceph_repository_custom, defined_keys=True)
|
||||
|
||||
# store these values because one must be defined
|
||||
# and the validation method
|
||||
# will need access to all three through the store
|
||||
|
@ -253,6 +256,8 @@ ceph_repository_dev = (
|
|||
("ceph_dev_sha1", types.string),
|
||||
)
|
||||
|
||||
ceph_repository_custom = ("ceph_custom_repo", types.string)
|
||||
|
||||
ceph_repository_uca = (
|
||||
("ceph_stable_repo_uca", types.string),
|
||||
("ceph_stable_openstack_release_uca", types.string),
|
||||
|
|
Loading…
Reference in New Issue