Improve YAML examples - system/solaris_zone.py (#19410)

This commit is contained in:
Fabio Alessandro Locati 2016-12-19 17:49:47 +01:00 committed by John R Barker
parent 7814546735
commit a080d44a47

View file

@ -107,56 +107,56 @@ options:
''' '''
EXAMPLES = ''' EXAMPLES = '''
# Create and install a zone, but don't boot it - name: Create and install a zone, but don't boot it
- solaris_zone: solaris_zone:
name: zone1 name: zone1
state: present state: present
path: /zones/zone1 path: /zones/zone1
sparse: true sparse: True
root_password: Be9oX7OSwWoU. root_password: Be9oX7OSwWoU.
config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end' config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end'
# Create and install a zone and boot it - name: Create and install a zone and boot it
- solaris_zone: solaris_zone:
name: zone1 name: zone1
state: running state: running
path: /zones/zone1 path: /zones/zone1
root_password: Be9oX7OSwWoU. root_password: Be9oX7OSwWoU.
config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end' config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end'
# Boot an already installed zone - name: Boot an already installed zone
- solaris_zone: solaris_zone:
name: zone1 name: zone1
state: running state: running
# Stop a zone - name: Stop a zone
- solaris_zone: solaris_zone:
name: zone1 name: zone1
state: stopped state: stopped
# Destroy a zone - name: Destroy a zone
- solaris_zone: solaris_zone:
name: zone1 name: zone1
state: absent state: absent
# Detach a zone - name: Detach a zone
- solaris_zone: solaris_zone:
name: zone1 name: zone1
state: detached state: detached
# Configure a zone, ready to be attached - name: Configure a zone, ready to be attached
- solaris_zone: solaris_zone:
name: zone1 name: zone1
state: configured state: configured
path: /zones/zone1 path: /zones/zone1
root_password: Be9oX7OSwWoU. root_password: Be9oX7OSwWoU.
config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end' config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end'
# Attach a zone - name: Attach zone1
- solaris_zone: solaris_zone:
name: zone1 name: zone1
state: attached state: attached
attach_options=: -u attach_options: -u
''' '''
class Zone(object): class Zone(object):