freeze#

usage: scotty freeze [-h] basepath files [files ...]

Freeze a configuration file

positional arguments:
  basepath    Base directory to store the files to
  files       Files to freeze

options:
  -h, --help  show this help message and exit

freeze command will turn any loose revision information of git repositories used in the current kas based configuration into fixed SHA256 based revisions. This can be used e.g. to create a release.

Note

For every file that is affected a overlay will be created under the configured basepath. Those new files should then be put under version control (e.g. git).

You can request scotty to use these files with --manifest-overlays-from option or with the help of SCOTTY_MANIFEST_OVERLAYS environment variable.

example:

Check out e.g. simplecore-manifest directory.

$ cd <path to simplecore-manifest>
$ scotty freeze release $(find snippets -name '*.yml' | tr "\n" " ")

the newly created files can now be committed to git

To use these frozen revisions run

$ cd <path to simplecore-manifest>
$ scotty --manifest-overlays-from "release" setup

or

$ cd <path to simplecore-manifest>
$ SCOTTY_MANIFEST_OVERLAYS="release" scotty setup