New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test $::architecture also against values used by Debian/Ubuntu #2
Conversation
@amosshapira thanks for the PR! I booted a couple VMs and you're right about architecture being different. I was using CentOS to test and didn't pick up on this. I just booted a couple Debian 7.x VMs and saw that puppetlabs/debian-7.8-32-nocm
puppetlabs/debian-7.8-64-nocm
Interestingly One use case is to have vmware workstation running inside a VM. I actually do this on a virtualized Jenkins node to automate builds w/ packer. If we switch to Maybe the best way around this is to use the fact
Or switch to the new fact, Thoughts? |
It appears to be an issue specific with Debian 7 - what Facter version do you use? I'd love to switch to the new fact but got the impression that it's only supported in much later versions of Facter and therefore it'll break compatibility with most Facter installations out there. I was about to propose a similar fix before I found
I suppose that's the safest way for now. I'll test this and update my PR. |
I'm using open source puppet from Debian 7's apt repository.
|
I'm not sure how to update the tests. |
Looks like there's a typo on line 83 of init.pp. |
OK, all fixed (and commits squashed). |
There is still the issue that the downloads fail, probably because $::architecture is used in the URL but testing manually with In http://www.hackerway.ch/2015/09/09/how-to-install-vmware-workstation-12-on-ubuntu-14-04-lts/ I found that it just uses a static URL of https://www.vmware.com/go/tryworkstation-linux-64 EDITED - the URL above redirect to /software/wkst/file/VMware-Workstation-Full-12.1.0-3272444.x86_64.bundle, so it's just a matter of mapping the |
OK, with this latest commit I was able to successfully execute:
on Ubuntu 14.04. |
Test $::architecture also against values used by Debian/Ubuntu. This adds support for Debian/Ubuntu.
On Debian based systems,
$::architectrue
is converted toamd64
and fails the test.$::hardwareisa
seems to be more consistent across the board.Ref: http://stackoverflow.com/a/12696802/164137
Both are considered 'Legacy Facts' which should be changed to structured facts in the future.