Skip to content

Instantly share code, notes, and snippets.

@makeittotop
Last active May 30, 2016 19:45
Show Gist options
  • Save makeittotop/0f3267d32c047e06fb6e29f89d1b4ac0 to your computer and use it in GitHub Desktop.
Save makeittotop/0f3267d32c047e06fb6e29f89d1b4ac0 to your computer and use it in GitHub Desktop.
code manager description
Under the hood, Code Manager uses r10k and the file sync service to stage, commit, and sync your code, automatically managing your directory environments and modules.
First, you’ll create a control repository with branches for each environment that you want to create (such as production, development, or testing). You’ll also create Puppetfiles for your environments, specifying exactly which modules to install in each environment. This allows r10k to create directory environments, based on the branches you’ve set up.
When you push code to your control repo, you’ll trigger Code Manager to pull that new code into a staging code directory (/etc/puppetlabs/code-staging). File sync then picks up those changes, pauses Puppet Server to avoid conflicts, and then syncs the new code to the live code directories on your Puppet masters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment