similar to: way of importing .pp file or some string that contain class definition in ruby dsl

Displaying 20 results from an estimated 2000 matches similar to: "way of importing .pp file or some string that contain class definition in ruby dsl"

2011 Mar 23
1
Ruby DSL: create_resource with exec
Hi! How to create "exec" resource in ruby DSL? Found mention of create_resource but had no luck in using it =( -- 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 puppet-users+unsubscribe@googlegroups.com. For more
2010 Dec 10
3
Re: [Puppet-dev] Converting to Ruby DSL
On Dec 8, 2010, at 11:09 AM, Ken Barber wrote: > (cross posting here as I originally posted in puppet-users - I figure the question is more of a dev one then for puppet-users) > > Hi everyone, > > I''m experimenting with converting some of my live puppet content to > Ruby DSL and have found a few gaps I wouldn''t mind some advice on. I''m > not sure
2013 Jun 13
0
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: A JSON text must at least contain two octets! at /etc/puppet/manifests/site.pp:4 on node irnode
Hi everyone. I am receiving an error on this line: hiera_include(''classes'') According to documentation here: http://docs.puppetlabs.com/hiera/1/puppet.html#hiera-lookup-functions it seems to the standard way to call hiera_include. Has anyone run into this issue? It only happens after a single puppet run. Thank you Kyle C -- You received this message because you are
2011 Aug 11
6
need urgent help with including Ruby DSL class from puppet manifests
Hi, I have a Ruby class in "nagios" module - it''s located in nagios/ manifests/ssa_nagios_checks.rb and looks like this hostclass :ssa_nagios_checks do ... end In nagios/manifests/init.pp I have class nagios::server { ... include ssa_nagios_checks ... } And I get the following error .... debug: importing ''/etc/puppet/modules/nagios/manifests/
2011 Aug 17
3
Using back-ported create_resources in 2.6.x
Does anyone have some examples of using this create_resources function, https://github.com/puppetlabs/puppetlabs-create_resources, ? Based on the README example I can''t figure out exactly how to change from using defines to using this function. Maybe I misunderstand the purpose of create_resources...is it to replace defines, or is it to allow ENCs (for example) to use a define? Below
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)
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
2013 Aug 21
1
Trouble with ENC and static.pp : enabling ENC fails to find node even with default node in site.pp
I''m having some trouble with getting an ENC to work alongside site.pp: Even with a ''default'' node definition, and an ENC that only returns 0, regardless of input, consistently results in a ''cannot find node'' error. I''m wondering what I''ve missed here. I''ve tried to reduce everything to a ''base case'': and
2006 Aug 10
0
pp in the logs
Hi is there any easy way to apply pp to all the entries in the log files? all those bbunched up arrays and hashes are killing my eyes! If not could someone with a decent amount of knowledge write a plugin that does this? regards c -- Posted via http://www.ruby-forum.com/.
2006 Feb 14
0
Rails puts and pp logs are showing up on browser
Hi, I am using Ruby 1.8.3 and Rails 0.14.2, running on Linux (Fedora) and lighttpd. When there is an exception during RSS parsing or Webservice call, I am getting the error messages shown on the browser. This happens only when there is an exception thrown. This happens only on Linux, not on windows server. lighttpd has write access to the log files. Am I missing some configuration or
2012 Jan 31
0
Command to run the pp file on server to execute on client
Hi, I have installed the Puppet and configured the Client / server set up. I have noticed that when I place any code in site.pp on server machine, that is executed in regular intervals of time and runs the script on client. Is there any command that takes the Client IP as parameter and executes the modules specified on the client. Thanks in advance, Sateesh B. -- You received this message
2012 Apr 12
1
Define node environment on puppet master nodes.pp?
Hello, Is there a way to define an environment for the prospective nodes in nodes.pp (maybe a default node?) I''d like to be able to define it there and then have my puppet module configure the node puppet.conf (erb template) based on the parameters that’s passed on from the master. Possible? Thanks, Will -- You received this message because you are subscribed to the Google Groups
2013 Jul 02
1
How to: In nodes.pp - point "node" to hostnames in a file
I am working on a project that involves host names with now sequence to them. I would like my "node" hostnames in nodes.pp to point to a file with a list of these hostnames. Example: node {path/filename} { instead of the usual: node ''www1.example.com'' { or node /^www\d+$/ { Can this be done? Can anyone show my an example of how this was achieved? Thanks
2009 Feb 04
1
Issue with template.pp
Hi i am creating a template.pp for different OS.. Following is my template.pp file node basenode { case $operatingsystem { fedora: { include fedora } default: { include debian } } include baseapps, sshd, admin, default } <=== line 7 node default inherits basenode {} I receive an error. err: Could not parse for environment production: Syntax error
2010 Oct 12
1
err: Could not retrieve catalog: Could not parse for environment production: Could not find file /etc/puppet/manifests/site.pp warning: Not using cache on failed catalog
I change my ubuntu to mac os, and rsync my puppet file to the puppet server. I run puppetd -tv in the client, and then this error happens puppetd -tv err: Could not retrieve catalog: Could not parse for environment production: Could not find file /etc/puppet/manifests/site.pp warning: Not using cache on failed catalog -- You received this message because you are subscribed to the Google Groups
2005 Apr 15
1
pp-test in timeseries
Test for stationarity (pp-test). In R source code all other command executions I understood, but how I am getting the ssqrtl value ssqrtl <- .C ("R_pp_sum", as.vector(u,mode="double"), as.integer(n), as.integer(l), trm=as.double(ssqru), PACKAGE="ts") please explain the above command. Thanks in advance Ramesh [[alternative HTML version
2003 Jul 21
1
portupgrade -PP needs glasses ?
does anybody have the same problem as I have : (running CURRENT, but the problem occurs on STABLE too) latest portupgrade, ports cvsuped today. fully reproductible with any package... am i missing something ? i hope yes... portinstall -PP teTeX ---> Checking the availability of the latest package of 'print/teTeX' ---> Fetching the package(s) for 'teTeX-2.0.2_2'
2012 Feb 19
1
fully qualified variables and nodes.pp
hi folks, As a response to " Dynamic lookup of $var at is deprecated. Support will be removed in Puppet 2.8. Use a fully-qualified variable name (e.g., $classname::variable) or parameterized classes." warning i''m trying to apply fully-qualified variable name solution following this Doc http://docs.puppetlabs.com/guides/scope_and_puppet.html, but i have a problem with variable
2013 Jun 10
1
cannot using LDAP nodes with site.pp together?
*FROM:* http://projects.puppetlabs.com/projects/puppet/wiki/LDAP_Nodes """* NOTE: You can use node entries in your manifests together with LDAP nodes. External or LDAP nodes will be used before node entries. You cannot however use LDAP nodes and external nodes together. You must use one of these two types.* """ But, in *PRO PUPPET* page 127: """ *Note
2011 Jul 13
2
nodes.pp in different environments
Hi guys I have a small question, I have 3 environments in puppet.conf file: [development] modulepath=/etc/puppet/development/modules manifests=/etc/puppet/development/manifests/site.pp I have defined the site.pp path, my question is do I need to make a nodes.pp for every environment?????? Thanks -- You received this message because you are subscribed to the Google Groups "Puppet