This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
fuss:puppet [2020/07/05 02:49] – [Extremely Quick Setup Guide for a Master and an Agent] office | fuss:puppet [2022/04/19 08:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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 %> | ||
+ | |||
+ | </ | ||
+ |
For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.