just starting with Puppet, really new to this world.
I have
In Master have one module:
puppet module list
/etc/puppet/modules
âââ mstanislav-yum (v1.0.0)
So I want to apply same module to my puppet client but I can't or I don't know why
root@puppetclient: puppet agent --test
Info: Retrieving plugin
Info: Caching catalog for puppetclient
Info: Applying configuration version '1355737643'
Finished catalog run in 0.10 seconds
but there are not any changes to the client :-/
Any idea?
The puppet module install command installs a module and all of its dependencies. You can install modules from the Forge, a module repository, or a release tarball. By default, this command installs modules into the first directory in the Puppet modulepath, which defaults to $codedir/environments/production/modules .
To create a module, you must create a directory (whose name matches your module name) in Puppet's modules directory, and it must contain a directory called manifests , and that directory must contain an init. pp file. The init. pp file must only contain a Puppet class that matches the module name.
Puppet apply is an application that compiles and manages configurations on nodes. It acts like a self-contained combination of the Puppet primary server and Puppet agent applications.
To create a class in your module, use the pdk new class command. The pdk new class command creates a class manifest file, with the naming convention class_name. pp , and a test file. To create the module's main class, defined in an init.
You haven't declared the module (assigned it to your node) yet...
Add this to site.pp:
node 'fqdn of client' {
include yum
}
Then, you can run puppet agent -t
to see it in action.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With