Add an environment

Create new environments by creating branches based on your control repo's production branch.

Before you begin: You must have:
If you have multiple control repos, you can't repeat branch names unless you use a source prefix. Go to Configuring sources for more information.
  1. In your control repo, create a new branch based on the production branch: git branch <NEW_BRANCH_NAME>
  2. Check out the new branch: git checkout <NEW_BRANCH_NAME>
  3. Edit the Puppetfile to track the necessary modules and data for your new environment, and then save your changes.
  4. Commit your changes: git commit -m "prepare Puppetfile for new environment"
  5. Push your changes: git push origin <NEW_BRANCH_NAME>
  6. Deploy your environments as you normally would, either on the command line or with a webhook.
Results
Code management detects the new environment in your control repo and begins managing it, as explained in How the control repository works.