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
• 19,610 points

edited Aug 6, 2019 by Karan 1,673 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
• 59,230 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
1,167 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
806 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
1,328 views
0 votes
0 answers
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,502 views
+2 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
• 59,230 points
3,410 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
• 59,230 points
786 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP