Questions tagged [r10k]

R10k is a tool that is able to deploy multiple puppet modules from e.g. puppetforge and other repositories in various environments, e.g. development and production

Background

R10k was created by Adrien Thebo and version 0.0.1 was released on Jan 4, 2013. R10k is a generic name that takes its name from Robot 9000 and incrementing it to 10000. The last release of r10k in the original repository was on Dec 3, 2014. Since 2015, r10k is maintained in the puppetlabs/r10k repository.

Installation

R10k could be installed using gem:

/opt/puppetlabs/puppet/bin/gem install r10k

Configuration

The modules that need to be deployed using r10k need to be defined in a Puppetfile, e.g.:

mod '030/git', '0.2.5'
mod '030/packer', :latest

Commands

In order to deploy the modules using r10k:

/opt/puppetlabs/puppet/bin/r10k deploy environment -p
15 questions
11
votes
1 answer

Why is r10k called r10k?

I am using r10k for a while now. I wonder what r10k means. Questions Why is the tool called r10k? Where does it stand for? Attempts to answer the question Neither the puppet docs, nor the internet indicates where r10k stands for
030
  • 5,731
  • 12
  • 61
  • 107
8
votes
2 answers

What is the equivalent of r10k in Ansible?

Puppet modules like the ones from puppetforge could be deployed using r10k. Question What is the equivalent of this tool in Ansible? Attempt to answer the question This Google Q&A was found that does not answer the question
030
  • 5,731
  • 12
  • 61
  • 107
5
votes
1 answer

Why do some r10k configuration files start their YAML lines with :?

I'm looking at setting up r10k for Puppet deployment, and I have various example r10k.yaml configuration files, but some seem to use an extra : at the start of many lines, for instance, at http://www.rubydoc.info/gems/r10k/1.1.4: --- :cachedir:…
Iain Hallam
  • 447
  • 2
  • 6
  • 21
4
votes
2 answers

r10k: proper merging workflow with git

I am currently running Puppet with in masterless mode. I am using r10k for module and environment deployment. Simplified version: The r10k control repository has two branches: testing and production. Changes in production will be automatically…
M. Glatki
  • 1,868
  • 1
  • 16
  • 33
3
votes
1 answer

Can r10k use a control repository on the local filesystem?

I'm starting to work with R10k for deploying Puppet environments, but I don't want to put our control repo into GitHub, and I don't have a local GitLab server at the moment. I've tried using the following sources stanza: :sources: mysource: …
Iain Hallam
  • 447
  • 2
  • 6
  • 21
2
votes
1 answer

Can't deploy from private git repo using r10k

I'm working on learning to use r10k to deploy my puppet code, and I've run into a snag when trying to deploy from my control repo. The error message I get is: Failed to authenticate SSH session: Unable to extract public key from private key file:…
Jason
  • 23
  • 5
2
votes
1 answer

How do I deploy a specific revision of my puppet code with r10k?

Using r10k to deploy my puppet code. How do I use it to deploy a specific revision? Specifically, my :base repo. Thanks!
cat pants
  • 2,139
  • 10
  • 33
  • 44
2
votes
1 answer

What does r10k provide since Puppet natively supports directory environments?

I'm just starting to read about r10k because I love the fact that it can create dynamic environments based on Git branches. Now, I just read that Puppet can do this without r10k. What does r10k provide that Puppet cannot already do? If I just want…
Progger
  • 253
  • 2
  • 5
1
vote
0 answers

Module not executing with r10k/puppet on masterless system

I was following this guide to set up a masterless puppet machine that could use puppet to manage itself (in a way that would let me add nodes and use this as the master later, but that's irrelevant now). And I have a basic module set up that should…
cclloyd
  • 583
  • 1
  • 13
  • 24
1
vote
1 answer

AWS Opswork puppet does not get github code

I've set up a new AWS Opswork puppetmaster It is supposedly configured with a ssh key that should allow access to github However, it doesn't and fails very early on in the configuration steps. I would like to know if there are any configuration…
Vorsprung
  • 183
  • 6
1
vote
1 answer

Use r10k with separate module repositories

I have a working setup of Puppet with Master and Agent. Now I'm trying to use r10k to manage Puppet code. My goal is that on each git pushof a code change the Puppet code below /etc/puppetlabs/code/environments on the Puppet Master gets updated…
bassjoe
  • 43
  • 1
  • 6
1
vote
2 answers

Unable to pull Puppet Forge modules with r10k

I have what appears to be a functioning r10k setup with respect to publishing branches as environments, but when I run the command to pull modules via sudo /opt/puppetlabs/puppet/bin/r10k deploy environment -p -v I get INFO -> Deploying…
Geoff Johnson
  • 115
  • 2
  • 10
1
vote
1 answer

Does Puppet 4 include Code Manager?

I've been reading about using R10K with Puppet to manage my environments with git. According to this blog some of the functionality of R10K was built into later versions of puppet: Because R10k was so popular and widely deployed, an environment …
Philip Kirkbride
  • 249
  • 2
  • 10
  • 30
1
vote
2 answers

r10k on CEntOS 6.7, has anyone achieved this feat?

Do you guys know how one might run r10k properly on a CEntOS 6.7 server with Puppet 3.6? Is that a contradiction in terms? I checked the r10k source code's list of requirements: https://github.com/puppetlabs/r10k#requirements It looks like it…
Nathan Basanese
  • 321
  • 1
  • 4
  • 19
0
votes
1 answer

Puppet how to access files in /etc/puppetlabs/code

I have some files I want to make accessible to all my R10K branches. I put them in the folder which contains my environments folder at /etc/puppetlabs/code: -/etc/puppetlabs/code - environments/ - modules/ - files/ - file I'm trying to…
Philip Kirkbride
  • 249
  • 2
  • 10
  • 30