??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
àUdac @` s³ d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
Z
d d l Z d d l m
Z
d
e f d „ ƒ YZ d „ Z e d k r¯ e ƒ n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bysË
---
module: beadm
short_description: Manage ZFS boot environments on FreeBSD/Solaris/illumos systems.
description:
- Create, delete or activate ZFS boot environments.
- Mount and unmount ZFS boot environments.
version_added: "2.3"
author: Adam Å tevko (@xen0l)
options:
name:
description:
- ZFS boot environment name.
type: str
required: True
aliases: [ "be" ]
snapshot:
description:
- If specified, the new boot environment will be cloned from the given
snapshot or inactive boot environment.
type: str
description:
description:
- Associate a description with a new boot environment. This option is
available only on Solarish platforms.
type: str
options:
description:
- Create the datasets for new BE with specific ZFS properties.
- Multiple options can be specified.
- This option is available only on Solarish platforms.
type: str
mountpoint:
description:
- Path where to mount the ZFS boot environment.
type: path
state:
description:
- Create or delete ZFS boot environment.
type: str
choices: [ absent, activated, mounted, present, unmounted ]
default: present
force:
description:
- Specifies if the unmount should be forced.
type: bool
default: false
s
- name: Create ZFS boot environment
beadm:
name: upgrade-be
state: present
- name: Create ZFS boot environment from existing inactive boot environment
beadm:
name: upgrade-be
snapshot: be@old
state: present
- name: Create ZFS boot environment with compression enabled and description "upgrade"
beadm:
name: upgrade-be
options: "compression=on"
description: upgrade
state: present
- name: Delete ZFS boot environment
beadm:
name: old-be
state: absent
- name: Mount ZFS boot environment on /tmp/be
beadm:
name: BE
mountpoint: /tmp/be
state: mounted
- name: Unmount ZFS boot environment
beadm:
name: BE
state: unmounted
- name: Activate ZFS boot environment
beadm:
name: upgrade-be
state: activated
sñ
name:
description: BE name
returned: always
type: str
sample: pre-upgrade
snapshot:
description: ZFS snapshot to create BE from
returned: always
type: str
sample: rpool/ROOT/oi-hipster@fresh
description:
description: BE description
returned: always
type: str
sample: Upgrade from 9.0 to 10.0
options:
description: BE additional options
returned: always
type: str
sample: compression=on
mountpoint:
description: BE mountpoint
returned: always
type: str
sample: /mnt/be
state:
description: state of the target
returned: always
type: str
sample: present
force:
description: If forced action is wanted
returned: always
type: bool
sample: False
N( t
AnsibleModulet BEc B` sk e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z RS( c C` s– | | _ | j d | _ | j d | _ | j d | _ | j d | _ | j d | _ | j d | _ | j d | _ t j
ƒ d d k | _ d S(
Nt namet snapshott descriptiont optionst
mountpointt statet forcei t FreeBSD( t modulet paramsR
R R R
R R R t ost unamet
is_freebsd( t selfR ( ( s@ /usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt __init__– s c C` s^ | j j d ƒ g } | j d ƒ | j d ƒ d | j k rN | j d ƒ n | j j | ƒ S( Nt beadmt lists -Ht @s -s( R t get_bin_patht appendR
t run_command( R t cmd( ( s@ /usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt _beadm_list¢ s
c C` sÙ d | j k rƒ xà | j ƒ D]` } | j rV t j d j | j ƒ | ƒ } | r| | Sq | j d ƒ } | d | j k r | Sq WnR | j r’ d n d } x: | j ƒ D], } | j | ƒ } | d | j k r¥ | Sq¥ Wd S( NR s
.+/({0})\s+\-t ;i s i ( R
t
splitlinesR t ret matcht formatt splitt None( R t outt linet checkt splitter( ( s@ /usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt _find_be_by_nameª s c C` sC | j ƒ \ } } } | d k r; | j | ƒ r4 t St Sn t Sd S( Ni ( R R, t Truet False( R t rcR( t _( ( s@ /usr/lib/python2.7/site-packages/ansible/modules/system/beadm.pyt exists¾ s c C` s‰ | j ƒ \ } } } | d k r… | j | ƒ } | j re | d k r‚ d | j d ƒ d k r‚ t Sq… d | j d ƒ d k r… t Sn t S( Ni t Rs i R! i ( R R, R R' R&