Skip to content
This repository was archived by the owner on Oct 22, 2019. It is now read-only.
This repository was archived by the owner on Oct 22, 2019. It is now read-only.

Aliasing File[ssl_cert] fails when both class {'ldap::server::master':} and class {'ldap':} are defined #15

Description

@strocknar

I have a base_node that has an ldap client definition and an ldap_master node that inherits base_node. With this configuration, I get the following error:

Error: Failed to apply catalog: Cannot alias File[ssl_cert] to ["/etc/ssl/certs/mycert.pem"] at /etc/puppet/modules/ldap/manifests/server/master.pp:199; resource ["File", "/etc/ssl/certs/mycert.pem"] already declared at /etc/puppet/modules/ldap/manifests/init.pp:214

    node base_node {
            class { 'pam::pamd':
                    pam_ldap => true,
            }

            class { 'ldap':
                    uri => 'ldap://ldap_master',
                    base => 'dc=example,dc=com',
                    ssl => true,
                    ssl_cert => 'mycert.pem',
                    nsswitch => true,
                    nss_passwd => 'ou=users',
                    nss_shadow => 'ou=users',
                    nss_group => 'ou=groups',
                    pam => true
            }
    }

    node default inherits base_node {
    }

    node ldap_master inherits base_node {
            class {'ldap::server::master':
                    suffix => 'dc=example,dc=com',
                    rootpw => '',
                    ssl => true,
                    ssl_ca => 'ldap_master.ca',
                    ssl_cert => 'mycert.pem',
                    ssl_key => 'ldap_master.key',
            }
    }

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions