Featured Post

Directory environments in Puppet

Environments are individual groups of Puppet agents each environment have there own completely different manifests and module-paths. This basically is useful for testing changes to our Puppet code before implementing them on production machines. There are two types of implementation of environments structure in Puppet one if directory based and another is config file based here we will see bit of an insight about directory based. As usual for more information about this you can visit puppetlabs official website. On the master node: Append following details in puppet.conf which is placed under /etc/puppet or /etc/puppetlabs/puppet:     Under [main] section add a variable called confdir with value as /etc/puppet or /etc/puppetlabs/puppet     confdir=/etc/puppet Then add information regarding environments/manifests and modulepath in it.      #environments     environmentpath = $confdir/environments     default_manfiest = $confdir/manifests     basemodulepath =

puppet describe???

*Describe sub-command in Puppet "puppet describe"*

The puppet describe sub-command can list info about the currently installed resource types on a given machine.


This is a built in documentation and a great source of information. It helps us to know the behavior of types, their properties and parameters.

"puppet describe -l" — List all of the resource types available on the system.

"puppet describe -s <TYPE>" Print short information about a type, without describing every attribute

"puppet describe <TYPE>" Shows each and every information about the type which you are referring too.

[root@puppet ~]# puppet describe -l
These are the types known to puppet:
augeas          -  Apply a change or an array of changes to the ...
computer        - Computer object management using DirectorySer ...
cron            -  Installs and manages cron jobs
exec            - Executes external commands
file            - Manages files, including their content, owner ...
filebucket      - A repository for backing up files
group           - Manage groups

................
................

[root@puppet ~]# puppet describe -s user

This will show short information about the resource type user.

If in case you want to see each and every infromation about the resource type user which is known to puppet, you can fire below command:

[root@puppet ~]# puppet describe user

Comments

Popular posts from this blog

Exec in Puppet

Un-revoke the revoked certificate in Puppet

Dry run in Puppet --noop