libioc.LaunchableResource module

ioc module for launchable resources.

class libioc.LaunchableResource.LaunchableResource(dataset=None, dataset_name=None, config_type='auto', config_file=None, logger=None, zfs=None, host=None)[source]

Bases: libioc.Resource.Resource

Representation of launchable resources like jails.

property backup

Return the lazy-loaded resource backup tool.

Return type

Updater

property dataset_name

Return the resources dataset name.

Return type

str

property periodic_conf

Return a lazy-loaded instance of the resources PeriodicConf.

Return type

ResourcePeriodicConf

property rc_conf

Return a lazy-loaded instance of the resources RCConf.

Return type

ResourceRCConf

property root_dataset

Return the resources root dataset.

Return type

ZFSDataset

property root_dataset_name

Return the resources root dataset name.

The root dasaset has the name root and is always a direct ancestor of a resources top-level dataset.

Return type

str

property root_path

Return the absolute path to the root filesystem of a jail.

Return type

str

save()[source]

Permanently save the resource configuration.

Return type

None

property sysctl_conf

Return a lazy-loaded instance of the resources SysctlConf.

Return type

SysctlConf

property updater

Return the lazy-loaded resource updater.

Return type

Updater