Users' questions

What is Puppet control repo?

What is Puppet control repo?

A control repo is a repository of code that manages Puppet environments. It lists Puppet environments and their versioned modules. It can also define node classification and organizational data structures.

What is control repo?

The control repository (or repo) is the Git repository that code management uses to manage environments in your infrastructure. To create a control repo that includes the standard recommended structure, code examples, and configuration scripts, base your control repo on the Puppet control repo template.

What is r10k in Puppet?

r10k is a code management tool that allows you to manage your environment configurations (such as production, testing, and development) in a source control repository.

Which of the following is used by r10k to manage Puppet environments?

Using the source control repo branches, r10k creates environments on Puppet master machine installs and updates environment using modules present in the repo. Gem file can be used to install r10k on any machine but for modularity and in order to get the latest version, we will use rpm and rpm package manager.

How to manage a puppet Repo using R10k?

r10K comes in the form of a Ruby Gem that provides several commands for managing a Puppet repo, to use it we must split a Puppet repo into two parts, a control repo that contains some configuration, including an r10k config file that points to the second repo, which will contain our actual Puppet code.

Can you add third party modules to R10k?

At present r10k does not automatically pull in module dependencies so you will need to ensure that you add these in yourself, most modules list any required modules in their readme file, this feature should be appearing in r10k fairly soon however. First off let’s add a few third party modules that we are going to need into our repo’s Puppetfile:

What to do with an empty control Repo?

To start with an empty control repo, you create a new repo on your Git host and then copy it to your workstation. You make some changes to your repo, including adding a configuration file that allows code management tools to find modules in both your site and environment-specific module directories.

How to create a control Repo in GitHub?

The Hiera hierarchy is defined here. To get started with using the control-repo template in your own environment and git server, we’ve provided steps for the three most common servers we see: GitLab, BitBucket, and GitHub. Install GitLab. After GitLab is installed you may sign in with the root user and password 5iveL!fe.