This shows you the differences between two versions of the page.
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] office | fuss:puppet [2021/09/19 09:00] – [Extremely Quick Setup Guide for a Master and an Agent] office | ||
---|---|---|---|
Line 38: | Line 38: | ||
* issue '' | * issue '' | ||
* issue '' | * issue '' | ||
+ | |||
+ | ====== 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 '' | ||
+ | |||
+ | < | ||
+ | <% if @fqdn == " | ||
+ | net.ipv4.tcp_congestion_control=lp | ||
+ | <% else %> | ||
+ | net.ipv4.tcp_congestion_control=htcp | ||
+ | <% end %> | ||
+ | |||
+ | </ | ||
+ |