All Projects → puppetlabs → Control Repo

puppetlabs / Control Repo

Licence: apache-2.0
A control repository template

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Control Repo

Jerakia
A pluggable and extendable data lookup system
Stars: ✭ 111 (-29.75%)
Mutual labels:  puppet
Salt Sandbox
A Vagrant-based Salt development environment for creating new modules
Stars: ✭ 122 (-22.78%)
Mutual labels:  puppet
Puppet Rbenv
Puppet manifest for rbenv installation
Stars: ✭ 138 (-12.66%)
Mutual labels:  puppet
Loom
Elegant deployment with Fabric and Puppet.
Stars: ✭ 115 (-27.22%)
Mutual labels:  puppet
Puppet Mcollective
MCollective Server and Client Puppet Module
Stars: ✭ 121 (-23.42%)
Mutual labels:  puppet
Onceover
Your gateway drug to automated infrastructure testing with Puppet
Stars: ✭ 132 (-16.46%)
Mutual labels:  puppet
Govuk Puppet
Puppet manifests used to provision the main GOV.UK web stack
Stars: ✭ 109 (-31.01%)
Mutual labels:  puppet
Puppi
Puppet module to manage applications deployments and servers local management
Stars: ✭ 147 (-6.96%)
Mutual labels:  puppet
Serverfarmer
Manage multiple servers with different operating systems, configurations, requirements etc. for many separate customers in an outsourcing model.
Stars: ✭ 122 (-22.78%)
Mutual labels:  puppet
Perl Dist Strawberry
Stars: ✭ 138 (-12.66%)
Mutual labels:  puppet
Puppet Debugger
A interactive live debugger and REPL for the puppet language
Stars: ✭ 117 (-25.95%)
Mutual labels:  puppet
Puppetlabs spec helper
A set of shared spec helpers specific to Puppetlabs projects
Stars: ✭ 121 (-23.42%)
Mutual labels:  puppet
Wp Vagrant
WordPress Vagrant boxes for testing PHP 5.3, 5.4, and 5.5
Stars: ✭ 136 (-13.92%)
Mutual labels:  puppet
Puppet Nodejs
Puppet module to install nodejs and global npm packages
Stars: ✭ 111 (-29.75%)
Mutual labels:  puppet
Vagrant Php Box
Set up super fast a PHP5 development box with apache, mysql, phpmyadmin and whatever else that you may need
Stars: ✭ 139 (-12.03%)
Mutual labels:  puppet
Simp Core
The base SIMP build repository
Stars: ✭ 111 (-29.75%)
Mutual labels:  puppet
System Config
MOVED: Now at https://opendev.org/opendev/system-config
Stars: ✭ 128 (-18.99%)
Mutual labels:  puppet
Pytest Testinfra
With Testinfra you can write unit tests in Python to test actual state of your servers configured by management tools like Salt, Ansible, Puppet, Chef and so on.
Stars: ✭ 1,987 (+1157.59%)
Mutual labels:  puppet
Puppet Retrospec
The only tool you need to generate puppet code, tests, modules, facts, types, providers, data and everything else.
Stars: ✭ 141 (-10.76%)
Mutual labels:  puppet
Rails Starter Box
Base Vagrant box for development of Rails apps
Stars: ✭ 136 (-13.92%)
Mutual labels:  puppet

A Puppet Control Repository

What You Get From This control-repo

This is a template control repository that has the minimum amount of scaffolding to make it easy to get started with r10k or Puppet Enterprise's Code Manager.

The important files and items in this template are as follows:

  • Basic example of roles and profiles.
  • An example Puppetfile with various module references.
  • An example Hiera configuration file and data directory with pre-created common.yaml and nodes directory.
    • These match the default hierarchy that ships with PE.
  • An environment.conf that correctly implements:
    • A site-modules directory for roles, profiles, and any custom modules for your organization.
    • A config_version script.
  • An example config_version script that outputs the git commit ID of the code that was used during a Puppet run.

Here's a visual representation of the structure of this repository:

control-repo/
├── data/                                 # Hiera data directory.
│   ├── nodes/                            # Node-specific data goes here.
│   └── common.yaml                       # Common data goes here.
├── manifests/
│   └── site.pp                           # The "main" manifest that contains a default node definition.
├── scripts/
│   ├── code_manager_config_version.rb    # A config_version script for Code Manager.
│   ├── config_version.rb                 # A config_version script for r10k.
│   └── config_version.sh                 # A wrapper that chooses the appropriate config_version script.
├── site-modules/                         # This directory contains site-specific modules and is added to $modulepath.
│   ├── profile/                          # The profile module.
│   └── role/                             # The role module.
├── LICENSE
├── Puppetfile                            # A list of external Puppet modules to deploy with an environment.
├── README.md
├── environment.conf                      # Environment-specific settings. Configures the modulepath and config_version.
└── hiera.yaml                            # Hiera's configuration file. The Hiera hierarchy is defined here.

Copy This Repo Into Your Own Git Server

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.

GitLab

  1. Install GitLab.
  2. After GitLab is installed you may sign in with the root user and password 5iveL!fe.
  3. Make a user for yourself.
  4. 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).
  5. Create a group called puppet (this is case sensitive).
  6. Add your user to the puppet group as well.
  7. Create a project called control-repo, and set the Namespace to be the puppet group.
  8. Clone this control repository to your laptop/workstation:
    • git clone <repository url>
    • cd control-repo
  9. Remove this repository as the origin remote:
    • git remote remove origin
  10. Add your internal repository as the origin remote:
    • git remote add origin <url of your gitlab repository>
  11. Push the production branch of the repository from your machine up to your git server
    • git push origin production

Bitbucket/Stash

  1. Install Bitbucket
  2. Make a Project called puppet (with a short name of PUP)
  3. Create a repository called control-repo
  4. Create a user called r10k with a password of puppet.
    • Make the r10k user an admin of the PUP project.
  5. Either use the admin user to test pushing code, or create a user for yourself and add your SSH key to that user.
    • If making a user for yourself, give your user account read/write or admin privilege to the PUP project.
  6. Clone this control repository to your laptop/workstation
    • git clone <repository url>
    • cd control-repo
  7. Remove this repository as the origin remote
    • git remote remove origin
  8. Add your internal repository as the origin remote
    • git remote add origin <url of your bitbucket repository>
  9. Push the production branch of the repository from your machine up to your git server
    • git push origin production

GitHub

  1. Prepare your local git client to authenticate with GitHub.com or a local GitHub Enterprise instance.
  2. Create a repository called control-repo in your user account or organization. Ensure that "Initialize this repository with a README" is not selected.
  3. Make a note of your repository URL (HTTPS or SSH, depending on your security configuration).
  4. Clone this control repository to your laptop/workstation:
    • git clone <repository url>
    • cd control-repo
  5. Remove this repository as the origin remote:
    • git remote remove origin
  6. Add your internal repository as the origin remote:
    • git remote add origin <url of your github repository>
  7. Push the production branch of the repository from your machine up to your git server
    • git push origin production

Code Manager Setup

If you use Puppet Enterprise and have not yet enabled and configured Code Manager, in addition to reading the official documentation for enabling it, you may want to look at the Ramp-Up Program's control repository instead of this one. It's similar to this repo except that it has batteries included, so to speak. There are pre-built profiles for configuring Code Manager, generating SSH keys, and setting up your Git server to work with Code Manager.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].