On a fresh VM I ran the following:

git clone git://github.com/reductivelabs/puppet.git
cd puppet

I still get the following errors:

[r...@jake puppet]# puppetmasterd --mkuser
/usr/lib/ruby/site_ruby/1.8/puppet/indirector/ssl_file.rb:95:in
`save': Cannot save ca; parent directory /etc/puppet/ssl/ca does not
exist (Puppet::Error)
        from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/key/file.rb:34:in
`save'
        from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/indirection.rb:
257:in `save'
        from /usr/lib/ruby/site_ruby/1.8/puppet/indirector.rb:65:in `save'
        from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:140:in
`generate_key'
        from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/host.rb:170:in
`certificate'
        from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:
233:in `setup'
        from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:
146:in `initialize'
        from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:
23:in `new'
        from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:
23:in `init_singleton_instance'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:92:in `send'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:92:in
`cached_value'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/cacher.rb:48:in
`singleton_instance'
        from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:
37:in `instance'
        from /usr/lib/ruby/site_ruby/1.8/puppet/application/puppetmasterd.rb:
125:in `run_setup'
        from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:216:in `run'
        from /usr/sbin/puppetmasterd:66

So I created the necessary directories:

[r...@jake puppet]# mkdir -p /etc/puppet/ssl/{certs,ca/
{private,signed}}


Then I get:

[r...@jake puppet]# puppetmasterd --mkuser
/usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:705:in
`initialize': Permission denied - /etc/puppet/ssl/ca/ca_key.pem
(Errno::EACCES)
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:705:in
`open'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:705:in
`writesub'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:147:in `withumask'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:704:in
`writesub'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/suidmanager.rb:33:in
`asuser'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:695:in
`writesub'
        from /usr/lib/ruby/site_ruby/1.8/puppet/util/settings.rb:681:in
`write'
        from /usr/lib/ruby/site_ruby/1.8/puppet/indirector/ssl_file.rb:156:in
`write'
         ... 13 levels...
        from /usr/lib/ruby/site_ruby/1.8/puppet/ssl/certificate_authority.rb:
37:in `instance'
        from /usr/lib/ruby/site_ruby/1.8/puppet/application/puppetmasterd.rb:
125:in `run_setup'
        from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:216:in `run'
        from /usr/sbin/puppetmasterd:66

So I chown /etc/puppet/

[r...@jake puppet]# chown puppet:puppet -R /etc/puppet/

Then I get stuck at the following error below.

** Note I do not have a puppet.conf or site.pp, but Luke's branch
worked without those files being present.

[r...@jake puppet]# puppetmasterd --mkuser
/usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:102:in
`register_xmlrpc': uninitialized constant Puppet::Network::Handler
(NameError)
        from /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:101:in
`each'
        from /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:101:in
`register_xmlrpc'
        from /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:69:in
`initialize'
        from /usr/lib/ruby/site_ruby/1.8/puppet/application/puppetmasterd.rb:
62:in `new'
        from /usr/lib/ruby/site_ruby/1.8/puppet/application/puppetmasterd.rb:
62:in `main'
        from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in `send'
        from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:226:in
`run_command'
        from /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:217:in `run'
        from /usr/sbin/puppetmasterd:66

On Apr 24, 11:03 am, James Turnbull <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
>
>
> Luke Kanies wrote:
> > On Apr 24, 2009, at 9:43 AM, James Turnbull wrote:
>
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
>
> >> Brice Figureau wrote:
>
> >>>> If I re-kick the VM (start clean) and clone say git://github.com/
> >>>> lak/puppet.git
> >>>> (Luke's branch) all works as expected.
> >>> Luke's repository is always uptodate :-)
>
> >>> Where did you see the you had to clone the reductlivelabs repository?
> >>> I think we need to edit this page to point to the right repository.
> >> They are all updated together - mine, reductivelabs, github - are all
> >> pushed and kept up to date.
>
> > And I often forget to update my mainline (master and 0.24.x) branches.
>
> Indeed.  Luke's repo is considerably out of date.
>
> Regards
>
> James Turnbull
>
> - --
> Author of:
> * Pro Linux Systems Administration
> (http://www.amazon.com/gp/product/1430219122/)
> * Pulling Strings with Puppet
> (http://www.amazon.com/gp/product/1590599780/)
> * Pro Nagios 2.0
> (http://www.amazon.com/gp/product/1590596099/)
> * Hardening Linux
> (http://www.amazon.com/gp/product/1590594444/)
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (Darwin)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org
>
> iD8DBQFJ8dTX9hTGvAxC30ARAtiCAKDQzv/hINUl/RDDKqtH+M1yAFX+RACgi1Iz
> YeMVLCLc3fbElyMnPA94PEQ=
> =pjNI
> -----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to