Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 2.61 KB

project-definition.md

File metadata and controls

27 lines (22 loc) · 2.61 KB

Project Definition: zero-project.yml

Each project is defined by this file. This manifest reflects all the options a user chose during the zero init step. It defines which modules are part of the project, each of their parameters, and is the source of truth for the templating (zero create) and provision (zero apply) steps.

Note: This file contains credentials, so make sure it is not shared with others.

Parameters Type Description
name string name of the project
shouldPushRepositories boolean whether to push the modules to version control
modules map(modules) a map containing modules of your project

Modules

Parameters Type Description
parameters map(string) key-value map of all the parameters to run the module
files File Stores information such as source-module location and destination
dependsOn list(string) a list of dependencies that should be fulfilled before this module
conditions list(condition) conditions to apply while templating out the module based on parameters

Condition

Parameters Type Description
action enum(string) type of condition, currently supports [ignoreFile]
matchField string Allows you to condition prompt based on another parameter's value
WhenValue string Matches for this value to satisfy the condition
data list(string) Supply extra data for condition to run ignoreFile: provide list of paths (file or directory path) to omit from module when condition is satisfied