Skip to content

Update package resource to avoid duplicate declarations.#19

Open
paxri01 wants to merge 2 commits into
bodgit:masterfrom
EncoreTechnologies:master
Open

Update package resource to avoid duplicate declarations.#19
paxri01 wants to merge 2 commits into
bodgit:masterfrom
EncoreTechnologies:master

Conversation

@paxri01

@paxri01 paxri01 commented Oct 4, 2021

Copy link
Copy Markdown

No description provided.

@bodgit

bodgit commented Oct 5, 2021

Copy link
Copy Markdown
Owner

Where is the duplicate resource coming from?

@paxri01

paxri01 commented Oct 5, 2021

Copy link
Copy Markdown
Author

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