lxd-image-from-frecklet-file
Description
Create an LXD container image from a frecklet file.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
string | -- | The (absolute!) path to the frecklet file. Required |
|
string | -- | Extra base args for the freckles run. |
|
dict | -- | The frecklet vars. |
|
string | -- | The image name. |
|
boolean | False | Install Packer into '$HOME/.local/bin', if not already available. |
|
string | -- | The name of the source/parent image. |
Code
doc: short_help: Create an LXD container image from a frecklet file. args: _import: container-image-from-frecklet-file frecklets: - container-image-from-frecklet-file: frecklet_path: '{{:: frecklet_path ::}}' image_name: '{{:: image_name ::}}' freckles_extra_args: '{{:: freckles_extra_args ::}}' frecklet_vars: '{{:: frecklet_vars ::}}' image_type: lxd install_packer: '{{:: install_packer ::}}' source_image: '{{:: source_image ::}}'
frecklecute lxd-image-from-frecklet-file --help Usage: frecklecute lxd-image-from-frecklet-file [OPTIONS] Create an LXD container image from a frecklet file. Options: --frecklet-path FRECKLET_PATH The (absolute!) path to the frecklet file. [required] --freckles-extra-args FRECKLES_EXTRA_ARGS Extra base args for the freckles run. --frecklet-vars FRECKLET_VARS The frecklet vars. --image-name IMAGE_NAME The image name. --install-packer Install Packer into '$HOME/.local/bin', if not already available. --source-image SOURCE_IMAGE The name of the source/parent image. --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.lxd_image_from_frecklet_file.LxdImageFromFreckletFile # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class LxdImageFromFreckletFile(AutoPycklet): """Create an LXD container image from a frecklet file. Args: freckles_extra_args: Extra base args for the freckles run. frecklet_path: The (absolute!) path to the frecklet file. frecklet_vars: The frecklet vars. image_name: The image name. install_packer: Install Packer into '$HOME/.local/bin', if not already available. source_image: The name of the source/parent image. """ FRECKLET_ID = "lxd-image-from-frecklet-file" freckles_extra_args: str = None frecklet_path: str = None frecklet_vars: Dict = None image_name: str = None install_packer: bool = None source_image: str = None def __post_init__(self): super(LxdImageFromFreckletFile, self).__init__(var_names=["freckles_extra_args", "frecklet_path", "frecklet_vars", "image_name", "install_packer", "source_image"]) frecklet_class = LxdImageFromFreckletFile
# -*- coding: utf-8 -*- # # module path: pycklets.lxd_image_from_frecklet_file.LxdImageFromFreckletFile # from pyckles import AutoPycklet class LxdImageFromFreckletFile(AutoPycklet): """Create an LXD container image from a frecklet file. Args: freckles_extra_args: Extra base args for the freckles run. frecklet_path: The (absolute!) path to the frecklet file. frecklet_vars: The frecklet vars. image_name: The image name. install_packer: Install Packer into '$HOME/.local/bin', if not already available. source_image: The name of the source/parent image. """ FRECKLET_ID = "lxd-image-from-frecklet-file" def __init__(self, freckles_extra_args=None, frecklet_path=None, frecklet_vars=None, image_name=None, install_packer=None, source_image=None): super(LxdImageFromFreckletFile, self).__init__(var_names=["freckles_extra_args", "frecklet_path", "frecklet_vars", "image_name", "install_packer", "source_image"]) self._freckles_extra_args = freckles_extra_args self._frecklet_path = frecklet_path self._frecklet_vars = frecklet_vars self._image_name = image_name self._install_packer = install_packer self._source_image = source_image @property def freckles_extra_args(self): return self._freckles_extra_args @freckles_extra_args.setter def freckles_extra_args(self, freckles_extra_args): self._freckles_extra_args = freckles_extra_args @property def frecklet_path(self): return self._frecklet_path @frecklet_path.setter def frecklet_path(self, frecklet_path): self._frecklet_path = frecklet_path @property def frecklet_vars(self): return self._frecklet_vars @frecklet_vars.setter def frecklet_vars(self, frecklet_vars): self._frecklet_vars = frecklet_vars @property def image_name(self): return self._image_name @image_name.setter def image_name(self, image_name): self._image_name = image_name @property def install_packer(self): return self._install_packer @install_packer.setter def install_packer(self, install_packer): self._install_packer = install_packer @property def source_image(self): return self._source_image @source_image.setter def source_image(self, source_image): self._source_image = source_image frecklet_class = LxdImageFromFreckletFile