Skip to content

Apt Action

The apt action defines the contents of <profile>.packages file, which basically is a list of to be installed packages.

Usage

Click on the to learn more about the action's options.

Apt Action
actions:
  - action: apt
    description: Base packages #(1)!
    packages: # (2)! 
      - adduser
      - apparmor
      - apt
  1. [Optional] Description, for documentation purposes
  2. [Required] List of packages

Implementation

PreseedAction

Bases: Action

Preseed action

Source code in simple_cdd_yaml/actions.py
class PreseedAction(Action):
    """ Preseed action """
    def perform_action(self, props):
        return self._read_substitute(props['preconf'],
                                     props.get('variables', {}))

    def perform_debos_action(self, props):
        return None