DeskTux

Linux on Desktops

User Tools

Site Tools


apps:puppet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
apps:puppet [2024-05-20 10:12] – Modernizing, Syntax Highlighting and updates for newer Debian Versions jensapps:puppet [2024-05-20 10:15] (current) – [Connecting] Syntax jens
Line 56: Line 56:
 Of course, before testing your code, you should first run it through ''puppet parser validate'' and ''puppet-lint''. However, this is not a Puppet code manual, you should check their [[https://puppet.com/docs|excellent documentation]] for that. Of course, before testing your code, you should first run it through ''puppet parser validate'' and ''puppet-lint''. However, this is not a Puppet code manual, you should check their [[https://puppet.com/docs|excellent documentation]] for that.
  
-===== Connecting Clients =====+===== Clients ===== 
 +==== Connecting ====
 Of course, your Puppet server will be useless if it only manages itself. To connect clients to your Puppet server, make sure it is reachable on port 8140/TCP (both IPv4 and IPv6 work). Of course, your Puppet server will be useless if it only manages itself. To connect clients to your Puppet server, make sure it is reachable on port 8140/TCP (both IPv4 and IPv6 work).
  
Line 72: Line 73:
 </code> </code>
  
-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 server. To test this you can run a ''puppet agent -t'' on the client.+To accept that certificate just run
  
-==== Removing clients ====+  puppetserver ca sign --certname <client.system.tld> 
 + 
 +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 ''puppet agent -t'' on the client. 
 + 
 +==== Removing ====
 In case you need to remove (decommission) a client, you can list all available certificates with  In case you need to remove (decommission) a client, you can list all available certificates with 
  
Line 86: Line 91:
  
 ====== 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 master all the time to make changes to your code as root.+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 all the time to make changes to your code as root.
  
 ~~DISCUSSION~~ ~~DISCUSSION~~
apps/puppet.1716199938.txt.gz · Last modified: 2024-05-20 10:12 by jens