voxpupuli / puppet-letsencrypt

A Puppet module to install the Letsencrypt client and request certificates.
https://forge.puppet.com/puppet/letsencrypt
Apache License 2.0
87 stars 136 forks source link

Unknown resource type: 'ini_setting' #347

Open jerome2710 opened 4 months ago

jerome2710 commented 4 months ago

As a Puppet-beginner I am trying to setup a simple code for managing nginx locations with SSL-certificates on a server. My setup consists of a Puppet server, with a remote repository pushing changes with r10k and for now 1 client fetching its configuration.

After adding mod 'puppet-letsencrypt', '11.0.0' to my Puppetfile, setting up letsencrypt::email and one certificate, puppet agent -t --noop fails with the following message:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'ini_setting' (file: /etc/puppetlabs/code/environments/production/modules/letsencrypt/manifests/config.pp, line: 32, column: 3) on node X

I forgot to check the dependencies from the metadata.json and now added mod 'puppetlabs-inifile', '6.1.1' to my Puppetfile as well. However, after pushing and re-running puppet agent -t --noop, I still get the same result.

In the stated directory of die Puppet server, I can actually see both the letsencrypt and inifile modules;

Scherm­afbeelding 2024-05-13 om 15 43 25

I am probably making a rookie mistake, could someone point me in the right direction?

kenyon commented 4 months ago

Try adding --generate-types to your r10k deploy environment command line.

jerome2710 commented 4 months ago

Try adding --generate-types to your r10k deploy environment command line.

Will do and let you know if the problem reoccurs! Thanks