similar to: %% in templates

Displaying 20 results from an estimated 9000 matches similar to: "%% in templates"

2020 Sep 02
1
help again with dns and samba 4 ad
On 02/09/2020 16:28, Rowland penny via samba wrote: > > On 02/09/2020 16:15, jmpatagonia via samba wrote: >> That mean for example if my domain resolve >> >> ???????????????? xxxxx.testing.mydomain.com >> >> the dnsmasq should NOT resolv? xxxxxx.mydomain.com this is in >> ascending way >> ? >> >> Another way to expose: >> We set
2011 Nov 18
2
Are tildes actually valid in templates or is this a bug?
Hi all, First off, we''re running Puppet 2.7.6 with Ruby 1.8.7 on CentOS 6.0. Now, I''m using tildes in a template to prevent newlines from appearing but ruby/puppet is choking on them. */tmp/puppet$ cat test.erb* Line 1: Line 2 will exist if running on CentOS. <% if operatingsystem == "CentOS" ~%> Line 2: Yay, we''re running CentOS. <% end ~%>
2007 Sep 29
1
templates with same name before extension are cached
Hi all, I was just wondering if this is the intended behavior. Here is my setup: controller def index respond_to do |f| f.xml { render :xml => true } f.html { render :layout => :none } end end In my views I have a file for each type index.herb index.xerb The first request I send is cached and interferes with the other one. For example, if I send an xml request
2010 Aug 31
3
File selection for template() similar to source
I want to be able to have Puppet determine which file to use as the source of a template() call in a manner similar to the source parameter. Basically, I want to have a file resource that will use the most appropriate file for a template. While I can do: file { "file.conf" : source => [ "puppet:///module/file.conf.${hostname}",
2011 Jul 18
1
Vscrepo and templates
Hi there, I''m using an older puppet (0.25) and vcsrepo. I''m trying to do something like this (client-side only, no master involved): vcsrepo { "/svn/checkout/": source => svn://host/path, revision => $revision, ensure => present, provider => "svn" } file { "my_file": path => "/path/to/file", ensure
2007 Sep 04
5
Xml templates...
I was looking in using an xml_builder template to do something like: blee.xerb xml.blees do <% for blee in @blees %> xml.blee = blee.name <% end %> end It looks like the xml_builder template can''t expand the erb tag. It this not the correct way to expand and xml template ? Thanks ! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2000 Dec 23
1
OpenSSH-2.3.0p1 patch for yet another F-secure version
Hi, Here's a problem in openssh, some logs, and a very minor patch that cures this: Issue: (open)ssh client WILL NOT talk to F secure SSH-2.0-2.1.0pl2 client S/W version: openssh-2.3.0p1 client O/S version: SunOS 5.7 Generic_106541-11 sun4u sparc server S/W version: SSH-2.0-2.1.0pl2 server O/S version: SunOS 5.7 Generic_106541-11 sun4u sparc Log/Details: : % telnet <mymachine> 22
2008 Jul 08
1
Processing config files as ERB templates
For various reasons it''s very handy for us to process our mongrel cluster configuration files as ERB templates during start up. I found a post from a couple of years ago on this mailing list about possibly adding that feature. But nothing seemed to come of it. I''d like to submit a request for this feature to be added, but I can''t figure out how to go about it. Is this
2006 Sep 01
5
templates and require
Thanks everyone for your quick responses to my questions. I''m trying to get templates working. I want to pull the template down from the puppet server, then use it. It looks like the require parameter is not being enforced when using the content parameter so the template can''t be found. This doesn''t work: file { "/etc/lighttpd/lighttpd.conf" :
2006 Aug 28
10
Templates and arrays
I''m in the process of documenting templates right now, and I figured I should see what happens when you use them with arrays: $ cat ~/bin/test.pp $values = [this, is, an, array, of, values] $content = template("/tmp/templates/testing.erb") file { "/tmp/temtest": content => $content } $ cat /tmp/templates/testing.erb <% values.each do |val| %> I got
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 -%><%
2011 Nov 04
2
problem with templates
I am having an issue with templates that I cant quite figure out why it is having an issue. I am using ruby dsl to read a template from a database and it keeps having problems with anything other than <%= var %> type definitions. I even went as far cutting and pasting from the puppet online documentation just to see if it were maybe something I goofed. I pasted below the tested template
2006 Sep 20
2
Defining function in template files?
Hi, Is it possible to define a function in a template file? For example, I thought it might be a good idea to define my Debian systems'' /etc/apt/sources.list files based on what level of stability and freeness a system should have. So I have this puppet code: #---------- apt.pp ---------------- define apt-sources-list
2013 Aug 08
1
Failed to parse template - undefined method `to_xs'
Hi I''m getting the following error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template bireportweb/reportdbconfig.xml.erb: Filepath: /data/ss/svn/puppet/modules/bireportweb/templates/reportdbconfig.xml.erb Line: 16 Detail: undefined method `to_xs'' for #<String:0x7f7116858570> This is the line within the
2010 May 03
1
Simple issue with templates.
Hi all, My brain is now officially dead! I have a series of modules that have a tree layout as documented in the "best practice" guide. One of the directories I have is "templates" and in this directory I have placed a template.erb file, however no matter how I refer to the path in my init.pp, I cannot get it to include. I''ve even set "templatedir" to
2010 Jun 30
7
augeas and sudo woes
The following function is based on code I found here in an earlier thread. define sudoer() { augeas { "sudo${name}": context => "/files/etc/sudoers", changes => [ "set spec[last() + 1]/user ${name}", "set spec[last()]/host_group/host ALL", "set spec[last()]/host_group/command NOPASSWD: ALL", "set
2006 Feb 25
2
How do templates get access to controller variables?
This is probably more of a Ruby question than a Rails question. I''ve always wondered exactly how controller instance variables are being made accessible to the ERb code in the views. In the Agile Rails book on pages 38, there''s a sidebar at the top that hints at what''s going on: "Rails does some Ruby magic so that the instance variables of the controller
2007 Aug 29
11
Non-Erubis Templates
Trunk Issue: Because of the use of ''autoload'', template handlers other than Erubis are not loaded automatically (Haml, XMLBuilder). Either this should be fixed, or the documentation should be updated to instruct people how to use non-Erb template engines. Apparently the solution is to do something like this in merb_init.rb: ::Merb::AbstractController.register_engine
2010 Jan 25
1
ActionMailer does not find templates in production mode
Hello everyone, I am currently struggling with the following issue that only seems to appear in my production environment: When attempting to send a mail from an ActionMailer the template location algorithm does not seem to pick up the corresponding template: ActionView::MissingTemplate (Missing template event_mailer/approval_requested_notification.erb in view path app/views):
2013 May 07
2
Foreman and Puppet managing templates question
Hi, I have just started to use Foreman 1.1. I have been using Puppet for a while and have some custom modules and ones that have been dragged down from git etc. I am using nodes.pp in Puppet to assign classes and template entries to hosts. So is Foreman meant to eliminate my need for a nodes.pp? How do I manage my erb templates in Puppet without a nodes.pp? Thanks, -- You received