cpm_iptables_config
Set network IPTables parameters in WTI OOB and PDU devices
Collection: wti.remote
Full Name: wti.remote.cpm_iptables_config
Synopsis
Set network IPTables parameters in WTI OOB and PDU devices
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| cpm_url | string | yes | WTI device host or host:port | |
| cpm_username | string | yes | WTI username; an empty username selects an API token | |
| cpm_password | string | yes | WTI password or API token | |
| protocol | int | 0 for IPv4 and 1 for IPv6 | ||
| index | list | One-based rule indexes | ||
| command | list | yes | IPTables commands | |
| clear | int | Clear the table before applying commands | ||
| use_https | bool | true | Use HTTPS instead of HTTP | |
| validate_certs | bool | true | Validate the device TLS certificate | |
| use_proxy | bool | false | Observe HTTP proxy environment variables |
Example
yaml
- name: Replace one IPTables entry on a WTI device
wti.remote.cpm_iptables_config:
cpm_url: nonexist.wti.com
cpm_username: super
cpm_password: super
protocol: 0
index:
- 1
command:
- iptables -A INPUT -p tcp --dport 443 -j ACCEPT
use_https: true
validate_certs: false