qiyutech.foreman.hl_subnet module – Foreman 子网操作¶
备注
This module is part of the qiyutech.foreman collection (version 1.0.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install qiyutech.foreman.
To use it in a playbook, specify: qiyutech.foreman.hl_subnet.
1.0.0 新版功能: of qiyutech.foreman
Synopsis¶
Foreman 子网操作
当前不允许更新配置
备注
This module has a corresponding action plugin.
Parameters¶
Parameter |
Comments |
|---|---|
Set the current location context for the request |
|
如果 location_id 没有设置, 则使用此值 获取 location_id |
|
Set the current organization context for the request |
|
如果 organization_id 没有设置,则使用此值 获取 organization_id |
|
Foreman password 此参数是必须的 获取参数顺序: 1 password 任务参数 2 foreman_password 变量 (aka: task_vars 中的 foreman_password 变量) 3 FOREMAN_PASSWORD 任务环境变量 4 FOREMAN_PASSWORD 全局环境变量 |
|
Foreman Server URL 此参数是必须的 获取参数顺序: 1 server_url 任务参数 2 foreman_server_url 变量 (aka: task_vars 中的 foreman_server_url 变量) 3 FOREMAN_SERVER_URL 任务环境变量 4 FOREMAN_SERVER_URL 全局环境变量 |
|
状态 Choices:
|
|
subnet |
|
BMC Proxy ID to use within this subnet 实际上支持此功能的 smart proxy id |
|
BMC Proxy Name to use within this subnet 实际上支持此功能的 smart proxy 名称 |
|
Default boot mode for interfaces assigned to this subnet. Choices:
|
|
Network prefix in CIDR notation |
|
Subnet description |
|
DHCP Proxy ID to use within this subnet 实际上支持此功能的 smart proxy id |
|
DHCP Proxy name to use within this subnet use this value auto fill dhcp_id if None 实际上支持此功能的 smart proxy 名称 |
|
DNS Proxy ID to use within this subnet 实际上支持此功能的 smart proxy id |
|
DNS Proxy Name to use within this subnet 实际上支持此功能的 smart proxy 名称 |
|
Primary DNS for this subnet |
|
Secondary DNS for this subnet |
|
Domains in which this subnet is part |
|
Domains in which this subnet is part auto fill domain_ids use this value if domain_ids is empty |
|
External IPAM group - only relevant when IPAM is set to external |
|
External IPAM Proxy ID to use within this subnet |
|
External IPAM Proxy Name to use within this subnet |
|
Starting IP Address for IP auto suggestion |
|
Subnet gateway |
|
HTTPBoot Proxy ID to use within this subnet 实际上支持此功能的 smart proxy id |
|
HTTPBoot Proxy Name to use within this subnet 实际上支持此功能的 smart proxy 名称 |
|
IP Address auto suggestion mode for this subnet. for IPv4 you can use DHCP, for IPv6 use EUI-64 Choices:
|
|
REPLACE locations with given ids |
|
REPLACE locations with given names |
|
Netmask for this subnet |
|
MTU for this subnet Default: 1500 |
|
Subnet name |
|
Subnet network |
|
Type or protocol, IPv4 or IPv6, defaults to IPv4 Choices:
|
|
REPLACE organizations with given ids. |
|
REPLACE organizations with given names. |
|
Array of parameters (name, value) |
|
Template HTTP(S) Proxy ID to use within this subnet |
|
Template HTTP(S) Proxy Name to use within this subnet 当前不支持 |
|
TFTP Proxy ID to use within this subnet 实际上支持此功能的 smart proxy id |
|
TFTP Proxy Name to use within this subnet use this value auto fill tftp_id if None 实际上支持此功能的 smart proxy 名称 |
|
Ending IP Address for IP auto suggestion |
|
VLAN ID for this subnet |
|
subnet 配置文件 如果 subnet 值不存在,则尝试从此文件中读取 subnet 的配置 |
|
Foreman username 此参数是必须的 获取参数顺序: 1 username 任务参数 2 foreman_username 变量 (aka: task_vars 中的 foreman_username 变量) 3 FOREMAN_USERNAME 任务环境变量 4 FOREMAN_USERNAME 全局环境变量 |
Examples¶
- name: Foreman Setting
qiyutech.foreman.hl_subnet:
subnet_file: subnet_config_file.toml
state: present