Puppetfile to configure/install a module

0 votes

I'm using R10K, I want to install a puppet module on my master server using a Puppet file.

I have added the following to Puppetfile:

mod 'puppetlabs-certregen', '0.2.0'

I then run puppet agent -t on the server. looks like this is successful, in that the commands in my manifest are run, but when I run puppet certregen healthcheck the module doesn't seem to be installed.

How can I install this puppet module using a puppetfile?

Aug 6 in Puppet by Karan
• 3,630 points

edited Aug 6 by Karan 30 views

1 answer to this question.

0 votes

The Puppetfile is like a Ruby Gemfile, Python requirements.txt: it records dependancies which are then installed by a different tool. 

For Puppetfiles, this is r10k. 

It's archived here https://puppet.com/docs/pe/2018.1/puppetfile.html 

You can likewise straightforwardly download the module with the command line:

puppet module install puppetlabs-certregen
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/Users/petersouter/.puppetlabs/etc/code/modules
└─┬ puppetlabs-certregen (v0.2.0)
  └── puppetlabs-stdlib (v4.17.1)
answered Aug 6 by Sirajul
• 30,540 points

Related Questions In Puppet

0 votes
1 answer

Puppet: How to install a module from a release tarball?

To install a module from a release ...READ MORE

answered Aug 26 in Puppet by anonymous
13 views
0 votes
1 answer

Install LAMP Stack by creating a new module - Puppet

Hey @Ruth, yes you can set up ...READ MORE

answered Mar 11 in Puppet by Shalaka
30 views
0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12 in Puppet by Jason
149 views
0 votes
0 answers
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
180 views
0 votes
1 answer
0 votes
1 answer

How to install and configure r10k in puppet?

In order to get the latest version, ...READ MORE

answered Jul 29 in Puppet by Sirajul
• 30,540 points
89 views
0 votes
1 answer

Configure a node to connect to a PuppetDB

Step 1: Configure SSL: PuppetDB requires client authentication ...READ MORE

answered Aug 2 in Puppet by Sirajul
• 30,540 points
26 views