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, 2019 in Puppet by Karan
• 8,200 points

edited Aug 6, 2019 by Karan 104 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, 2019 by Sirajul
• 46,080 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, 2019 in Puppet by anonymous
49 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, 2019 in Puppet by Shalaka
52 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, 2019 in Puppet by Jason
245 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,400 points
311 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, 2019 in Puppet by Sirajul
• 46,080 points
324 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, 2019 in Puppet by Sirajul
• 46,080 points
68 views