Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
fuss:puppet [2020/07/05 02:49] – [Extremely Quick Setup Guide for a Master and an Agent] officefuss:puppet [2021/09/19 09:00] – [Extremely Quick Setup Guide for a Master and an Agent] office
Line 38: Line 38:
     * issue ''puppet cert sign AGENT'' on the master where ''AGENT'' is the configured agent,     * issue ''puppet cert sign AGENT'' on the master where ''AGENT'' is the configured agent,
     * issue ''puppet agent -t --verbose'' from anywhere once again to start provisioning the agent.     * issue ''puppet agent -t --verbose'' from anywhere once again to start provisioning the agent.
 +
 +====== Using Embedded Ruby to Conditionally Set Template Parameters ======
 +
 +As an example, assuming that a server is a dedicated seedbox machine, one would like to switch the TCP congestion protocol to ''lb'' over ''htcp'' or others. The following ERB template branches on the server FQDN and sets the TCP congestion protocol:
 +
 +<code>
 +<% if @fqdn == "media.internal" %>
 +net.ipv4.tcp_congestion_control=lp
 +<% else %>
 +net.ipv4.tcp_congestion_control=htcp
 +<% end %>
 +
 +</code>
 +

fuss/puppet.txt · Last modified: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.