similar to: has_template() for choosing between templates

Displaying 20 results from an estimated 80000 matches similar to: "has_template() for choosing between templates"

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
2009 Oct 20
4
any plans to support pkgutil?
Seems that blastwave is all about pkgutil now. Are there any plans to support this? Best, Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to
2009 Oct 29
2
template issue: nested variables?
I need to do something like this node foo { $iface = pcn0 ... } # the template <%= network_<%= iface %> %>/<% netmask_<%= iface %> %> The idea being that a file would be built on the client holding the value of pcn0''s network/netmask Of course, I''m trying to avoid hard coding the interface name in order to keep my code portable. Thanks in advance
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
2013 Feb 20
1
Access puppet hash name in templates
Hi, I''ve defined a hash like so in my nodes.pp: net::addr { "eth5": rt => { rt1 => { address => ''192.168.10.0'', netmask => ''255.255.255.0'', gateway => ''192.5.28.19'', src =>
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
2010 Jul 27
2
Catching failure with templates
So, I’m using templates for the first time and I wanted to test the case where the values used by the template don’t exist. I get an error like this: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template slapd_replication.erb: Could not find value for ''slapd_consumer_rid'' at /etc/puppet/manifests/experimental/services/ldap.pp:141
2013 Sep 18
1
ENC paramater interpolation in ENC, and inline templates
I''m in the process of rolling out a new homegrown ENC (we''ve decided on using an ENC over hiera; I know it''s not the way a lot of you are going, but it''s right for us) and am running into some issues with variable interpolation in ENC data. To give a concrete example, I''m using modules to configure puppetdb, puppet master, and puppet clients. So,
2007 Mar 17
0
Overhaul of Authorized_keys recipe
For those interested in managing authorized_keys for multiple users, I''ve just overhauled my document here: https://reductivelabs.com/trac/puppet/wiki/Authorized_keysRecipe Best, Adam Kosmin windowsrefund on #puppet _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
2011 Sep 22
0
Push out all templates in a directory.
Puppet can push out all files in a directory to the destination client. Is there a way to do the same thing with all templates in a directory? Doug -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to
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
2013 Jul 29
0
puppetlabs-ntp: templates merge, and new features
Hey guys, https://github.com/puppetlabs/puppetlabs-ntp/pull/80 adds some fairly significant changes and so I wanted to put it up for review early before going any further. The big change is that it gets rid of the distro specific templates in favor of one more sophisticated template we can start adding options to and increasing the flexibility of. To that end it adds a bunch of params to handle
2010 Jun 30
1
Problem using the logadm pattern
Hi All I am trying to deploy the Solaris logadm pattern from http://projects.reductivelabs.com/projects/puppet/wiki/Logadm_Patterns. I dropped it in .../lib/puppet/type/logadm.rb However, I am getting an error message: err: Could not run Puppet configuration client: Munging failed for value "puppet" in class backup: Global resource access is deprecated And I have traced it back to
2011 Jul 21
0
Templates and self-knowledge
So, I''m into templating. I *like* templating. What I *don''t* like, of course, is to have to use multiple, similar templates for different output files. So, let''s work a concrete example. Suppose I have a template "standard_profile.erb" which looks like this: install_type initial_install > > system_type standalone > > partitioning
2012 Mar 27
1
Arrays from templates
Hi, I am having an issue trying to use the inline_template function to return an array. This is what I do: $array = inline_template ("<%= a=[''a1'',''b2'',''c3'']; a %>") notify {"array: ${array}":} And that works, showing the typical comma-less string: notice: /Stage[main]//Notify[array: a1b2c3]/message: defined
2012 Feb 12
1
Using templates
Hi everyone, I''m learning Puppet and I want to configure ssh server with different port on different nodes. Puppet v2.7.1 I have created module ssh: content of modules/ssh/manifests/install.pp class ssh::install { package { "ssh": ensure => present, } } content of modules/ssh/manifests/service.pp class ssh::service { service { "ssh": ensure =>
2010 Jul 06
2
%% in templates
Hiya, I''ve recently updated my svn server so that it checks the syntax of .erb files, on commit, along with .pp files. While doing this, I ran across a small but niggling issue and wanted to see if I was just doing something wrong or if it was a bug. In my sudoers template file, I have a number of lines that start along the lines of: %sup ALL=NOPASSWD: ALL %mon ALL=NOPASSWD: ALL
2010 Oct 05
0
Puppet truth, nil and templates
Does Puppet have any genuine concept of truth and nil that survives the interface with Ruby? has_variable? only returns false if a variable has never been assigned a value at all in the enclosing scope; there is no way to assign undef to a regular variable (as opposed to a resource parameter) within a scope and so make it undefined for the template. It would be a very useful thing to be able to
2009 Apr 22
0
Frequent stating of template files
Puppet-dev folks, I think I have found a bug in 0.24.4''s puppetmasterd. I was tracing puppetmaster and found that it was running stat on my template files at a very significant rate. (in the many many hundreds of times/second ballpark). I realize it makes sense for the puppetmaster to look for changes in the configs and templates, but this seemed way out of whack. Has anyone else seen
2012 Nov 01
0
Lookup and scoping of hiera data from erb templates
Hey Folks. Reading through the docs and the mailing list only helped confusing me more, so maybe its better to just ask if my approach is correct. Imagine a basic project structure with a module and two classes inside: modules |- my_module |-frontend |-backend I''m using Hiera to manage dynamic values, so lets say I have: --- backend: foo: bar: "boo" baz: 42