Issue #2190 has been updated by khightower.

luke wrote:
> I'm not going to be able to get this fixed for beta1, I think, but it's got 
> easy workarounds (just make the users/groups yourselves).

When not using a "package" to install puppet, I found it necessary to take the 
following steps on a RHEL 5 based server.

*Add the puppet user and group.*
<pre>
[r...@jake ~]# useradd puppet
</pre>
*Create the required SSL directory layout.*
<pre>
[r...@jake ~]# mkdir -p 
/etc/puppet/ssl/{ca/{private,requests,signed},certificate_requests,certs,private_keys,public_keys}
</pre>
*Set all directories under "/etc/puppet" to puppet user and group ownership.*
<pre>
[r...@jake ~]# chown puppet:puppet -R /etc/puppet/
</pre>
*Verify directory structure.*
<pre>
[r...@jake ~]# tree /etc/puppet/ssl/
/etc/puppet/ssl/
|-- ca
|   |-- private
|   |-- requests
|   `-- signed
|-- certificate_requests
|-- certs
|-- private_keys
`-- public_keys

8 directories, 0 files
</pre>


----------------------------------------
Bug #2190: puppetmasterd --mkusers fails to create necessary directories, user, 
and group when run as root
http://projects.reductivelabs.com/issues/2190

Author: khightower
Status: Accepted
Priority: Normal
Assigned to: luke
Category: Red Hat
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.25.0
Keywords: 


I am currently testing puppet from HEAD on a freshly install VM running the 
following

OS: Red Hat Enterprise Linux Server release *5.3* (Tikanga)

*RPMs from Base repo*
ruby-1.8.5-5.el5_2.6

*RPMs from EPEL repos*
augeas-libs : 0.5.0-2.el5
facter: 1.5.4-1.el5
ruby-augeas: 0.2.0-1.el5
ruby-shadow: 1.4.1-7.el5

<pre>
[r...@jake puppet]# puppetmasterd --mkusers
/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
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to