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

Could not autoload puppet/type/sensu_filter: uninitialized constant PuppetX::Sensu::ToType #441

Closed
gaga-github opened this issue Oct 28, 2015 · 2 comments

Comments

@gaga-github
Copy link

Trying to add my first filter and I get the above error here is the code (puppet 3.6.2) (sensu-sensu v2.0.0)
Module is the

  sensu::filter { recurrences:
    attributes  => {
      'occurrences' => 'eval: value == 3 || value % 3 == 0'
    }   
  }

Apply it to this handler

  sensu::handler {
      'mailer':
        command => '/etc/sensu/handlers/mailer.rb',
        type    => 'pipe',
        source  => 'puppet:///files/sensu/mailer.rb',
        config  => {
            'admin_gui' => 'http://sensu-master-01.example.net:3000/',
            'mail_from' => 'sensuBot@sensu-master-01.example.net',
            'mail_to'   => 'sensu-alerts@mailman.example.net'
        },
        filters => [
          'recurrences',
        ]
    }
@jlambert121
Copy link
Contributor

Did you upgrade to version 2.0.0? If so, did you restart your puppet master?

@gaga-github
Copy link
Author

restarting the puppet master did the trick, thanks!

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

2 participants