Displaying 3 results from an estimated 3 matches for "real_server".
2011 Apr 06
5
Blank lines in conditional templates
I''m writing ldirectord.cf files via puppet and unfortunately
ldirectord is sensitive to blank lines in the file. I have the
following code in my .erb file
virtual=<%= vip %>:<%= port %>
<% if weights.empty? then -%><% real_servers.each do |real_server| -%>
real=<%= real_server %>:<%= port %> gate
<% end -%><% else -%><% real_servers.zip(weights).each do |
real_server, weight| -%>
real=<%= real_server %>:<%= port %> gate <%= weight %>
<% end -%><% end -%>...
2012 Feb 06
3
Passing class parameters to hiera
I am using puppet 2.6.11 and want to pass parameter for implementing
sudo for mulitple users. So here is my simple code, which I would like
to pass to hiera to specify user name lookup. Appreciate any help,
thanks in advance.
class sudo( $name) {
#Class:: sudo
#
#
package { "sudo": ensure => present, }
file { "/etc/sudoers":
owner => root,
group => root,
2008 Jan 08
8
Shorewall and LVS-NAT (via fwmark) nat'd machines can't access the outside world directly
...T
/etc/shorewall/tcrules
1 0.0.0.0/0 202.45.102.90 tcp 80
/etc/shorewall/rules
ACCEPT all fw:202.45.102.90 tcp 80
My keepalived config is very simple
virtual_server fwmark 1 {
delay_loop 6
lb_algo rr
lb_kind NAT
protocol TCP
real_server 192.168.1.10 80 {
weight 1
TCP_CHECK {
connect_timeout 3
connect_port 80
}
}
real_server 192.168.1.11 80 {
weight 1
TCP_CHECK {
co...