Could not find template 'solr/solr.sh.erb.epp'

Issue #16 resolved
Former user created an issue

On non-systemd distros, this error shows up:

Evaluation Error: Error while evaluating a Function Call, Could not find template 'solr/solr.sh.erb.epp' (file: /etc/puppetlabs/code/environments/production/modules/solr/manifests/config.pp, line: 89

Comments (3)

  1. Former user Account Deleted reporter

    I'd believe this would be a fix:

    commit c918eb6fab56eeda66b2a8fe400260b8d05479fd
    Author: Chris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
    Date:   Sun Oct 28 18:32:48 2018 +0100
    
        Use correct templating engine
    
    diff --git a/manifests/config.pp b/manifests/config.pp
    index 2109b8b..a676ec7 100644
    --- a/manifests/config.pp
    +++ b/manifests/config.pp
    @@ -86,7 +86,7 @@ class solr::config {
         file { '/etc/init.d/solr':
           ensure  => file,
           mode    => '0755',
    -      content => epp('solr/solr.sh.erb'),
    +      content => template('solr/solr.sh.erb'),
           require => File[$::solr::solr_env],
           before  => Anchor['solr::config::end'],
         }
    
  2. Log in to comment