similar to: Using back-ported create_resources in 2.6.x

Displaying 20 results from an estimated 800 matches similar to: "Using back-ported create_resources in 2.6.x"

2013 Jan 11
13
Profiles, Hiera, and create_resources('class','...')
Hi all, We''ve recently started exploring the role / profile / component module described by Craig Dunn in his blog here: http://www.craigdunn.org/2012/05/239/ and discussed on the list the other day. As I was implementing this for a profile using the apache module, I realized that I could make another refinement to our approach by using
2013 Jan 24
4
Dependency Cycle with puppetlabs-mrepo
Hi, I''m gettinng a dependency cycle when using PE 2.7, puppetlabs::mrepo, "role classes" and hiera : I''m trying to mirror RHN repos : # ROLE CLASS > class site::yum_repository{ > > $repos = hiera(''site::yum_repository::repos'') > create_resources(mrepo::repo::rhn, $repos) > } > # HIERA DEFAULTS >
2013 Apr 03
1
Using single hiera hash for two create_resources, and mounting filesystems
I am trying to use the same hiera hash to create the mount point and mounts. (Would be nice if mount could create the mount points using 3.1.1) My plan was to define create_mount_points and use create_resources with the same hash, and just though away what I dont use.... maybe there is a better means? Here is the mount class: class fstab::mounts ( $config = undef ) { $defaults = {
2012 Mar 30
2
Does create_resources support virtual resources?
Hi all, I''m interested pushing my user list out of my users manifest and into Hiera. Unfortunately I haven''t been able to get it to work the way I thought it would. The error suggests that perhaps create_resources cannot create virtual resources, but the docs I''ve read so far don''t address it. The class (in init.pp): class users { $system_users =
2013 Jul 30
2
Failed to parse template, wrong number of arguments (create_resources)
I''m having some issues trying to track down a problem I''m having parsing a simple template, using create_resources and Hiera. Here''s my setup (abridged): ../hieradata/settings.yaml: *global:* * variables:* * env: foo* * * *appSpecific:* * serverName: someServer* ../modules/test/manifests/init.pp: *class test {* * create_resources(test::variables,
2013 Jun 12
2
Executing a script after creating vhosts with create_resources
Hello I''d love a bit of advice in terms of how I should best go about this. I am creating a bunch of vhosts, their definitions are stored in json (I''m using heira) that json file will be generated from data held on another server. I''m just using the puppetlabs apache module and create_resources to then generate all the vhosts and their directories etc. I''m
2012 Jul 20
2
rspec-puppet and create_resources
Using rspec-puppet should I be able to check for resources created as a result of a create_resources call within a class? Regards, Mark -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/bUD_CitDYCAJ. To post to this group, send email to
2013 Mar 08
5
hiera / create_resources / define
I''m trying to use create_resources to create a series of files with semi-custom content based on a template. This is what I have: foo.conf.erb: Name "<%= name %>" WorkingDir "<%= working_dir %>" ... a bunch of static entries YAML: configs: config1: Name: app1 WorkingDir: /var/app1 config2: Name: app2 WorkingDir: /var/app2
2012 Jul 18
1
create_resources function and puppet enc
Hi, I am trying to create multiple users using puppet. I have created a ENC and trying to use class wrapped defined types with create_resources function. For some reason things are falling apart. I would really appreciate some help on these Here are the details about my classes and configuration http://serverfault.com/questions/409001/create-resources-function-and-puppet-enc -- You
2012 Aug 17
5
Hiera, Hashes, and Create_resources
Howdy: I need some help please to get hiera configuration data derived from YAML, thru puppet. I have studied Internet search results and puppet documentation on create_resources and custom defines but need a little help along. I can print out the YAML from variables, arrays, and, finally, hashes too from a puppet manifest. One thing that is stumping me is how to access from the custom define
2012 Nov 15
4
Can I create virtual resources with create_resources function
I am trying to add ability to add virtual users to the git://github.com/erwbgy/puppet-system.git module as I really want the ability to use virtual users and then combine that with "User <| group == ''x'' and group == ''y'' |>" way of realizing the users. This is much more flexible than what I can do with this module out of the box. Using the
2013 Sep 02
0
chaining of create_resources
Hi I am using create_resource to create a dir and then mount it. I am using two create_resources and want one to be completed before other. $mount_point = hiera(''test::mount_point'', []) $defaults = { ''ensure'' => ''directory'', } $mountit = hiera(''test::mountit'') create_resources (file, $mount_point, $defaults)
2006 Sep 06
1
31K failed stat64's when viewing a simple (no db) rhtml page?
I''m trying to help the sys admins of my server figure out what is up with our Rails installation (debian sarge - completely up to date). Hitting a simple page yields 31,000 failed stat64''s and takes anywhere from 8 - 44 seconds. They #! for ruby is correct everywhere, but it''s like it can''t find Rails. These are box stock standard installs. Here''s
2009 Oct 24
5
BUG? $name inside a definition 'method signature' different to within a body ?
If I have something like this: ---------------------------------------- define bar($thing="/tmp/$name") { file { $thing: ensure => present } } class foo { somedef{ "bar": } } ---------------------------------------- puppet will try to create a file called ''/tmp/foo'' , not /tmp/bar. It seems like if I try to access $name inside the ''default
2013 Oct 09
6
Could not retrieve catalog from remote server: Error 400 on SERVER: cannot generate tempfile `/var/lib/puppet/yaml/facts/vagrant1.localdomain.yaml20131009-16545-8oie5i-9'
Hi, i''m a newbie about Puppet( 1 month ~) i got error on generate temp file, i''ll explain my situation: -i have a puppetmaster(version: 3.3.0),executed on root and a puppet agent(version 2.7) provisioning by vagrant,executed on root -my site.pp, where webserv is a parametrized class, and typews is a parameter to choice nginx or lamp module, -i have my Enc node with path
2012 Jan 20
9
client not getting updates no error message
whenever i run a test from client it finishes sucessfully but client is not getting any configuration changes from server [root@PROXY-02 tmp]# puppetd --noop --test notice: Ignoring --listen on onetime run info: Caching catalog for proxy-02.carnation.in info: Applying configuration version ''1327091881'' notice: Finished catalog run in 0.02 seconds [root@PROXY-03 modules]# puppet
2008 Apr 24
4
If/else issues.
Can some one point out to me what I am missing? I suspect I have messed up the if/else some how. I am getting a '' Syntax error at ''{''; expected ''}'' at /srv/puppet/production/manifests/modules/apache/init.pp: 19''. According to the Language tutorial this should be correct. I am testing for an existence of a variable. If it exists chagne the
2013 Oct 15
6
hiera_array, structured data and multiple levels of hierarchy
Hi all! I''m trying to setup a puppet module for sudo that will write multiple files with separate data for each file, all dependent on the hiera hierarchy. Here''s the relevant portion of my hiera.yaml: > :hierarchy: > > - "datacenter/app/role/node/%{::clientcert}" > > - "datacenter/app/role/%{::server_role}" > > -
2012 Jul 04
8
on puppet master server , puppet agent can't connect to itself
on my puppet master server (v 2.7.17 , both server and client version) , the puppet agent can''t connect to itself. other clients connected to this puppet server are working fine. the hostname is puppet.domain.com [root@puppet /]# cat /etc/puppet/puppet.conf [main] # The Puppet log directory. # The default value is ''$vardir/log''. logdir = /var/log/puppet
2012 Mar 28
2
retrieving module directory
Hi everyone, I have a puppet master/client infrastructure setup with apache. When on the same datacenter I don''t have any problem. I am trying to use another datacenter, so I setup the fileserver.conf as followed: # Files in the /path/to/files directory will be served # at puppet:///mount_point/. [modules] allow *.datacenter1 allow *.datacenter2 [plugins]