Ticket #45 (closed defect: fixed)
default install is "dangerous"
Reported by: | [email protected]… | Owned by: | desai |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | bcfg2-client | Version: | |
Keywords: | init scrip | Cc: |
Description
Currently the default bcfg2 client install "does things" by default, which I consider dangerous. And it bit me this weekend.
To be specific, the /etc/init.d/bcfg2 script is set to run when a machine is rebooted. When it is run, it uses hard-coded options that make it try to sync against the bcfg2 server.
A simple fix can address the desired behavior, and make it non-dangerous by default. Simply add an entry to /etc/default/bcfg2 with something like "INIT_SCRIPT_ARGS = -q -n", and have /etc/init.d/bcfg2 run with "bcfg2 $INIT_SCRIPT_ARGS".
Note that if you include the "-n" in the configuration as part of the standard installation, then it becomes non-dangerous. However, it can easily be modified by the user to actually "do" things.
Resolved in [18200fc366a26e77ab50505abf3020b23e95bfe8] (SVN r1852)