8.0.0
This commit is contained in:
@@ -121,6 +121,18 @@ class decort_k8s(DecortController):
|
||||
)
|
||||
self.exit(fail=True)
|
||||
|
||||
if (
|
||||
self.aparams['master_count'] is not None
|
||||
and self.aparams['master_count'] > 1
|
||||
and not self.aparams['with_lb']
|
||||
):
|
||||
self.message(
|
||||
'Check for parameter "master_count" failed: '
|
||||
'master_count can be more than 1 only if the parameter '
|
||||
'"with_lb" is set to True.'
|
||||
)
|
||||
self.exit(fail=True)
|
||||
|
||||
return
|
||||
|
||||
def package_facts(self,check_mode=False):
|
||||
@@ -155,6 +167,7 @@ class decort_k8s(DecortController):
|
||||
ret_dict['k8s_Masters'] = self.k8s_info['k8sGroups']['masters']
|
||||
ret_dict['k8s_Workers'] = self.k8s_info['k8sGroups']['workers']
|
||||
ret_dict['lb_id'] = self.k8s_info['lbId']
|
||||
ret_dict['description'] = self.k8s_info['desc']
|
||||
|
||||
return ret_dict
|
||||
|
||||
@@ -358,6 +371,7 @@ class decort_k8s(DecortController):
|
||||
master_count=dict(
|
||||
type='int',
|
||||
default=1,
|
||||
choices=[1, 3, 5, 7],
|
||||
),
|
||||
master_cpu=dict(
|
||||
type='int',
|
||||
|
||||
Reference in New Issue
Block a user