markt-de / puppet-acme

Centralized SSL certificate management using acme.sh and the ACME protocol
https://forge.puppet.com/markt/acme
Apache License 2.0
9 stars 17 forks source link

NSUPDATE_SERVER - Resource type not found #23

Closed advorkin closed 4 years ago

advorkin commented 4 years ago

Hello,

I'm getting the following error message with below code and would appreciate your assistance.

Thank you.

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Resource type not found: NSUPDATE_SERVER (file: /etc/puppetlabs/code/environments/puppet/site-modules/profiles/manifests/puppetboard.pp, line: 31, column: 13) on node puppet

    class { 'acme':
      accounts => ['myemail@email.com'],
      profiles => {
        nsupdate_example => {
          challengetype => 'dns-01',
          hook          => 'nsupdate',
          env           => {
            NSUPDATE_SERVER => 'dns.example.com'
          },
          options       => {
            dnssleep      => 5,
            nsupdate_id   => 'acme-update',
            nsupdate_type => 'hmac-sha512',
            nsupdate_key  => '`123456',
          }
        }
      }
    }
fraenki commented 4 years ago

Thanks for bringing this to my attention. I've configured everything in Hiera, so I haven't noticed the broken example in the README. It should work if you modify it like this:

          env           => {
            'NSUPDATE_SERVER' => 'dns.example.com'
          },

I couldn't find an explanation for this behaviour.

Can you confirm that it's working now?

advorkin commented 4 years ago

Thank you, that works! I have another question and will submit a different bug report. I appreciate your help.

advorkin commented 4 years ago

Problem solved. Thank you!