Configure your pipelines for management with code
To manage pipelines-as-code, you need a .cd4pe.yaml
file containing the pipeline definitions. Use these steps to convert existing pipelines to
code, update pipelines-as-code, or create new pipelines for new repos.
- If you created pipelines for a control repo or module in the Continuous Delivery for Puppet Enterprise (PE) web UI and you now want to manage
those pipelines with code, you can Convert your existing pipelines to code.
Continuous Delivery for PE generates a
.cd4pe.yaml
file based on the repo's existing pipelines. You can then Update your pipelines with a new .cd4pe.yaml file when you need to make changes to the pipelines. - If you've created a
.cd4pe.yaml
file you want to use to replace existing pipelines (that you created in the web UI or with another.cd4pe.yaml
file), you need to Update your pipelines with a new .cd4pe.yaml file. - If you have created your own
.cd4pe.yaml
file for a new repo that you haven't yet added to Continuous Delivery for PE, you can Create new pipelines using a.cd4pe.yaml
file.Note: This process only applies to new repos you haven't yet added to Continuous Delivery for PE. If you already added a repo to Continuous Delivery for PE, you need to Convert your existing pipelines to code or Update your pipelines with a new .cd4pe.yaml file. - If you want to re-enable the pipeline controls in the web UI, you can Stop managing your pipelines with code.
Convert your existing pipelines to code
If you've created pipelines using the Continuous Delivery for Puppet Enterprise (PE) web UI, and now want to manage those pipelines with code, Continuous Delivery for PE can render your existing pipelines in YAML format.
.cd4pe.yaml
file before every pipeline run, and it uses the YAML code to
render the pipelines' definitions in the web UI. Because you're now managing this repo's
pipelines with code, the pipeline controls in the web UI are disabled for this
repo.Update your pipelines with a new .cd4pe.yaml
file
You can use a .cd4pe.yaml
file to replace pipelines
you created in the Continuous Delivery for Puppet Enterprise (PE) web UI or to update pipelines
you're already managing with code.
.cd4pe.yaml
file
containing the definitions of the pipelines you want to create or update. To learn about
.cd4pe.yaml
file syntax, go to .cd4pe.yaml file structure. If you were previously managing pipelines in
the web UI, you can Convert your existing pipelines to code and then update the
resulting .cd4pe.yaml
file, rather than creating a
completely new file..cd4pe.yaml
file before every pipeline run, and it uses the YAML code to
render the pipelines' definitions in the web UI. Because you're now managing this repo's
pipelines with code, the pipeline controls in the web UI are disabled for this
repo.Create new pipelines using a .cd4pe.yaml
file
You can create pipelines-as-code for a new control repos or module repos that you
haven't yet added to Continuous Delivery for Puppet Enterprise (PE). If a .cd4pe.yaml
file exists in the repo when you first add it to Continuous Delivery for PE, the software detects the file and asks if you want to use
it to build and manage your pipelines.
.cd4pe.yaml
file
containing the definitions of the pipelines you want to create. To learn about .cd4pe.yaml
file syntax, go to .cd4pe.yaml file structure..cd4pe.yaml
file before every pipeline run, and it uses the YAML code to
render the pipelines' definitions in the web UI. Because you're managing this repo's
pipelines with code, the pipeline controls in the web UI are disabled for this
repo.Stop managing your pipelines with code
If you want to use the web UI, instead of a .cd4pe.yaml
file, to manage your pipelines, you can quickly make this switch
in the Continuous Delivery for Puppet Enterprise (PE) web UI.
-
In the Continuous Delivery for PE web UI, navigate to the control repo
or module that has pipelines you are currently managing with a
.cd4pe.yaml
file. - At the top of the Pipelines section, click , and make any necessary adjustments to the pipeline settings.
- Click Save settings.
.cd4pe.yaml
file and you must make all
pipeline changes in the web UI. .cd4pe.yaml
file from the repo's root directory in
source control.