Ubuntu cfengine classes impersonate Debian Etch
Bug #111385 reported by
Mike Renfro
This bug report is a duplicate of:
Bug #50789: cfengine2 does not define ubuntu or release specific classes.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cfengine2 (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Binary package hint: cfengine2
cfengine2, version 2.1.20-1 (Ubuntu 7.04 release)
root@ch204b:~# cfagent -n -v -q | grep 'Defined Classes'
Defined Classes = ( ... compiled_
Ubuntu may be able to classify itself as debian on some level, but using debian_4 and debian_4_0 just aren't correct. I'm in the early stages of moving my systems into cfengine, and an etch sources.list ended up on my Ubuntu system during an upgrade from 6.10 to 7.04. So now all my cfengine rules are of the form:
copy:
debian.!ubuntu::
...
after I defined an ubuntu class via:
classes:
ubuntu = ( '/bin/grep -q DISTRIB_ID=Ubuntu /etc/lsb-release' )
To post a comment you must log in.
Looking in src/misc.c, this is totally intended by upstream. They check if the file /etc/debian_version does exist, and setup classes according to that.
to correct fix would be to discuss this issue with upstream, and ask them to do proper dection of ubuntu systems. as interim solution, we can patch src/misc.c according to our needs