Skip to content

trusted is not a hash or array when accessing it with certname at modules/bacula/manifests/params.pp:45 on node #3

Description

@030

Issue occurs when the following has been defined

    class { '::bacula::director': }
    class { '::bacula::console': }
    class { '::bacula::storage': }
    class { '::bacula::client': }

mod 'lightoze/bacula', '0.0.4'

trusted is not a hash or array when accessing it with certname at modules/bacula/manifests/params.pp:45 on node

The snippet that is causing the issue:

  $director_port = 9101
  $director_password = sha1("${trusted['certname']}-dir-${::sshrsakey}")
  $director_queryfile = '/etc/bacula/scripts/query.sql'

Where does trusted come from? sshrsakey is a fact and does not seem to cause the issue as facter returns a key.

Thise issue (https://ask.puppet.com/question/19949/creating-custom-facts-how-to-access-the-trusted-hash/) looks related.

How to solve this issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions