This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
fuss:puppet [2020/06/26 04:30] – office | fuss:puppet [2021/09/19 09:00] – [Extremely Quick Setup Guide for a Master and an Agent] office | ||
---|---|---|---|
Line 34: | Line 34: | ||
* edit ''/ | * edit ''/ | ||
* add '' | * add '' | ||
- | * issue '' | + | * 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 %> | ||
+ | |||
+ | </ |