Open corporate-gadfly opened 1 year ago
Worth mentioning that no errors after downgrading puppetserver to version puppetserver-7.11.0-1.el8.noarch.rpm.
If it helps any, looks like net-smtp
is no longer a default gem in Ruby 3.1.
@corporate-gadfly I came across these problems and this issue, and I found a solution.
You'll need the net-smtp
gem installed a puppetserver_gem. You can do this in hiera with stdlib module.
---
classes:
- stdlib
stdlib::manage::create_resources:
package:
net-smtp: {ensure: installed, provider: puppetserver_gem}
Also, this requires an extra path to ruby-load-path
in /etc/puppetlabs/puppetserver/conf.d/puppetserver.conf
.
from:
ruby-load-path: [/opt/puppetlabs/puppet/lib/ruby/vendor_ruby]
to:
ruby-load-path: [/opt/puppetlabs/puppet/lib/ruby/vendor_ruby, /opt/puppetlabs/puppet/cache/lib]
I found this path fix via #102
I tried installing net-smtp package via gem and making the /etc/puppetlabs/puppetserver/conf.d/puppetserver.conf change but it is still failed for me after upgrading to Puppet Server 8.
What did work was getting Puppet to install via gem via a module of mine, not sure why it worked, but it did. $gemreqpacks = ['net-smtp'] package { $gemreqpacks: ensure => present, provider => 'puppetserver_gem', }
Describe the Bug
I wasn't ready to make the move to Puppet 8 yet, however, my yum repository mirror mistakenly showed
puppetserver-8.0.0-1.el8.noarch.rpm
and ayum update
updated the puppet version.Expected Behavior
tagmail
should run with Puppet 8Steps to Reproduce
Steps to reproduce the behavior:
Environment
mod 'puppetlabs-tagmail', '4.1.0'