Reputation
3,321
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
5 29 60
Impact
~218k people reached

43m
answered Puppet: Cannot find class cron
1h
asked Linux: What is the right way to configure the HOSTNAME directive in /etc/sysconfig/network?
4h
comment Is it possible to sync two linux directories in real time ?
DRBD can be a bit complicated to configure, if you need help configuring it I wrote a nice article: geek-kb.com/install-and-configure-drbd-centos-6
4h
revised How do you change ColdFusion 9 temp directory for uploads (CFFILE)?
fixed formatting and readabilty
4h
reviewed Reviewed Is it possible to sync two linux directories in real time ?
4h
comment Is it possible to sync two linux directories in real time ?
Whilst this may theoretically answer the question, [it would be preferable] to include the essential parts of the answer here, and provide the link for reference.
4h
reviewed Approve New server unable to fetch configuration from Puppetmaster due to some ssl error
4h
answered How to I configure CentOS command sudo su with a password
6h
awarded  Notable Question
22h
accepted Puppet: How to set line order within a file?
22h
comment Puppet: How to set line order within a file?
I've added "@" to dns_list in the erb: Failed to parse template dns_new/resolv.conf.erb: Filepath: /etc/puppet/environments/production/modules/dns_new/templates/resolv.conf.erb Line: 2 Detail: undefined method `each' for nil:NilClass
23h
comment Puppet: How to set line order within a file?
I'm sorry for the mess, I've edited my manifest and template file as you suggested, please check Edit #3, Thanks alot!
23h
revised Puppet: How to set line order within a file?
deleted 1284 characters in body
23h
comment Puppet: How to set line order within a file?
But I need to close the if's... if you look at Edit #1 you can see how my .erb file looks, there are if's there which I believe need to be closed with an "end" as well, am I right?
23h
comment Puppet: How to set line order within a file?
I want everything between the if and the end to be in the same segment... which is why I don't understand how to place the <% end %>'s
23h
comment Puppet: How to set line order within a file?
I've followed your answer but I'm just not sure where to place each <% end %>...
23h
revised Puppet: How to set line order within a file?
added 72 characters in body
1d
revised Puppet: How to set line order within a file?
added 581 characters in body
1d
revised Puppet: How to set line order within a file?
added 2882 characters in body
1d
comment Puppet: How to set line order within a file?
Can you please explain this part: <% dns_order.each |serv| %> ?