mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update proxmox.py (#8657)
* Update proxmox.py Added an example to create a new container with more network options (with ipv6 static configuration) * Update proxmox.py Made the linter happy. * cleaned up dictionaries Changed dictionaries from this format: netif: '{"net0":"name=eth0,g... to this: netif: net0: "name=eth0,g... * Update proxmox.py false intendation and trailing whitespaces
This commit is contained in:
parent
2963004991
commit
7bbf32dc0e
1 changed files with 21 additions and 4 deletions
|
@ -401,7 +401,8 @@ EXAMPLES = r'''
|
||||||
password: 123456
|
password: 123456
|
||||||
hostname: example.org
|
hostname: example.org
|
||||||
ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz'
|
ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz'
|
||||||
netif: '{"net0":"name=eth0,ip=dhcp,ip6=dhcp,bridge=vmbr0"}'
|
netif:
|
||||||
|
net0: "name=eth0,ip=dhcp,ip6=dhcp,bridge=vmbr0"
|
||||||
|
|
||||||
- name: Create new container with minimal options defining network interface with static ip
|
- name: Create new container with minimal options defining network interface with static ip
|
||||||
community.general.proxmox:
|
community.general.proxmox:
|
||||||
|
@ -413,7 +414,21 @@ EXAMPLES = r'''
|
||||||
password: 123456
|
password: 123456
|
||||||
hostname: example.org
|
hostname: example.org
|
||||||
ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz'
|
ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz'
|
||||||
netif: '{"net0":"name=eth0,gw=192.168.0.1,ip=192.168.0.2/24,bridge=vmbr0"}'
|
netif:
|
||||||
|
net0: "name=eth0,gw=192.168.0.1,ip=192.168.0.2/24,bridge=vmbr0"
|
||||||
|
|
||||||
|
- name: Create new container with more options defining network interface with static ip4 and ip6 with vlan-tag and mtu
|
||||||
|
community.general.proxmox:
|
||||||
|
vmid: 100
|
||||||
|
node: uk-mc02
|
||||||
|
api_user: root@pam
|
||||||
|
api_password: 1q2w3e
|
||||||
|
api_host: node1
|
||||||
|
password: 123456
|
||||||
|
hostname: example.org
|
||||||
|
ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz'
|
||||||
|
netif:
|
||||||
|
net0: "name=eth0,gw=192.168.0.1,ip=192.168.0.2/24,ip6=fe80::1227/64,gw6=fe80::1,bridge=vmbr0,firewall=1,tag=934,mtu=1500"
|
||||||
|
|
||||||
- name: Create new container with minimal options defining a mount with 8GB
|
- name: Create new container with minimal options defining a mount with 8GB
|
||||||
community.general.proxmox:
|
community.general.proxmox:
|
||||||
|
@ -425,7 +440,8 @@ EXAMPLES = r'''
|
||||||
password: 123456
|
password: 123456
|
||||||
hostname: example.org
|
hostname: example.org
|
||||||
ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz'
|
ostemplate: 'local:vztmpl/ubuntu-14.04-x86_64.tar.gz'
|
||||||
mounts: '{"mp0":"local:8,mp=/mnt/test/"}'
|
mounts:
|
||||||
|
mp0: "local:8,mp=/mnt/test/"
|
||||||
|
|
||||||
- name: Create new container with minimal options defining a mount with 8GB using mount_volumes
|
- name: Create new container with minimal options defining a mount with 8GB using mount_volumes
|
||||||
community.general.proxmox:
|
community.general.proxmox:
|
||||||
|
@ -511,7 +527,8 @@ EXAMPLES = r'''
|
||||||
api_user: root@pam
|
api_user: root@pam
|
||||||
api_password: 1q2w3e
|
api_password: 1q2w3e
|
||||||
api_host: node1
|
api_host: node1
|
||||||
netif: '{"net0":"name=eth0,gw=192.168.0.1,ip=192.168.0.3/24,bridge=vmbr0"}'
|
netif:
|
||||||
|
net0: "name=eth0,gw=192.168.0.1,ip=192.168.0.3/24,bridge=vmbr0"
|
||||||
update: true
|
update: true
|
||||||
|
|
||||||
- name: Start container
|
- name: Start container
|
||||||
|
|
Loading…
Reference in a new issue