apps:puppet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apps:puppet [2019-08-31 15:59] – Fixing messed up headers jens | apps:puppet [2024-05-20 10:15] (current) – [Connecting] Syntax jens | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Installation & Configuration ===== | ===== Installation & Configuration ===== | ||
- | The installation in Debian | + | The installation in Debian is -- as always in Debian -- straight forward. Just run an |
- | + | <code bash> | |
- | apt install | + | apt install puppet-agent puppetserver |
+ | </ | ||
| | ||
- | That last package is not really needed but comes in really handy when editing your Puppet manifests in vim and you want syntax highlighting. While this would be more needed on a [[: | + | That last package is not really needed but comes in really handy when editing your Puppet manifests in vim and you want syntax highlighting. While this would be more needed on a [[: |
As for the main configuration file ''/ | As for the main configuration file ''/ | ||
Line 55: | Line 56: | ||
Of course, before testing your code, you should first run it through '' | Of course, before testing your code, you should first run it through '' | ||
- | ===== Connecting | + | ===== Clients ===== |
- | Of course, your Puppet | + | ==== Connecting |
+ | Of course, your Puppet | ||
- | On the client, install Puppet by running '' | + | On the client, install Puppet by running '' |
- | < | + | < |
[agent] | [agent] | ||
server = your.puppet.server | server = your.puppet.server | ||
</ | </ | ||
- | Afterwards, run '' | + | Afterwards, run '' |
- | + | < | |
- | < | + | root@puppet: |
- | root@puppet: | + | |
" | " | ||
</ | </ | ||
- | To accept that certificate just run '' | + | To accept that certificate just run |
- | ==== Removing | + | puppetserver ca sign --certname < |
- | In case you need to remove (decommission) a client, you can list all available certificates with '' | + | |
+ | and you are good to go. From now on, that system will be managed by your Puppet server. To test this you can run a '' | ||
+ | |||
+ | ==== Removing ==== | ||
+ | In case you need to remove (decommission) a client, you can list all available certificates with | ||
+ | |||
+ | puppetserver ca list --all | ||
+ | |||
+ | and then | ||
+ | |||
+ | puppetserver ca clean --certname | ||
+ | |||
+ | Don't forget to remove that client from backup and monitoring ;-) | ||
====== What next? ====== | ====== What next? ====== | ||
- | Now, it might be a good idea to manage your Puppet code from your workstation using [[:apps:git|git]]. That way you do not need to log in to the Puppet | + | Now, it might be a good idea to manage your Puppet code from your workstation using [[git]]. That way you do not need to log in to the Puppet |
+ | |||
+ | ~~DISCUSSION~~ |
apps/puppet.1567267159.txt.gz · Last modified: 2019-08-31 15:59 by jens