Skip to content
New issue

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

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

Already on GitHub? # to your account

Duplicate declaration: Jenkins::Plugin[credentials] is already declared #680

Closed
FransUrbo opened this issue Nov 23, 2016 · 1 comment
Closed

Comments

@FransUrbo
Copy link

I'm running with Puppet v3.8.5 and I get Subject when trying to apply my manifest (on my Ubuntu 16.04/LTS with dist puppet).

This manifest works:

class role_jenkins {
    $adm_pw = hiera('jenkins_admin_user', undef)

    package { 'openjdk-9-jdk-headless':
        ensure => installed,
    } ->

    class {'::jenkins':
        version      => latest,
        repo         => true,
        install_java => false,
        executors    => 1,
        user_hash => {
            'admin' => {
                'password' => "$adm_pw",
                'email'    => 'admin@domain.tld'
            }
        },
    }
}

But as soon as I add

plugin_hash => {
    <something,>
    'credentials' => {},
    <something>
}

I get Subj.

Obvious solution is not to enter credentials in the plugin_hash :). So either document this (simple solution) or filter out that when plugin_hash is processed (more complicated/time consuming solution). I'm good with either way, although the second would probably be best :)

@jhoblitt
Copy link
Member

Duplicate of #665

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants