Skip to content

Conversation

@paxri01
Copy link

@paxri01 paxri01 commented Oct 4, 2021

No description provided.

@bodgit
Copy link
Owner

bodgit commented Oct 5, 2021

Where is the duplicate resource coming from?

@paxri01
Copy link
Author

paxri01 commented Oct 5, 2021

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Duplicate declaration: Package[cyrus-sasl-lib] is already declared at (file: /etc/puppetlabs/code/environments/production/modules/sasl/manifests/install.pp, line: 4); cannot redeclare (file: /etc/puppetlabs/code/environments/production/modules/sasl/manifests/application.pp, line: 94) (file: /etc/puppetlabs/code/environments/production/modules/sasl/manifests/application.pp, line: 94, column: 7)

...
## Setup SASL authentication mechanism
include sasl

if ! $sasl_users.empty {
  create_resources('encore_rp::profile::sasl_users', $sasl_users)
}

sasl::application { 'smtpd':
  pwcheck_method => 'auxprop',
  auxprop_plugin => 'sasldb',
  mech_list      => ['plain', 'login'],
  sasldb_path    => '/etc/sasldb2',
}

file { '/etc/sasldb2':
  ensure => 'file',
  owner  => 'root',
  group  => 'postfix',
  mode   => '0640',
}
...

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants