apps:puppet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
apps:puppet [2019-08-10 19:05] – Extending jens | apps:puppet [2019-08-10 21:20] – grammar jens | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Puppet ====== | ====== Puppet ====== | ||
- | Even if you manage just a handful or two servers, [[https:// | + | Even if you manage just a handful or two of servers, [[https:// |
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. | ||
Line 9: | Line 9: | ||
apt install puppet puppet-master vim-puppet | apt install puppet puppet-master vim-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 git client | + | 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 master. |
As for the main configuration file ''/ | As for the main configuration file ''/ | ||
Line 28: | Line 28: | ||
├── module2 | ├── module2 | ||
│ | │ | ||
- | │ | + | │ |
- | │ | + | │ |
└── moduleX | └── moduleX | ||
├── examples | ├── examples | ||
Line 56: | Line 56: | ||
==== Connecting Clients ==== | ==== Connecting Clients ==== | ||
+ | Of course, your Puppet master will be useless if it only manages itself. To connect clients to your Puppet master, make sure it is reachable on port 8140/TCP (both IPv4 and IPv6 work). | ||
+ | |||
+ | On the client, install Puppet by running '' | ||
+ | |||
+ | < | ||
+ | [agent] | ||
+ | server = your.puppet.server | ||
+ | </ | ||
+ | |||
+ | Afterwards, run '' | ||
+ | |||
+ | < | ||
+ | root@puppet: | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | To accept that certificate just run '' | ||
+ | |||
+ | === Removing clients === | ||
+ | In case you need to remove (decommission) a client, you can list all available certificates with '' | ||
+ | ===== And now? ===== | ||
+ | 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.txt · Last modified: 2019-08-31 17:59 by jens