puppetmasterd and puppetd on the same box causing problems
Bug #271500 reported by
Joe McDonagh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The puppetmaster package if installed from apt drags down puppet. This is not only unnecessary but it borks the permissions of /var/lib/puppet... to the package maintainer:
puppetd runs as root because it does the actual changing of config files
puppetmasterd runs as user puppet because there is no need for this daemon to have root privileges, it just needs to read some data to pass to the clients (puppets).
I guess puppet used to behave differently prior to this release, but this package looks to be a little messed up here...
To post a comment you must log in.
I revisited this today and I didn't accurately describe the problem in the title. Conceptually it seems correct BUT the code in puppetmasterd does import code from puppet. That being said, the real problem is running puppetmasterd and puppetd on the same box, as in the box is a client to itself. The package(s) is/are configured to do some SSL magic and store files in the same working directory. I think the solution to fix this/these package(s) is to have a couple of things happen:
1. Most importantly, fix the init scripts.
2. Do not make puppetd and puppetmasterd have the same working directories.
3. Might want to do some of those cute ncurses dialogs too during .deb postinstall to determine if this is a puppet client or puppetmaster, if client what is the server name and some other options etc.