Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with running the sensu module, Invalid resource type sensu at /root/p_sensu/site.pp:4 on node #25

Closed
chaoranxie opened this issue Feb 28, 2013 · 5 comments

Comments

@chaoranxie
Copy link
Contributor

I am trying to use Puppetfile to download and install sensu server but got the following error, any help is greatly appreciated. thanks

Debug: importing '/root/p_sensu/modules/sensu/manifests/init.pp' in environment production Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type sensu at /root/p_sensu/site.pp:4 on node myvmname

The command i ran was

cd /root/p_sensu/ ; puppet apply --modulepath=/root/p_sensu/modules site.pp --ignorecache --verbose --noop --debug

i do see that the modules are in the right path

[root@chao-test8 p_sensu]# ls /root/p_sensu/modules/
apt gcc rabbitmq redis sensu stdlib wget

@jlambert121
Copy link
Contributor

What does your site.pp look like?

@chaoranxie
Copy link
Contributor Author

i copied off the README file, it seems that there has been a lot of change to the repo, i think it has been refracted so the following content might needs to be updated too

node "sensu-server.foo.com" { sensu { "${::fqdn}-sensu-server": rabbitmq_password => "secret", server => true, plugins => [ 'puppet:///data/sensu/plugins/ntp.rb', 'puppet:///data/sensu/plugins/postfix.rb' ]}

sensu::check { "check_ntp":
command => 'PATH=$PATH:/usr/lib/nagios/plugins check_ntp_time -H pool.ntp.org -w 30 -c 60',
handlers => "default",
subscribers => "sensu-test"
}
}

@jlambert121
Copy link
Contributor

There has been a ton of refactoring, yeah, and the readme on the master branch is not 100% representative of the code that is in master. The plugins parameter was added to the readme around an hour ago - is that what you currently have in your site.pp we're debugging?

@chaoranxie
Copy link
Contributor Author

sorry i dont have the site.pp anymore, i copy the snippet from yesterday README file. i guess i will wait some time for the repo to stabilize. Thanks

@jamtur01
Copy link
Contributor

Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants