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