Deflect Pools
dvn_deflectpool
create, update, or destroy DVN deflect pools
Synopsis
- create a new deflect pool
- delete an existing deflect pool
- update an existing deflect pool
- add deflect pool to service group
- remove deflect pool from service group
Options
| Parameter | Required? | Default | Choices | Comments |
|---|---|---|---|---|
| username | service-prov administrator username. If not specified as a parameter, the environment variable DVNREST_USER will be used. | |||
| password | service-prov password If not specified as a parameter, the environment variable DVNREST_PASSWORD will be used. | |||
| url | service-prov url. If not specified as a parameter, the environment variable DVNREST_URL will be used. | |||
| validate_certs | True | Check certs. Use false to allow self-signed. If not specified as a parameter, the environment variable VALIDATE_CERTS will be used. | ||
| state | present |
|
specify state of the deflect pool | |
| pool_id | yes | Unique ID for object | ||
| common_name | Service group label for object | |||
| target_channels_high | 3 | High number of target channels | ||
| target_channels_low | 3 | Low number of target channels | ||
| direct_channels | 0 | Number of direct channels | ||
| minimum_channels | 1 | Minimum number of channels | ||
| roll_interval | 30 | Roll interval in minutes | ||
| service_groups | [] | specify service group(s) to place deflect pool into |
Examples
- name: create a deflect pool
dvn_deflectpool:
url: "{{rest_host}}"
username: "{{rest_user}}"
password: "{{rest_pass}}"
pool_id: test-pool
validate_certs: false
- name: add to group
dvn_deflectpool:
url: "{{rest_host}}"
username: "{{rest_user}}"
password: "{{rest_pass}}"
pool_id: test-pool
minimum_channels: 2
service_groups: test-sg
validate_certs: false