apps:puppet
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
apps:puppet [2019-08-10 19:05] – Extending jens | apps:puppet [2019-08-31 17:00] – Modify git link 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 [[:apps:git|git]] |
As for the main configuration file ''/ | As for the main configuration file ''/ | ||
Line 28: | Line 28: | ||
├── module2 | ├── module2 | ||
│ | │ | ||
- | │ | + | │ |
- | │ | + | │ |
└── moduleX | └── moduleX | ||
├── examples | ├── examples | ||
Line 53: | Line 53: | ||
That way, you can easily test the code of that module by using '' | That way, you can easily test the code of that module by using '' | ||
- | 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 ==== | ==== 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 '' | ||
+ | ===== What next? ===== | ||
+ | Now, it might be a good idea to manage your Puppet code from your workstation using [[: |
apps/puppet.txt · Last modified: 2019-08-31 17:59 by jens