Issue #11511 has been updated by Srikrishna Das.
There is ubuntu specific bug for the same issue? http://projects.puppetlabs.com/issues/6470 ---------------------------------------- Bug #11511: fact "architecture" picks up x86_64 rather than amd64 https://projects.puppetlabs.com/issues/11511#change-54313 Author: Srikrishna Das Status: Investigating Priority: High Assignee: Adrien Thebo Category: library Target version: Keywords: puppet, facter, architecture, amd64 Branch: Affected Facter version: 1.6.2 I have a package resource like this: <pre> package { "xen-hypervisor-4.0": name => "xen-hypervisor-4.0-${::architecture}", ensure => "installed" } </pre> And my puppet client fails with errors <pre> debug: Executing '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n'' debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n'' debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query -W --showformat ${Status} ${Package} ${Version}\n xen-hypervisor-4.0-x86_64' debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install xen-hypervisor-4.0-x86_64' err: /Stage[main]/Xen::Server/Package[xen-hypervisor-4.0]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install xen-hypervisor-4.0-x86_64' returned 100: Reading package lists... Building dependency tree... Reading state information... E: Unable to locate package xen-hypervisor-4.0-x86_64 E: Couldn't find any package by regex 'xen-hypervisor-4.0-x86_64' </pre> The actual package is "xen-hypervisor-4.0-amd64" The fact "architecture" should be resolving to amd64, but it looks like it resolves to x86_64. I was on facter 1.6.3. I also upgraded my facter to 1.6.4 <pre> facter --puppet | grep '\(archit\|facterv\|operatings\)' architecture => amd64 facterversion => 1.6.4 operatingsystem => Debian operatingsystemrelease => 6.0.3 </pre> Doesn't help.. Same error still. I read this: http://projects.puppetlabs.com/projects/facter/wiki Quoting: " Facter 1.6.2: Fix (4980, 6470) Fix architecture in Darwin and Ubuntu Architecture now relies on the hardwaremodel fact unless special cased otherwise, such as for linux distributions that require amd64 as the expected architecture. Ubuntu was added as a special case, OpenBSD was collapsed into the current architecture fact and Darwin was added by removing the kernel confine statement for the architecture fact. " So, I'm guessing this isn't fixed for Debian? -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to puppet-bugs@googlegroups.com. To unsubscribe from this group, send email to puppet-bugs+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.