plathrop (owner)

Revisions

gist: 219132 Download_button fork
public
Public Clone URL: git://gist.github.com/219132.git
Embed All Files: show embed
/modules/site/manifests/puppet-client.pp #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class site::puppet-client inherits puppet {
  File["/etc/puppet/puppet.conf"] {
    source => ["puppet:///site/puppet/puppet.conf.$fqdn",
               "puppet:///site/puppet/puppet.conf.$digg_environment",
               "puppet:///site/puppet/puppet.conf"],
    links => follow
  }
 
  File["/etc/puppet/namespaceauth.conf"] {
    content => undef,
    source => ["puppet:///site/puppet/namespaceauth.conf.$fqdn",
               "puppet:///site/puppet/namespaceauth.conf"]
  }
 
  service {
    "puppet":
      enable => true,
      ensure => running,
      hasrestart => true,
      pattern => "puppetd";
  }
}
 
modules/puppet/manifests/init.pp #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class puppet {
  package {
    "puppet": ensure => $puppet_version ? {
      "" => installed,
      default => $puppet_version
    }
  }
 
# package {
# "facter": ensure => $facter_version ? {
# " => installed,
# default => $facter_version
# }
# }
 
  file {
    "/etc/puppet":
      ensure => directory;
    "/etc/puppet/puppet.conf":
      source => "puppet:///puppet/puppet.conf";
    "/etc/puppet/namespaceauth.conf":
      content => template("puppet/namespaceauth.conf.erb");
  }
}
 
puppetmaster logs #
1
2
3
4
5
Oct 26 15:47:20 s0004 puppetmasterd[21938]: importing '/srv/puppet/production/modules/puppet/manifests/init.pp'
Oct 26 15:47:20 s0004 puppetmasterd[21938]: Autoloaded module puppet
Oct 26 15:47:20 s0004 puppetmasterd[21938]: Could not find class parent puppet at /srv/puppet/production/modules/site/manifests/puppet-client.pp:1 on node s0004.digg.internal
Oct 26 15:47:20 s0004 puppetmasterd[21938]: Could not find class parent puppet at /srv/puppet/production/modules/site/manifests/puppet-client.pp:1 on node s0004.digg.internal
 
the error #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl does not exist
debug: Puppet::Type::User::ProviderLdap: true value when expecting false
debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/state/classes.txt]: Autorequiring File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/ssl/certs/s0004.digg.internal.pem]: Autorequiring File[/var/lib/puppet/ssl/certs]
debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/log/puppet/http.log]: Autorequiring File[/var/log/puppet]
debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring File[/var/lib/puppet/ssl/certs]
debug: /File[/var/lib/puppet/ssl/private]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet]
debug: /File[/var/lib/puppet/ssl/public_keys/s0004.digg.internal.pem]: Autorequiring File[/var/lib/puppet/ssl/public_keys]
debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/state/state.yaml]: Autorequiring File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/state/graphs]: Autorequiring File[/var/lib/puppet/state]
debug: /File[/var/run/puppet/puppetd.pid]: Autorequiring File[/var/run/puppet]
debug: /File[/var/lib/puppet/ssl/private_keys/s0004.digg.internal.pem]: Autorequiring File[/var/lib/puppet/ssl/private_keys]
debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
debug: Finishing transaction 70081557795140 with 0 changes
debug: Using cached certificate for ca
debug: Using cached certificate for s0004.digg.internal
notice: Ignoring --listen on onetime run
debug: Loaded state in 0.00 seconds
info: Retrieving plugin
debug: Using cached certificate for ca
debug: Using cached certificate for s0004.digg.internal
debug: Using cached certificate_revocation_list for ca
debug: Format pson not supported for Puppet::FileServing::Metadata; has not implemented method 'from_pson'
debug: Format s not supported for Puppet::FileServing::Metadata; has not implemented method 'from_s'
debug: Finishing transaction 70081556891860 with 0 changes
info: Loading facts in mysql
info: Loading facts in digg_environment
info: Loading facts in digg_mgmt_ip
info: Loading facts in mysql
info: Loading facts in digg_environment
info: Loading facts in digg_mgmt_ip
debug: Format s not supported for Puppet::Resource::Catalog; has not implemented method 'from_s'
/usr/lib/ruby/1.8/puppet/indirector/rest.rb:55:in `deserialize'
/usr/lib/ruby/1.8/puppet/indirector/rest.rb:69:in `find'
/usr/lib/ruby/1.8/puppet/indirector/indirection.rb:198:in `find'
/usr/lib/ruby/1.8/puppet/indirector.rb:51:in `find'
/usr/lib/ruby/1.8/puppet/configurer.rb:94:in `retrieve_catalog'
/usr/lib/ruby/1.8/puppet/util.rb:417:in `thinmark'
/usr/share/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:416:in `thinmark'
/usr/lib/ruby/1.8/puppet/configurer.rb:93:in `retrieve_catalog'
/usr/lib/ruby/1.8/puppet/configurer.rb:140:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:130:in `with_client'
/usr/lib/ruby/1.8/puppet/agent.rb:51:in `run'
/usr/lib/ruby/1.8/puppet/application/puppetd.rb:103:in `onetime'
/usr/lib/ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/usr/lib/ruby/1.8/puppet/application.rb:217:in `run'
/usr/sbin/puppetd:159
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class parent puppet at /srv/puppet/production/modules/site/manifests/puppet-client.pp:1 on node s0004.digg.internal
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run