Adds module which allows users to manage partitions on a BIG-IP (#30577)

This commit is contained in:
Tim Rupp 2017-09-21 06:48:51 -07:00 committed by John R Barker
commit 0eb0d96286
9 changed files with 621 additions and 124 deletions

View file

@ -1,3 +0,0 @@
---
device_group: "sdbt_sync_failover_dev_group"

View file

@ -1,16 +0,0 @@
---
# In this task list, the 0th item is the Active unit and the 1st item is the
# standby unit.
- include: setup.yaml
when: ansible_play_batch[0] == inventory_hostname
- include: test-device-to-group.yaml
when: ansible_play_batch[0] == inventory_hostname
- include: test-pull-recent-device.yaml
when: ansible_play_batch[1] == inventory_hostname
- include: teardown.yaml
when: ansible_play_batch[0] == inventory_hostname

View file

@ -1,13 +0,0 @@
---
- name: Create pool
bigip_pool:
lb_method: "round-robin"
name: "cs1.pool"
state: "present"
register: result
- name: Assert Create pool
assert:
that:
- result|changed

View file

@ -1,21 +0,0 @@
---
- name: Delete pool - First device
bigip_pool:
name: "{{ item }}"
state: "absent"
with_items:
- "cs1.pool"
- "cs2.pool"
register: result
- name: Assert Delete pool
assert:
that:
- result|changed
- name: Sync configuration from device to group
bigip_configsync_actions:
device_group: "{{ device_group }}"
sync_device_to_group: yes
register: result

View file

@ -1,23 +0,0 @@
---
- name: Sync configuration from device to group
bigip_configsync_actions:
device_group: "{{ device_group }}"
sync_device_to_group: yes
register: result
- name: Sync configuration from device to group
assert:
that:
- result|changed
- name: Sync configuration from device to group - Idempotent check
bigip_configsync_actions:
device_group: "{{ device_group }}"
sync_device_to_group: yes
register: result
- name: Sync configuration from device to group - Idempotent check
assert:
that:
- not result|changed

View file

@ -1,48 +0,0 @@
---
- name: Create another pool - First device
bigip_pool:
server: "{{ hostvars['bigip1']['ansible_host'] }}"
lb_method: "round_robin"
name: "cs2.pool"
state: "present"
register: result
- name: Assert Create another pool - First device
assert:
that:
- result|changed
- name: Sync configuration from most recent - Second device
bigip_configsync_actions:
device_group: "{{ device_group }}"
sync_most_recent_to_device: yes
register: result
- name: Assert Sync configuration from most recent - Second device
assert:
that:
- result|changed
- name: Sync configuration from most recent - Second device - Idempotent check
bigip_configsync_actions:
device_group: "{{ device_group }}"
sync_most_recent_to_device: yes
register: result
- name: Assert Sync configuration from most recent - Second device - Idempotent check
assert:
that:
- not result|changed
- name: Create another pool again - Second device - ensure it was created in previous sync
bigip_pool:
lb_method: "round_robin"
name: "cs2.pool"
state: "present"
register: result
- name: Assert Create another pool again - Second device - ensure it was deleted in previous sync
assert:
that:
- not result|changed