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-11 07:13] – [Manifests] Fix link jens | apps:puppet [2024-05-20 10:15] (current) – [Connecting] Syntax jens | ||
---|---|---|---|
Line 4: | Line 4: | ||
Somehow, I could not find very many or good manuals on how to set up your own (basic) Puppet server on Debian, so I decided to write my own. | Somehow, I could not find very many or good manuals on how to set up your own (basic) Puppet server on Debian, so I decided to write my own. | ||
- | ==== 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 [[git]] client it also is nice to have on the Puppet | + | 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 [[:apps:git|git]] client it also is nice to have on the Puppet |
As for the main configuration file ''/ | As for the main configuration file ''/ | ||
- | ==== Manifests ==== | + | ===== Manifests |
Your manifests should be in ''/ | Your manifests should be in ''/ | ||
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 |
+ | |||
+ | puppetserver ca sign --certname <client.system.tld> | ||
+ | |||
+ | and you are good to go. From now on, that system will be managed by your Puppet | ||
+ | |||
+ | ==== 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 ;-) | ||
- | === Removing clients | + | ====== What next? ====== |
- | In case you need to remove (decommission) a client, you can list all available certificates with '' | + | 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 server |
- | ===== And now? ===== | + | ~~DISCUSSION~~ |
- | 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 master all the time to make changes to your code as root. | + |
apps/puppet.1565507632.txt.gz · Last modified: 2019-08-11 07:13 by jens