Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 2.05 KB

README.md

File metadata and controls

56 lines (38 loc) · 2.05 KB

Build Status GitHub tag

Control Repo

This repository is a template control-repo that can be used with r10k as part of my sample Foreman / Puppet / PuppetDB setup.

The major points are:

  • An environment.conf that correctly implements:
    • A site directory for roles, profiles, and any custom modules for your organization.
    • A config_version script.
  • Provided config_version scripts to output the commit of code that your agent just applied.
  • Basic example of roles/profiles code.
  • hieradata directory with common.yaml and nodes directory.

Copy This Repo Into Your Own Git Server

GitLab

  1. Install GitLab.
  1. After GitLab is installed you may sign if with the root user and password 5iveL!fe.

  2. Make a user for yourself.

  3. Make an SSH key to link with your user. You’ll want to do this on the machine you intend to edit code from (most likely not your Puppet master, but your local workstation or laptop).

  1. Create a group called puppet (this is case sensitive).
  1. Add your user to the puppet group as well.

  2. Create a project called control-repo, and set the Namespace to be the puppet group.

  3. Clone this control repository to your laptop/workstation:

  • git clone <repository url>
  • cd control-repo
  1. Remove this repository as the origin remote:
  • git remote remove origin
  1. Add your internal repository as the origin remote:
  • git remote add origin <url of your gitlab repository>
  1. Push the production branch of the repository from your machine up to your git server
  • git push origin production