Run/apply a puppet manifest

puppet apply manifest.pp

Dry run a puppet manifest

puppet apply --noop manifest.pp

Show differences that the dry run will make

puppet apply --noop --show_diff manifest.pp

Show the exact commands puppet is running

puppet apply -d manifest.pp

List all packages installed – in puppet form

puppet resource package

Obtain the puppet code for a package

puppet resource package httpd

Obtain the puppet code for a file

puppet resource file /etc/my.cnf

List available resource types (package, service, file, etc)

puppet describe --list

Manually install a package

puppet resource package httpd ensure=present

Leave a Reply

Your email address will not be published. Required fields are marked *