Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update package resource to avoid duplicate declarations. #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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