similar to: Error: Could not find class <class> for <host> on node <host>

Displaying 20 results from an estimated 20000 matches similar to: "Error: Could not find class <class> for <host> on node <host>"

2012 Sep 28
2
nested modules and autoloading
All- I''m using puppet 2.7.14. I''ve reviewed http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html but it doesn''t seem to cover what I''m attempting. Consider a module layout like this: $ tree mymodule mymodule |-- Modulefile |-- README |-- manifests | |-- init.pp | |-- special_type | | `-- prereqs.pp | `-- special_type.pp
2013 Jul 29
2
a different ssh::auth problem
Hi, I am very new to puppet. I installed puppet 3.2.3 (open source) on Debian Wheezy. Everything seems to work fine. Now I want to setup ssh::auth on the puppet master. The documentation states that: "To install ssh::auth, place the file auth.pp<http://projects.reductivelabs.com/attachments/935/auth.pp> (attached to this page) into the ssh/manifests directory in your module path:
2013 Aug 16
4
Learningpuppet
Hi guys, I''m having difficulties with this exercise: "Try wrapping a user resource in a *human::user* type that automatically grabs that personʼs *.bashrc* file from your *site module* and *manages one or more ssh_authorized_key resources* for their account" 1. What''s a "site module"? 2. What am I expected to change in the .bashrc-file? Really thanks in
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/
2012 May 30
12
resource override
hi All, I''m a bit new to puppet. Is there a mailing list for puppet beginners?:) I have a service module called postfix, which defines file in a class: file { ''/etc/postfix/main.cf'': owner => "root", group => "root", mode => 644, content =>
2013 Nov 14
5
Nested parametrized defines
Dear puppet wizards, http://docs.puppetlabs.com/puppet/3/reference/lang_defined_types.html does not suggest to me that nested parametrized defines would be forbidden, hence I expected the following code to work: add_to_ssh_authorized_keys.pp: -------- define a::ssh_keys::add_to_ssh_authorized_keys($homebasedir="/home", $targetuser="root", $keyowner, $keyownername,
2007 Feb 12
8
How to validate puppet manifests without actually executing puppet?
Hi, I want to validate my puppet manifests before I check them into source control. I just want to make sure that the manifest syntaxes are legal, not to do any more complex testing - the checkin may be on my laptop and not on the system that the manifests may be intended to run on. Ideally I''d be able to do this from ruby code - and I did try to instantiate some classes and override
2013 Jan 30
3
Puppet Modules from Forge
Hello all, I have some questions about the download puppet modules from puppetforge: I''ll take puppetlabs-dism as an example, once its installed its located: /etc/puppetlabs/puppet/modules/dism Can this be renamed to something else ? Also if for example, I had a folder tree under modules e.g. /etc/puppetlabs/puppet/modules/windows | |- manifests |--base.pp |--networking.pp Can I
2006 Dec 01
3
"All resource specifications require names": wot?
Hi, everyone -- I downloaded puppet and have been playing with it. I''m using the RPM''s for RHE4 created by David (mentioned on the install page: http://people.redhat.com/dlutter/yum/rhel4/) with RHE''s ruby 1.8.1-7: ruby-1.8.1-7.EL4.8 ruby-libs-1.8.1-7.EL4.8 ruby-devel-1.8.1-7.EL4.8 I''m sure this is an easy one; all the same, I''m stumped. Please
2011 Sep 12
1
Could not match
I am getting a error and do not understand why it is failing. There output is below puppet apply /etc/puppetlabs/puppet/modules/authconfig/tests/init.pp - vvvvvv --noop --debug info: Loading facts in iptables info: Loading facts in serve info: Loading facts in serve info: Loading facts in iptables debug: Executing ''cd /etc/puppetlabs/puppet && git rev-parse HEAD'' debug:
2007 Mar 11
5
Modules Search and Puppet
Hi, I''m not using puppet in a standard way (ie. in a server/client configuration), just the standalone ''puppet --use-nodes'' command. I''m having problems with the directory structure of modules and using the import feature. My directory infrastructure looks like this: /srv/puppet/facter/... /srv/puppet/manifests/site.pp /srv/puppet/manifests/libs/file.pp
2009 Feb 12
9
Schedule oddity
I have the following set up: schedule {nightly: period => daily, range => "18 - 23", repeat => 1 } define deadlypkg { tag("package") $pkgrepo="/staging/PRODUCTION/deadly" package{"$name": source => "$pkgrepo/$name.pkg", ensure => latest, adminfile
2007 Aug 08
9
Modules, modules, everywhere
Hello folks, At Stanford, we use modules to define every possible service, package, feature in the traditional sense (apache, ntp, iptables, etc). Then, for clients (such as other departments) and "services" (such as our mailman infrastructure, our ldap infrastructure, etc), we use manifests in /master/manifests and distributable files in /dist/ and templates in /master/templates.
2012 Oct 22
4
How do design next-gen modules, any guidelines ? a question for gurus...
Hi, My dilemma is how should I write my module to be "next-gen" ? Not from a code point of view but from a design/layout point of view. We wrote our modules for 2.6.x like every beginner would have done: write everything in init.pp. But now, the fashion is to use parameterized classes and Hiera which we will use with puppet 2.7.x. I mainly followed/watched what Example42 was doing.
2012 Jun 27
6
Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type ruby::gemInstall at myFile.pp:82
I have a module located at /etc/puppet/environments/test/modules/ruby. I n this I have a manifests folder with two .pp files - init.pp and gemInstall.pp. In one of my node def files I have: include ruby ruby::gemInstall { ''someGem-version.gem'': path => ''/path/to/agent/local/gem/repo'', } ruby::gemInstall is a define, and it has some logic to get around
2013 Mar 26
5
Running ENC alongside site.pp (node defn)
Hello, Is it possible to configure an ENC to provide class definition to a number of nodes at the same time where a few other nodes are controlled in the site.pp by node ''FQDN'' {blah} for the same puppetmaster ? I am wondering once parameters are set for the master to look for an ENC based definitions, will it conflict with the site.pp node definitions ? For example these
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
2007 Mar 28
3
class imports?
I have a lot of this going on: -- class lighttpd { import "lighttpd.pp" } class mysql { import "mysql.pp" } class nagios { import "nagios.pp" } class netdisco { import "netdisco.pp" } class nfs_server { import "nfs.pp"} class openldap { import "openldap.pp" } -- But my client is trying to realize all of these, even though I
2012 Jun 28
2
Execute a shell script residing in puppet master
I''m a newbie to puppet and have been trying to execute a shell script residing in puppet master machine in a puppet agent, with no luck so far. Would appreciate any ideas on how to do this. -- 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
2010 Sep 16
2
Accumulating values
Greetings I''m searching for an elegant way to contribute lines to an SNMP configuration file from resources scattered throughout a given system''s catalog, such that from anywhere, the SNMP configuration file can be arbitrarily extended like this: $snmp::lines += "proxy -m ${mib_file} -v 2c -c ${snmp_community} localhost:1161 .1.3.6.1.4.1.42.2.145" Forgive me if