lxd-image-from-frecklet
Description
Create an LXD container image from a frecklet file.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
string | -- | The name of the frecklet. 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 frecklets: - container-image-from-frecklet: frecklet_name: '{{:: frecklet_name ::}}' 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 --help Usage: frecklecute lxd-image-from-frecklet [OPTIONS] Create an LXD container image from a frecklet file. Options: --frecklet-name FRECKLET_NAME The name of the frecklet. [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.LxdImageFromFrecklet # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class LxdImageFromFrecklet(AutoPycklet): """Create an LXD container image from a frecklet file. Args: freckles_extra_args: Extra base args for the freckles run. frecklet_name: The name of the frecklet. 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" freckles_extra_args: str = None frecklet_name: str = None frecklet_vars: Dict = None image_name: str = None install_packer: bool = None source_image: str = None def __post_init__(self): super(LxdImageFromFrecklet, self).__init__(var_names=["freckles_extra_args", "frecklet_name", "frecklet_vars", "image_name", "install_packer", "source_image"]) frecklet_class = LxdImageFromFrecklet
# -*- coding: utf-8 -*- # # module path: pycklets.lxd_image_from_frecklet.LxdImageFromFrecklet # from pyckles import AutoPycklet class LxdImageFromFrecklet(AutoPycklet): """Create an LXD container image from a frecklet file. Args: freckles_extra_args: Extra base args for the freckles run. frecklet_name: The name of the frecklet. 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" def __init__(self, freckles_extra_args=None, frecklet_name=None, frecklet_vars=None, image_name=None, install_packer=None, source_image=None): super(LxdImageFromFrecklet, self).__init__(var_names=["freckles_extra_args", "frecklet_name", "frecklet_vars", "image_name", "install_packer", "source_image"]) self._freckles_extra_args = freckles_extra_args self._frecklet_name = frecklet_name 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_name(self): return self._frecklet_name @frecklet_name.setter def frecklet_name(self, frecklet_name): self._frecklet_name = frecklet_name @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 = LxdImageFromFrecklet