puppet, puppet-agent, puppet-apply: add page (#6794)

beep
Daniel 2021-10-12 05:05:25 +02:00 committed by GitHub
parent d050330c07
commit 376a838eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 122 additions and 0 deletions

View 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`

View 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
View 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}}`

View 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`

View 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
View 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}}`