[Pkg-puppet-devel] d2d679e004fbd73cb7f948828ea7fa947a568dcd
Micah Anderson
micah at riseup.net
Fri Apr 18 18:51:34 UTC 2008
* Sam Quigley <quigley at emerose.com> [2008-04-14 14:05-0400]:
> Hey --
>
> On Apr 14, 2008, at 8:32 AM, Micah Anderson wrote:
>>
>> 4. Finally, I made changes to the LSB headers in the initscripts. I
>> removed a long series of white space after all the headers that
>> probably
>> got put in there from a cut and paste, and was causing update-rc.d to
>> complain that there wasn't actually a LSB header. Secondly I got an
>> email from Sam Quigley who pointed out a problem on Ubuntu gutsy which
>> starts puppet before the network has been fully configured so you get
>> "no route to host" errors on boot. So I added $network and $named to
>> the
>> Required-Start and Required-Stop headers for the puppet initscript;
>> and
>> I put $network in the Should-Start/Should-Stop headers for the
>> puppetmaster. My reasoning was that the network should be there, but
>> if
>> its not, puppetmaster will still run fine.
>>
>> However, I am wondering if maybe the puppet init script should instead
>> have the Should-Start: $network and Should-Stop: $network, and not
>> make
>> it a hard requirement (as the Required-Start does), but an advisable
>> one. I was thinking of the case where I might be with my laptop on the
>> train, with no internet, but I have a local dev puppetmaster running
>> on
>> my laptop and a puppetd that queries my puppetmaster on
>> 127.0.0.1... that seems like a legitimate setup and shouldn't be
>> forbidden (which would be the case if using the Required fields).
>
> I guess the question is whether Requiring $network simply ensures "ifup
> -a" has been called (which would presumably work, even if it didn't do
> anything, on a disconnected machine) -- or if it would actually crap out
> unless the network comes up. I'd have assumed the former, but
> unfortunately, I don't know enough about the header semantics to answer
> the question with any real authority.
> Basically, I'm stuck on trying to figure out if I should be making
> the $network a hard requirement for programs that can work without
> them. This seems like a good candidate for Should-Start/Stop, but we
> are not sure what Requiring $network actually means behind the
> scenes.
It turns out that for a package that should be able to be installed
without netbase being installed, should-* is the correct place to put
$network. But, if it requires netbase to be present to be able to work,
it should put $network in require-*. As most machines have netbase
installed anyway, it does not have much practical effect.
I'm going to keep them in the Required- fields and if that doesn't cut
the mustard, we can revisit the mustard plant.
Micah
ps - I'm planning on an upload soon, as I didn't received any
indications I should wait.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-puppet-devel/attachments/20080418/b8f1637d/attachment.pgp
More information about the Pkg-puppet-devel
mailing list