2025-03-14 21:59:59 -06:00
|
|
|
# puppet
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
> Manage and automate the configuration of servers.
|
|
|
|
|
> Puppet uses a declarative language to define system configurations and apply them automatically.
|
|
|
|
|
> Some subcommands, such as `agent` and `apply`, have their own usage documentation.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://github.com/puppetlabs/puppet/blob/main/references/man/overview.md>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Apply a Puppet manifest file to configure the system:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`puppet apply {{path/to/file.pp}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Apply a manifest in no operation (dry-run) mode to preview changes:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`puppet apply --noop {{path/to/file.pp}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Validate the syntax of a Puppet manifest:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`puppet parser validate {{path/to/file.pp}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Run the Puppet agent to fetch and apply configurations from the master:
|
|
|
|
|
|
|
|
|
|
`puppet agent {{[-t|--test]}}`
|
|
|
|
|
|
|
|
|
|
- Display help for a specific subcommand:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`puppet help {{subcommand}}`
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Display general help:
|
|
|
|
|
|
|
|
|
|
`puppet {{[-h|--help]}}`
|
|
|
|
|
|
|
|
|
|
- Display version:
|
|
|
|
|
|
|
|
|
|
`puppet {{[-V|--version]}}`
|