Opened 6 years ago
Last modified 43 years ago
#137 new defect
cfengine inputs organisation
| Reported by: | mglb1 | Owned by: | ckb6 |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | ccsd | Version: | HEAD |
| Keywords: | Cc: | jamie@… | |
| Estimated Hours Work: |
Description
The CFengine inputs directory as stored by the configuration system needs reorganising so that inputs for remote machines are not stored in /var/lib/cfengine2/inputs which is used as the local inputs directory for the policy server.
The problem at the moment is that when cfagent on peon (the policy server) runs update.conf copies files from within /var/lib/cfengine2/inputs/cfconf (where the config system puts them) into /var/lib/cfengine2/inputs (where cfagent reads them from). In the process of doing this the permissions on the .svn directory get set to root:root (which cfagent runs as) which then prevents ccsd (running as cfengine) from making further updates to the input directory.
To fix this the directory that ccsd updates should be separate from the directory that cfagent copies the configs to and works from. Moving the config system managed directory to /var/lib/cfengine2/configs or similar would solve this problem. The file location variables in updaet.conf and the other cf.* configuration files will then need to be updated to.
