2016-02-02 19:19:10 +00:00
|
|
|
---
|
|
|
|
- name: test configuration cluster
|
|
|
|
cs_configuration:
|
|
|
|
name: cpu.overprovisioning.factor
|
|
|
|
cluster: "{{ test_cs_configuration_cluster }}"
|
|
|
|
value: 1.0
|
|
|
|
register: config
|
|
|
|
- name: verify test configuration cluster
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 22:58:08 +00:00
|
|
|
- config is successful
|
2016-02-02 19:19:10 +00:00
|
|
|
|
2017-05-26 10:19:47 +00:00
|
|
|
- name: test update configuration cluster in check mode
|
|
|
|
cs_configuration:
|
|
|
|
name: cpu.overprovisioning.factor
|
|
|
|
cluster: "{{ test_cs_configuration_cluster }}"
|
|
|
|
value: 2.0
|
|
|
|
register: config
|
|
|
|
check_mode: true
|
|
|
|
- name: verify update configuration cluster in check mode
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 22:58:08 +00:00
|
|
|
- config is successful
|
|
|
|
- config is changed
|
2017-05-26 10:19:47 +00:00
|
|
|
- config.value == "1.0"
|
|
|
|
- config.name == "cpu.overprovisioning.factor"
|
|
|
|
- config.scope == "cluster"
|
|
|
|
- config.cluster == "{{ test_cs_configuration_cluster }}"
|
|
|
|
|
2016-02-02 19:19:10 +00:00
|
|
|
- name: test update configuration cluster
|
|
|
|
cs_configuration:
|
|
|
|
name: cpu.overprovisioning.factor
|
|
|
|
cluster: "{{ test_cs_configuration_cluster }}"
|
|
|
|
value: 2.0
|
|
|
|
register: config
|
|
|
|
- name: verify update configuration cluster
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 22:58:08 +00:00
|
|
|
- config is successful
|
|
|
|
- config is changed
|
2016-02-02 19:19:10 +00:00
|
|
|
- config.value == "2.0"
|
|
|
|
- config.name == "cpu.overprovisioning.factor"
|
|
|
|
- config.scope == "cluster"
|
|
|
|
- config.cluster == "{{ test_cs_configuration_cluster }}"
|
|
|
|
|
|
|
|
- name: test update configuration cluster idempotence
|
|
|
|
cs_configuration:
|
|
|
|
name: cpu.overprovisioning.factor
|
|
|
|
cluster: "{{ test_cs_configuration_cluster }}"
|
|
|
|
value: 2.0
|
|
|
|
register: config
|
|
|
|
- name: verify update configuration cluster idempotence
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 22:58:08 +00:00
|
|
|
- config is successful
|
|
|
|
- config is not changed
|
2016-02-02 19:19:10 +00:00
|
|
|
- config.value == "2.0"
|
|
|
|
- config.name == "cpu.overprovisioning.factor"
|
|
|
|
- config.scope == "cluster"
|
|
|
|
- config.cluster == "{{ test_cs_configuration_cluster }}"
|
|
|
|
|
|
|
|
- name: test reset configuration cluster
|
|
|
|
cs_configuration:
|
|
|
|
name: cpu.overprovisioning.factor
|
|
|
|
cluster: "{{ test_cs_configuration_cluster }}"
|
|
|
|
value: 1.0
|
|
|
|
register: config
|
|
|
|
- name: verify reset configuration cluster
|
|
|
|
assert:
|
|
|
|
that:
|
2017-11-27 22:58:08 +00:00
|
|
|
- config is successful
|
|
|
|
- config is changed
|
2016-02-02 19:19:10 +00:00
|
|
|
- config.value == "1.0"
|
|
|
|
- config.name == "cpu.overprovisioning.factor"
|
|
|
|
- config.scope == "cluster"
|
|
|
|
- config.cluster == "{{ test_cs_configuration_cluster }}"
|