search for: hostclass

Displaying 14 results from an estimated 14 matches for "hostclass".

Did you mean: aotclass
2012 Feb 08
11
define hostclass with special characters
Hi, I need to define the hostclass with special character for ex: "swift::proxy-ring" I have tried following ways but not worked: 1) hostclass :swift::proxy-ring do 2) hostclass ''swift::proxy-ring'' do 3) hostclass "swift::proxy-ring" do When I am using the 2 and 3 options it is giving foll...
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/ ssa_nagios_checks.rb'' in environment production err: Must p...
2010 Dec 09
1
Calling class defines in pure ruby DSL
Let''s say I have a define in class ''foo'' called ''foo::bar'': define foo::bar ($var1, $var2) { ... } Then I have a ruby hostclass hostclass :foo do ... } I see I can successfully set the parameters by doing: environment.known_resource_types.definitions[''foo::bar''].set_arguments :var1 => ''val1'', :var2 => ''val2'' But this raises two problems. 1) foo::bar doesn'...
2012 Jul 05
1
Ruby DSL parameterized classes and defaults
I''ve been reading the Docs on this, and its not very clear. I want to have a parameterized class that takes arrays and objects as parameters. I''m using puppet 2.6.16. I define a hostclass like this: hostclass :test, :arguments => { :param1 => "blah" } do end I call from Puppet DSL: class {"test": } I get this as an error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error NoMethod...
2010 Dec 10
3
Re: [Puppet-dev] Converting to Ruby DSL
..., though, so it''s something that I''m happy to revisit. > 3. Class resource > > I think Dan Bode already raised this as a bug: > > https://projects.puppetlabs.com/issues/5236 > > The following returns an error ''method_missing'': > > hostclass :foo do > notify "bar" > end > node "default" do > hostclass "foo", :stage => "baz" > end > > This is because hostclass has not been defined as a convenience method > it would seem. Just like issues 2 If someone knows...
2010 Jul 22
9
First Foray into Parameterized Classes.... not so good
...acility::sanjose inherits facility::common { class { foo::foobar: version => "1.3.13" } } puppet complains with this on the client: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find parent resource type ''facility::sanjose'' of type hostclass in production at /etc/puppet/modules/facility/manifests/sanjose/logserver.pp:1 on node slog01.pax.xxx.com and this on the server: Syntax error at ''foo::foobar''; expected ''}'' at /etc/puppet/modules/facility/manifests/sanjose.pp:32 on node slog01.pax.xxx.com I su...
2012 Jul 12
15
How can I list classes available on the puppet master?
Is there a way to get a list of all the classes available from the puppet master? I have 2 goals for this - one is documentation in a human readable form, and the other is potentially importing that data into dashboard. I did find some info on the rest API (http://docs.puppetlabs.com/guides/rest_api.html#resource-types ) but I can''t make any sense of the output from it. Thanks.
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
2012 May 22
0
How to define class inheritance with Puppet Ruby DSL
I have a module "Ruby": # init.pp class ruby { package { ''libldap-ruby1.8'': ensure => ''installed'' } } Then I have a manifest written with Ruby-DSL, which should inherit this module: # ldap.rb hostclass ''ruby::ldap'' do (...) end How do I define that *ruby::ldap* inherits *ruby*? -- 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/-/Ze...
2010 Jul 12
13
ANNOUNCE: Puppet 2.6.0 - Release Candidate 2 available!
...uby manifests as equivalent to Puppet’s custom language. That is, you can now have Ruby programs along side your Puppet manifests. As is our custom, it’s a limited first version, but it covers most of the specification functionality of the current language. For instance, here’s a simple ssh class: hostclass :ssh do package "ssh", :ensure => :present file "/etc/ssh/sshd_config", :source => "puppet:///ssh/sshd_config", :require => "Package[ssh]" service :sshd, :ensure => :running, :require => "File[/etc/ssh/sshd_config]" end Similar...
2011 Feb 22
1
ANNOUNCE: Puppet 2.6.5 - Release Candidate 5 available!
...====== f9e2e2b Augmentation of tests for prior commit 392504a Fix to fix for #5755 -- backref serialization issues in zaml a732a15 Fixed #5564 - Added some more fqdn_rand documentation f279f2c Fixed #4968 - Updated list of options turned on by --test in documentation ce5a2bf (#5061) - allow special hostclass/define variables to be evaluated as defaults. fd73874 (#6107) Fix an error when auditing a file with empty content 530496b Remove already initialized constant warning from file_spec.rb tests 76788f8 (#5566) Treat source only File checksums as syntax errors when used with content d657292 Rename vari...
2011 Feb 04
1
ANNOUNCE: Puppet 2.6.5 - Release Candidate 1 available!
...2.6.4 f9e2e2b Augmentation of tests for prior commit 392504a Fix to fix for #5755 -- backref serialization issues in zaml a732a15 Fixed #5564 - Added some more fqdn_rand documentation f279f2c Fixed #4968 - Updated list of options turned on by --test in documentation ce5a2bf (#5061) - allow special hostclass/define variables to be evaluated as defaults. fd73874 (#6107) Fix an error when auditing a file with empty content 530496b Remove already initialized constant warning from file_spec.rb tests 76788f8 (#5566) Treat source only File checksums as syntax errors when used with content d657292 Rename vari...
2011 Feb 04
2
Fwd: [Puppet-dev] ANNOUNCE: Puppet 2.6.5 - Release Candidate 1 available!
...2.6.4 f9e2e2b Augmentation of tests for prior commit 392504a Fix to fix for #5755 -- backref serialization issues in zaml a732a15 Fixed #5564 - Added some more fqdn_rand documentation f279f2c Fixed #4968 - Updated list of options turned on by --test in documentation ce5a2bf (#5061) - allow special hostclass/define variables to be evaluated as defaults. fd73874 (#6107) Fix an error when auditing a file with empty content 530496b Remove already initialized constant warning from file_spec.rb tests 76788f8 (#5566) Treat source only File checksums as syntax errors when used with content d657292 Rename vari...
2006 Dec 01
1
Packages build for Solaris ? As CSW packages ?
..../opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/ast/collexpr.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/ast/component.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/ast/else.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/ast/function.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/ast/hostclass.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/ast/ifstatement.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/ast/leaf.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/ast/node.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser/ast/resourcedef.rb ./opt/csw/lib/ruby/site_ruby/1.8/puppet/parser...