Skip to content

Commit 32d635b

Browse files
authored
Merge pull request #57 from heriet/feature/nifcloud_lb_lb
Change nifcloud_lb specification
2 parents 00bac0d + e9cdbe5 commit 32d635b

File tree

3 files changed

+839
-321
lines changed

3 files changed

+839
-321
lines changed

library/documents/nifcloud_lb.md

+33-14
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Synopsis
99

10-
De-registers or registers an instance of NIFCLOUD from Load Balancer.
10+
Create, update filter, register/deregister instances a load balancer of NIFCLOUD.
1111

1212
## Requirements
1313

@@ -16,16 +16,25 @@ De-registers or registers an instance of NIFCLOUD from Load Balancer.
1616

1717
## Options
1818

19-
| parameter | required | default | type | choices | comments |
20-
|---------------------|----------|------------|------|-----------------------|-------------------------------------------------------|
21-
| access_key | yes | | str | | NIFCLOUD API access key |
22-
| secret_access_key | yes | | str | | NIFCLOUD API secret access key |
23-
| endpoint | yes | | str | | API endpoint of target region |
24-
| instance_id | yes | | str | | Instacen ID |
25-
| instance_port | no | None | int | | Destination Port (required for registraiton) |
26-
| loadbalancer_name | no | None | str | | Target Load Balancer Name (required for registration) |
27-
| loadbalancer_port | no | None | int | | Target Load Balancer Port (required for registration) |
28-
| state | yes | | str | "present" or "absent" | Goal status |
19+
| parameter | required | default | type | choices | comments |
20+
|---------------------------|----------|------------|------|-----------------------|---------------------------------------------------------------------------------------|
21+
| access_key | yes | | str | | NIFCLOUD API access key |
22+
| secret_access_key | yes | | str | | NIFCLOUD API secret access key |
23+
| endpoint | yes | | str | | API endpoint of target region |
24+
| loadbalancer_name | yes | | str | | Target Load Balancer Name (required for registration) |
25+
| loadbalancer_port | yes | | int | | Target Load Balancer Port (required for registration) |
26+
| instance_port | yes | | int | | Destination Port (required for registraiton) |
27+
| balancing_type | no | 1 | int | | Balancing type (1: Round-Robin or 2: Least-Connection) |
28+
| network_volume | no | 10 | int | | Maximum of network volume |
29+
| ip_version | no | "v4" | str | | IP version ("v4" or "v6") |
30+
| accounting_type | no | "1" | str | | Accounting type ("1": monthly, "2": pay per use) |
31+
| policy_type | no | "standard" | str | | Encryption policy type ("standard" or "ats") |
32+
| instance_ids | no | [] | list | | List of Instance ID |
33+
| purge_instance_ids | no | True | bool | | Purge existing instance ids that are not found in instance_ids |
34+
| filter_ip_addresses | no | [] | list | | List of ip addresses that allows/denys incoming communication to resources |
35+
| filter_type | no | 1 | int | | Filter type that switch to allows/denys for filter ip addresses (1: allow or 2: deny) |
36+
| purge_filter_ip_addresses | no | True | bool | | Purge existing filter ip addresses that are not found in filter_ip_addresses |
37+
| state | yes | | str | "present" only | Goal status |
2938

3039
## Examples
3140

@@ -35,15 +44,25 @@ De-registers or registers an instance of NIFCLOUD from Load Balancer.
3544
module: pip
3645
name: requests
3746

38-
- name: Regist server to load balancer
47+
- name: Ensured load balancer
3948
local_action:
4049
module: nifcloud_lb
4150
access_key: "YOUR ACCESS KEY"
4251
secret_access_key: "YOUR SECRET ACCESS KEY"
4352
endpoint: "west-1.cp.cloud.nifty.com"
44-
instance_id: "web001"
45-
instance_port: 80
4653
loadbalancer_name: "lb001"
4754
loadbalancer_port: 80
55+
instance_port: 80
56+
balancing_type: 1
57+
network_volume: 10
58+
accounting_type: "1"
59+
policy_type: "standard"
60+
instance_ids:
61+
- test001
62+
purge_instance_ids: True
63+
filter_ip_addresses:
64+
- 192.0.2.0
65+
filter_type: 1
66+
purge_filter_ip_addresses: True
4867
state: "present"
4968
```

0 commit comments

Comments
 (0)