Skip to content

Instantly share code, notes, and snippets.

@kleinmann
Created January 21, 2013 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kleinmann/4586617 to your computer and use it in GitHub Desktop.
Save kleinmann/4586617 to your computer and use it in GitHub Desktop.
puppet not finding a class
node /^test\..+\.test\.net$/ inherits default {
class { 'ldap':
server => true,
client => true,
ssl => true,
}
ldap::define::domain { 'test.net':
basedn => 'dc=test,dc=net',
rootdn => 'cn=root',
rootpw => '123',
}
ldap::client::config { 'test.net':
ensure => 'present',
servers => ['ldap.test.com'],
ssl => true,
base_dn => 'ou=people,dc=test,dc=net',
}
}
Info: Loading facts in /tmp/vagrant-puppet/modules-0/firewall/lib/facter/iptables.rb
Info: Loading facts in /tmp/vagrant-puppet/modules-0/ldap/lib/facter/ldapserver.rb
Info: Loading facts in /tmp/vagrant-puppet/modules-0/postgresql/lib/facter/postgres_default_version.rb
Info: Loading facts in /tmp/vagrant-puppet/modules-0/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in /tmp/vagrant-puppet/modules-0/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /tmp/vagrant-puppet/modules-0/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in /tmp/vagrant-puppet/modules-0/stdlib/lib/facter/root_home.rb
Debug: importing '/tmp/vagrant-puppet/manifests/general.pp' in environment production
Debug: importing '/tmp/vagrant-puppet/manifests/nodes.pp' in environment production
Debug: importing '/tmp/vagrant-puppet/manifests/nodes/default.pp' in environment production
Debug: importing '/tmp/vagrant-puppet/manifests/nodes/test.pp' in environment production
Debug: importing '/tmp/vagrant-puppet/modules-0/ldap/manifests/init.pp' in environment production
Debug: Automatically imported ldap from ldap into production
Debug: hiera(): Hiera YAML backend starting
Debug: hiera(): Looking up ldap::ssl_ca in YAML backend
Debug: hiera(): Looking for data source ldap
Debug: hiera(): Looking for data source common
Debug: hiera(): Looking up ldap::ssl_cert in YAML backend
Debug: hiera(): Looking for data source ldap
Debug: hiera(): Looking for data source common
Debug: hiera(): Looking up ldap::ssl_key in YAML backend
Debug: hiera(): Looking for data source ldap
Debug: hiera(): Looking for data source common
Debug: importing '/tmp/vagrant-puppet/modules-0/stdlib/manifests/init.pp' in environment production
Debug: Automatically imported stdlib from stdlib into production
Debug: importing '/tmp/vagrant-puppet/modules-0/stdlib/manifests/stages.pp' in environment production
Debug: Automatically imported stdlib::stages from stdlib/stages into production
Debug: importing '/tmp/vagrant-puppet/modules-0/ldap/manifests/params.pp' in environment production
Debug: Automatically imported ldap::params from ldap/params into production
Debug: hiera(): Looking up ldap_rootpw in YAML backend
Debug: hiera(): Looking for data source ldap
Debug: hiera(): Found ldap_rootpw in ldap
Debug: importing '/tmp/vagrant-puppet/modules-0/ldap/manifests/define/domain.pp' in environment production
Debug: Automatically imported ldap::define::domain from ldap/define/domain into production
Debug: importing '/tmp/vagrant-puppet/modules-0/ldap/manifests/client/config.pp' in environment production
Debug: Automatically imported ldap::client::config from ldap/client/config into production
Debug: importing '/tmp/vagrant-puppet/modules-0/ldap/manifests/server/config.pp' in environment production
Debug: Automatically imported ldap::server::config from ldap/server/config into production
Debug: importing '/tmp/vagrant-puppet/modules-0/ldap/manifests/server/rebuild.pp' in environment production
Debug: Automatically imported ldap::server::rebuild from ldap/server/rebuild into production
Debug: Failed to load library 'selinux' for feature 'selinux'
Debug: Scope(Ldap::Define::Domain[test.net]): Retrieving template ldap/server/openldap/domain_template.erb
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/domain_template.erb]: Bound template variables for /tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/domain_template.erb in 0.00 seconds
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/domain_template.erb]: Interpolated template /tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/domain_template.erb in 0.00 seconds
Debug: importing '/tmp/vagrant-puppet/modules-0/ldap/manifests/server/service.pp' in environment production
Debug: Automatically imported ldap::server::service from ldap/server/service into production
Debug: Scope(Ldap::Define::Domain[test.net]): Retrieving template ldap/server/openldap/DB_CONFIG.erb
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/DB_CONFIG.erb]: Bound template variables for /tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/DB_CONFIG.erb in 0.00 seconds
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/DB_CONFIG.erb]: Interpolated template /tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/DB_CONFIG.erb in 0.00 seconds
Debug: Scope(Ldap::Define::Domain[test.net]): Retrieving template ldap/server/openldap/base.ldif.erb
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/base.ldif.erb]: Bound template variables for /tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/base.ldif.erb in 0.00 seconds
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/base.ldif.erb]: Interpolated template /tmp/vagrant-puppet/modules-0/ldap/templates/server/openldap/base.ldif.erb in 0.00 seconds
Debug: Scope(Ldap::Client::Config[test.net]): Retrieving template ldap/client/common/nss_pam_ldap.conf.erb
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/common/nss_pam_ldap.conf.erb]: Bound template variables for /tmp/vagrant-puppet/modules-0/ldap/templates/client/common/nss_pam_ldap.conf.erb in 0.00 seconds
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/common/nss_pam_ldap.conf.erb]: Interpolated template /tmp/vagrant-puppet/modules-0/ldap/templates/client/common/nss_pam_ldap.conf.erb in 0.00 seconds
Debug: Scope(Ldap::Client::Config[test.net]): Retrieving template ldap/client/common/ldap.conf.erb
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/common/ldap.conf.erb]: Bound template variables for /tmp/vagrant-puppet/modules-0/ldap/templates/client/common/ldap.conf.erb in 0.00 seconds
Debug: importing '/tmp/vagrant-puppet/modules-0/ldap/manifests/client.pp' in environment production
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/common/ldap.conf.erb]: Interpolated template /tmp/vagrant-puppet/modules-0/ldap/templates/client/common/ldap.conf.erb in 0.01 seconds
Debug: Scope(Ldap::Client::Config[test.net]): Retrieving template ldap/client/debian/pam-nss-base.conf.erb
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam-nss-base.conf.erb]: Bound template variables for /tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam-nss-base.conf.erb in 0.00 seconds
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam-nss-base.conf.erb]: Interpolated template /tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam-nss-base.conf.erb in 0.00 seconds
Debug: Scope(Ldap::Client::Config[test.net]): Retrieving template ldap/client/debian/libnss-ldap.conf.erb
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/libnss-ldap.conf.erb]: Bound template variables for /tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/libnss-ldap.conf.erb in 0.00 seconds
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/libnss-ldap.conf.erb]: Interpolated template /tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/libnss-ldap.conf.erb in 0.00 seconds
Debug: Scope(Ldap::Client::Config[test.net]): Retrieving template ldap/client/debian/pam-nss-base.conf.erb
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam-nss-base.conf.erb]: Bound template variables for /tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam-nss-base.conf.erb in 0.00 seconds
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam-nss-base.conf.erb]: Interpolated template /tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam-nss-base.conf.erb in 0.00 seconds
Debug: Scope(Ldap::Client::Config[test.net]): Retrieving template ldap/client/debian/pam_ldap.conf.erb
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam_ldap.conf.erb]: Bound template variables for /tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam_ldap.conf.erb in 0.00 seconds
Debug: template[/tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam_ldap.conf.erb]: Interpolated template /tmp/vagrant-puppet/modules-0/ldap/templates/client/debian/pam_ldap.conf.erb in 0.00 seconds
Debug: Adding relationship from Stage[runtime] to Stage[setup_infra] with 'before'
Debug: Adding relationship from Stage[setup_infra] to Stage[deploy_infra] with 'before'
Debug: Adding relationship from Stage[deploy_infra] to Stage[setup_app] with 'before'
Debug: Adding relationship from Stage[setup_app] to Stage[deploy_app] with 'before'
Debug: Adding relationship from Stage[deploy_app] to Stage[deploy] with 'before'
Debug: Adding relationship from Anchor[ldap::begin] to Anchor[ldap::begin::client] with 'before'
Debug: Adding relationship from Anchor[ldap::begin::client] to Anchor[ldap::end::client] with 'before'
Debug: Adding relationship from Anchor[ldap::end::client] to Anchor[ldap::begin::server] with 'before'
Debug: Adding relationship from Anchor[ldap::begin::server] to Anchor[ldap::end::server] with 'before'
Debug: Adding relationship from Anchor[ldap::end::server] to Anchor[ldap::end] with 'before'
Debug: File[/tmp/openldap/domains.d/test.net.conf]: Adding default for owner
Debug: File[/tmp/openldap/domains.d/test.net.conf]: Adding default for group
Debug: File[/tmp/openldap/domains.d/test.net.conf]: Adding default for require
Debug: File[/tmp/openldap/domains.d/test.net.conf]: Adding default for before
Debug: File[/etc/ldap/domains/test.net.conf]: Adding default for owner
Debug: File[/etc/ldap/domains/test.net.conf]: Adding default for group
Debug: File[/etc/ldap/domains/test.net.conf]: Adding default for require
Debug: File[/etc/ldap/domains/test.net.conf]: Adding default for before
Debug: File[/etc/ldap/domains/test.net-acl.conf]: Adding default for owner
Debug: File[/etc/ldap/domains/test.net-acl.conf]: Adding default for group
Debug: File[/etc/ldap/domains/test.net-acl.conf]: Adding default for require
Debug: File[/etc/ldap/domains/test.net-acl.conf]: Adding default for before
Debug: File[/var/lib/ldap/test.net]: Adding default for require
Debug: File[/var/lib/ldap/test.net]: Adding default for before
Debug: File[/var/lib/ldap/test.net/DB_CONFIG]: Adding default for owner
Debug: File[/var/lib/ldap/test.net/DB_CONFIG]: Adding default for group
Debug: File[/var/lib/ldap/test.net/DB_CONFIG]: Adding default for require
Debug: File[/var/lib/ldap/test.net/DB_CONFIG]: Adding default for before
Debug: File[/var/lib/ldap/test.net/base.ldif]: Adding default for group
Debug: File[/var/lib/ldap/test.net/base.ldif]: Adding default for require
Debug: File[/var/lib/ldap/test.net/base.ldif]: Adding default for before
Debug: File[/etc/ldap.conf]: Adding default for owner
Debug: File[/etc/ldap.conf]: Adding default for group
Debug: File[/etc/ldap.conf]: Adding default for mode
Debug: File[/etc/ldap/ldap.conf]: Adding default for owner
Debug: File[/etc/ldap/ldap.conf]: Adding default for group
Debug: File[/etc/ldap/ldap.conf]: Adding default for mode
Debug: File[/etc/libnss-ldap.conf]: Adding default for owner
Debug: File[/etc/libnss-ldap.conf]: Adding default for group
Debug: File[/etc/libnss-ldap.conf]: Adding default for mode
Debug: File[/etc/pam_ldap.conf]: Adding default for owner
Debug: File[/etc/pam_ldap.conf]: Adding default for group
Debug: File[/etc/pam_ldap.conf]: Adding default for mode
Debug: Creating default schedules
Error: Could not find dependency Class[Ldap::Server::Config] for File[/tmp/openldap/domains.d/test.net.conf]
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment