Ask Your Question
0

Question : Module : New to puppet, Needs help in writing a module to copy files from server to agent?

asked 2014-07-29 01:24:57 -0500

thampi_lakshmi gravatar image

Needs help in writing a module to copy files from server to agent?

tried using the module command on my ubuntu puppet server

The answer got for module subcommand

puppet module generate mpower mymodule The program 'puppet' is currently not installed. You can install it by typing: apt-get install puppet

I confirmed that my puppetmaster is running So tried the same with puppetmasterd, response got is below

>

puppetmasterd module generate mpower mymodule

Could not run: Could not create PID file: /var/run/puppet/puppetmasterd.pid

What is the command to be used?

Creation of a module can be done manually too, there was a caution given on json file presense What is that?

edit retag flag offensive close merge delete

Comments

Have installed puppet in agent as suggested.

thampi_lakshmi gravatar imagethampi_lakshmi ( 2014-07-29 04:28:53 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-07-29 02:11:12 -0500

timelord gravatar image

There are two parts of Puppet infrastructure:

  • puppetmaster (server part)
  • puppet (client/agent part)

I assume, you have installed only the puppetmaster part on your Puppet server.

Make sure you have also 'puppet' installed (apt-get install puppet or yum install puppet), and then run:

puppet module generate mpower-mymodule

Please see Prepare the Module for more details.

edit flag offensive delete link more
0

answered 2014-07-29 02:08:52 -0500

Gary Steven gravatar image

apt-get install puppet as recommended by the OS package management system.

There are 2 parts to puppet the master (server) and agent (client).

Once you have installed puppet you can use puppet module generate name-module to create an skeleton module that you can use to write your module.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-07-29 01:24:57 -0500

Seen: 1,038 times

Last updated: Jul 29 '14