search for: templatewrapp

Displaying 4 results from an estimated 4 matches for "templatewrapp".

Did you mean: templatewrapper
2007 Sep 13
3
Templates and undefined variables
...t 0.23.2, I have a template where I wish to do something like this: <% if defined? some_variable %> .... <% end %> Ideally I''d like to tell these three cases apart: a) defined to a non-empty value b) defined to an empty value c) undefined However case c) causes problems - in templatewrapper.rb::method_missing it causes an error to be thrown. I''ve changed my copy so that it merely warns instead and returns nil. Interestingly the defined? check _never_ succeeeds - it always returns false :( I''ve done some google to see if anyone else has been doing optional bits l...
2011 Nov 18
2
Are tildes actually valid in templates or is this a bug?
...or '';'' ... operatingsystem == "CentOS" ~; _erbout.concat "\nLine 2: Ya... ^ /tmp/puppet/test.erb:4: syntax error, unexpected kEND, expecting $end ; end ~; _erbout.concat "\n" ^ from /usr/lib/ruby/site_ruby/1.8/puppet/parser/templatewrapper.rb:106:in `result'' [STRIPPED OUT STACK TRACE FOR READABILITY] */tmp/puppet$ perl -pi -e ''s/~//'' test.erb* */tmp/puppet$ cat test.erb* Line 1: Line 2 will exist if running on CentOS. <% if operatingsystem == "CentOS" %> Line 2: Yay, we''r...
2012 Jan 23
13
Template Help Please
Hello, I am trying to setup a template with data being passed in as a long string of data which is being returned via extlookup() i.e. $resolvers = "10.10.10.10 11.11.11.11.12.12.12.12" The template should split those up and put a nameserver entry per line in /etc/resolv.conf I have this in the template now:- <%=
2006 Dec 01
1
Packages build for Solaris ? As CSW packages ?
...rce ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/resource/param.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/resource/reference.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/resource.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/scope.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/templatewrapper.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/provider ./opt/csw/lib/ruby/site_ruby/1.8/puppet/provider/group ./opt/csw/lib/ruby/site_ruby/1.8/puppet/provider/group/groupadd.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/provider/group/netinfo.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/provider/group/pw...