mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
puppet, puppet-agent, puppet-apply: add page (#6794)
This commit is contained in:
parent
d050330c07
commit
376a838eab
6 changed files with 122 additions and 0 deletions
24
pages.de/common/puppet-agent.md
Normal file
24
pages.de/common/puppet-agent.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# puppet agent
|
||||
|
||||
> Ruft die Client-Konfiguration eines Puppetservers ab und setzt diese auf dem System um.
|
||||
> Weitere Informationen: <https://puppet.com/docs/puppet/7/man/agent.html>.
|
||||
|
||||
- Registriere die Node bei einem Puppetserver und wende den empfangenen Katalog an:
|
||||
|
||||
`puppet agent --test --server {{puppetserver_fqdn}} --serverport {{port}} --waitforcert {{poll_zeit}}`
|
||||
|
||||
- Führe den Agenten im Hintergrund aus (nutzt die Einstellungen von `/opt/puppetlabs/puppet/puppet.conf`):
|
||||
|
||||
`puppet agent`
|
||||
|
||||
- Führe den Agenten einmal im Vordergrund aus und beende:
|
||||
|
||||
`puppet agent --test`
|
||||
|
||||
- Führe den Agenten im Dry-Modus aus:
|
||||
|
||||
`puppet agent --test --noop`
|
||||
|
||||
- Protokolliere jede ausgewertete Ressource (selbst wenn sich nichts geändert hat):
|
||||
|
||||
`puppet agent --test --evaltrace`
|
16
pages.de/common/puppet-apply.md
Normal file
16
pages.de/common/puppet-apply.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# puppet apply
|
||||
|
||||
> Wende ein Puppet-Manifest lokal an.
|
||||
> Weitere Informationen: <https://puppet.com/docs/puppet/7/man/apply.html>.
|
||||
|
||||
- Wende ein Manifest an:
|
||||
|
||||
`puppet apply {{pfad/zu/manifest}}`
|
||||
|
||||
- Führe Puppetcode aus:
|
||||
|
||||
`puppet apply --execute {{code}}`
|
||||
|
||||
- Benutze ein bestimmtes Modulverzeichnis und Hiera-Konfigurationsdatei:
|
||||
|
||||
`puppet apply --modulepath {{pfad/zu/ordner}} --hiera_config {{pfad/zu/datei}} {{pfad/zu/manifest}}`
|
21
pages.de/common/puppet.md
Normal file
21
pages.de/common/puppet.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# puppet
|
||||
|
||||
> Puppet bietet Tools an um die Konfiguration von Servern zu automatisieren.
|
||||
> Einige Unterbefehle wie `puppet agent` sind separat dokumentiert.
|
||||
> Weitere Informationen: <https://puppet.com/>.
|
||||
|
||||
- Führe einen Puppet-Unterbefehl aus:
|
||||
|
||||
`puppet {{unterbefehl}}`
|
||||
|
||||
- Gib die installierte Version von Puppet aus:
|
||||
|
||||
`puppet --version`
|
||||
|
||||
- Zeige die generelle Hilfeseite an:
|
||||
|
||||
`puppet --help`
|
||||
|
||||
- Zeige die Hilfeseite eines Unterbefehls an (z.B. `agent`, `apply`, etc.):
|
||||
|
||||
`puppet help {{unterbefehl}}`
|
24
pages/common/puppet-agent.md
Normal file
24
pages/common/puppet-agent.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# puppet agent
|
||||
|
||||
> Retrieves the client configuration from a Puppet server and applies it to the local host.
|
||||
> More information: <https://puppet.com/docs/puppet/7/man/agent.html>.
|
||||
|
||||
- Register a node at a Puppet server and apply the received catalog:
|
||||
|
||||
`puppet agent --test --server {{puppetserver_fqdn}} --serverport {{port}} --waitforcert {{poll_time}}`
|
||||
|
||||
- Run the agent in the background (uses settings from `puppet.conf`):
|
||||
|
||||
`puppet agent`
|
||||
|
||||
- Run the agent once in the foreground, then exit:
|
||||
|
||||
`puppet agent --test`
|
||||
|
||||
- Run the agent in dry-mode:
|
||||
|
||||
`puppet agent --test --noop`
|
||||
|
||||
- Log every resource being evaluated (even if nothing is being changed):
|
||||
|
||||
`puppet agent --test --evaltrace`
|
16
pages/common/puppet-apply.md
Normal file
16
pages/common/puppet-apply.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# puppet apply
|
||||
|
||||
> Apply Puppet manifests locally.
|
||||
> More information: <https://puppet.com/docs/puppet/7/man/apply.html>.
|
||||
|
||||
- Apply a manifest:
|
||||
|
||||
`puppet apply {{path/to/manifest}}`
|
||||
|
||||
- Execute puppet code:
|
||||
|
||||
`puppet apply --execute {{code}}`
|
||||
|
||||
- Use a specific module and hiera config file:
|
||||
|
||||
`puppet apply --modulepath {{path/to/directory}} --hiera_config {{path/to/file}} {{path/to/manifest}}`
|
21
pages/common/puppet.md
Normal file
21
pages/common/puppet.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# puppet
|
||||
|
||||
> Help to manage and automate the configuration of servers.
|
||||
> Some subcommands such as `puppet agent` have their own usage documentation.
|
||||
> More information: <https://puppet.com/>.
|
||||
|
||||
- Execute a Puppet subcommand:
|
||||
|
||||
`puppet {{subcommand}}`
|
||||
|
||||
- Check the Puppet version:
|
||||
|
||||
`puppet --version`
|
||||
|
||||
- Display help:
|
||||
|
||||
`puppet --help`
|
||||
|
||||
- Display help for a subcommand:
|
||||
|
||||
`puppet help {{subcommand}}`
|
Loading…
Add table
Reference in a new issue