covermymeds / puppet-sentry

Install and manage Sentry with Puppet!
MIT License
7 stars 7 forks source link

Unable to compile catalog on puppet4.4 master #29

Open cloudsurf-digital opened 8 years ago

cloudsurf-digital commented 8 years ago

Hi,

for some reason i dont know, the puppetmaster is unable to compile the catalog: my hiera is like README.md:

sentry::admin_email:     'ops@xxxx'
sentry::admin_password:  'xxxxxxxx'
sentry::db_password:     'xxxxxxx'
sentry::ldap_domain:     'xxxxxx'
sentry::organization:    'my company'
sentry::path:            '/data/sentry'
sentry::secret_key:      '65f438e2343433434330a52c3140411'
sentry::version:         '8.5.1'
sentry::sentry_vhost:    'sentry-ezone.XXXX.com'
sentry::team:            'WebApplications'

my profile is nearly default

  include ::sentry
  Class['profile_ezonesentry_postgresql'] ->
    Class['::sentry']

But

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::Compiler failed with error NoMethodError: undefined method `downcase' for nil:NilClass on node sentry01-****

For me it seems like the vars in define manifests/source/project.pp are Nil

  $proj = downcase($project)
  $o = downcase($organization)
  $t = downcase($team)
  $p = uriescape("${o}-${t}-${proj}")

Any ideas?

Btw. if i try a local puppet apply on centos7 it works seemless

dansajner commented 8 years ago

The downcase method is in stdlib. What version of stdlib are you using? https://github.com/puppetlabs/puppetlabs-stdlib#downcase

cloudsurf-digital commented 7 years ago

@dansajner : no, this is more related to downcase from ruby string class (https://tickets.puppetlabs.com/browse/PDB-2649) and for me its seems like your using external resources with empty tag values !?!

benh57 commented 7 years ago

This happens for us, too, i suspect it's related to having zero projects exported. To work around it i just commented out the functionality in server/collect.pp.