Bhaskar
Bhaskar

Reputation: 7523

rpm installation using puppet

I am new to Puppet - I have been playing around learning the basics. Most of the examples ( except the very basic ones ) that are on the puppet page do not work for me - either some dependency is missing or package is not found. I do not see the logs explaining what went wrong ( even if I run the --test or --verbose option)

Can anyone clarify

1 What is the simplest process ( set of simple steps ) for installing a rpm package on a single Linux box ?

2 In general - how does one go about using the modules on the forge.puppetlabs ? Are the providers for these packages installed automatically or they have to be manually installed first ?

Upvotes: 1

Views: 5265

Answers (1)

shadyabhi
shadyabhi

Reputation: 17234

To install a package named pacman from command line:

puppet resource package pacman ensure=present

Corresponding puppet code will look like:

package { 'pacman':
  ensure => '4.0.3-5',
}

Explore for more options about the package resource here

Regarding the question of installing puppet modules, have a look here. Official doc is your friend :)

Personally, I just copy-paste the module directory manually in a git repo which I use to maintain my puppet code.

Upvotes: 1

Related Questions