Bug #7203
closedfusionAgent.cf for ARM
Description
On ARM the dmidecode command don't exist, so the report have a problem. I would like to update /var/rudder/cfengine-community/inputs/inventory/1.0/fusionAgent.cf to add exception on armv7l and armv7l classes.
linux.!xen::
"RUDDERUUID_cmd" string => "/usr/sbin/dmidecode -s system-uuid";
linux.(!xen.!armv6l.!armv7l)::
"RUDDERUUID_cmd" string => "/usr/sbin/dmidecode -s system-uuid";
and add lines to grep "Serial" in /proc/cpuinfo, I can get the value with this bash command : cat /proc/cpuinfo | grep Serial | cut -d ':' -f 2
But I think it's possible to do it in cfengine only , could you help me ? :)
File example:
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 2.00
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2708
Revision : 0010
Serial : 00000000baf500ac
Updated by Francois BAYART about 9 years ago
The 2 /proc/cpuinfo are here if need it
https://gist.github.com/frbayart/62a779aadee72ed2cc2f
Francois BAYART wrote:
On ARM the dmidecode command don't exist, so the report have a problem. I would like to update /var/rudder/cfengine-community/inputs/inventory/1.0/fusionAgent.cf to add exception on armv7l and armv7l classes.
linux.!xen::
"RUDDERUUID_cmd" string => "/usr/sbin/dmidecode -s system-uuid";linux.(!xen.!armv6l.!armv7l)::
"RUDDERUUID_cmd" string => "/usr/sbin/dmidecode -s system-uuid";and add lines to grep "Serial" in /proc/cpuinfo, I can get the value with this bash command : cat /proc/cpuinfo | grep Serial | cut -d ':' -f 2
But I think it's possible to do it in cfengine only , could you help me ? :)
File example:
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 2.00
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7Hardware : BCM2708
Revision : 0010
Serial : 00000000baf500ac
Updated by Francois BAYART about 9 years ago
- Target version set to 3.1.3
- Found in version(s) old 2.10.0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 2.9.6, 2.9.7, 3.0.0, 3.0.0~beta1, 3.0.0~beta2, 3.0.0~rc1, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.1.0~alpha1 added
Updated by Francois BAYART about 9 years ago
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/746
Updated by Francois BAYART about 9 years ago
Francois BAYART wrote:
The 2 /proc/cpuinfo are here if need it
inventory example after the codes update, the MACHINEID is correct:
</AGENTSNAME>
<MACHINEID>0000000066ebabb</MACHINEID>
<CFKEY>-----BEGIN RSA PUBLIC KEY-----
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 3.1.3 to 3.1.4
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 3.1.4 to 3.1.5
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 3.1.5 to 3.1.6
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 3.1.6 to 3.1.7
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.7 to 3.1.8
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.8 to 3.1.9
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.9 to 3.1.10
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.10 to 3.1.11
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.11 to 3.1.12
Updated by Benoît PECCATTE over 8 years ago
- Status changed from New to In progress
- Assignee set to Benoît PECCATTE
I'm taking over this ticket!
Updated by Benoît PECCATTE over 8 years ago
- Status changed from In progress to Pending technical review
- Pull Request changed from https://github.com/Normation/rudder-techniques/pull/746 to https://github.com/Normation/rudder-techniques/pull/970
Updated by Anonymous over 8 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-techniques|8fbf29cd17fd313a09c5b11556e5a023ee76d8ce.
Updated by Alexis Mousset over 8 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 3.1.12 and 3.2.5 which were released today.
- 3.1: Announce Changelog
- 3.2: Announce Changelog
- Download: https://www.rudder-project.org/site/get-rudder/downloads/