Skip to content
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

FreeBSD Support #51

Closed
b4ldr opened this issue Sep 4, 2017 · 17 comments
Closed

FreeBSD Support #51

b4ldr opened this issue Sep 4, 2017 · 17 comments

Comments

@b4ldr
Copy link
Member

b4ldr commented Sep 4, 2017

Hello,

Do you still support FreeBSD. I am getting the following error

No facts were found in the FacterDB for: [{:facterversion=>"/\\A2\\.5\\./", :operatingsystem=>"FreeBSD", :operatingsystemrelease=>"/^10/", :hardwaremodel=>"amd64"}]
No facts were found in the FacterDB for: [{:facterversion=>"/\\A2\\.5\\./", :operatingsystem=>"FreeBSD", :operatingsystemrelease=>"/^10/", :hardwaremodel=>"amd64"}]
No examples found.

I am running the following versions

  • facter (2.5.1)
  • facterdb (0.3.12)

Im not too familure with the code of this project however a naive search shows that freebsd facts only exist upto version 2.4. so for now i have added facter < 2.5 to my gemspec as per this comment #44 (comment)

Thanks

@DavidS
Copy link
Contributor

DavidS commented Sep 5, 2017

You analysis is correct. If you have access to FreeBSD systems, you can use the scripts in https://github.com/camptocamp/facterdb/tree/master/facts to gather facts and submit them here for publication.

@b4ldr
Copy link
Member Author

b4ldr commented Sep 5, 2017

I have updated the scripts and created a pull (#53)

which would update the freebsd facts

Thanks

@zachfi
Copy link
Contributor

zachfi commented Sep 5, 2017

Thanks for the FreeBSD update @b4ldr. Looking forward to it.

@zachfi
Copy link
Contributor

zachfi commented Oct 10, 2017

@b4ldr Did you get a FreeBSD box working in #59 ? I'm trying to repllicate part of what you did there, but I can't get an image that works.

@zachfi
Copy link
Contributor

zachfi commented Oct 10, 2017

  config.vm.define "freebsd-11-x86_64" do |host|
    host.vm.box = "bento/freebsd-11.0"
    host.ssh.shell = '/bin/sh'
    host.vm.network :private_network, ip: '10.0.0.2'
    host.vm.synced_folder ".", "/vagrant", :nfs => true
    host.vm.provision "shell", inline: "pkg install -y devel/ruby-gems"
    host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
    host.vm.provision "shell", path: "get_facts.sh"
    host.vm.provision "shell", inline: "/sbin/shutdown -h now"
  end

@b4ldr
Copy link
Member Author

b4ldr commented Oct 10, 2017

@xaque208 the only difference between yours and mine is that i used bento/freebsd-11.1[1]
and a slightly modified get_facts.sh[2]

[1]https://github.com/b4ldr/facterdb/blob/update_vagrant/facts/Vagrantfile#L132
[2]https://github.com/b4ldr/facterdb/blob/update_vagrant/facts/get_facts.sh

@zachfi
Copy link
Contributor

zachfi commented Oct 10, 2017

Oh I kept thinking that the shell provider was failing due to the pkg install, but I didn't think to check get_facts.sh. I'll look again in the evening.

@zachfi
Copy link
Contributor

zachfi commented Oct 11, 2017

@b4ldr See #60. I'm unable to get NFS to mount. It just hangs.

@b4ldr
Copy link
Member Author

b4ldr commented Oct 11, 2017

@xaque208 yes you need root to mount the freebsd shared folder, i have added a comment to your PR with the relevant info. thanks

@zachfi
Copy link
Contributor

zachfi commented Oct 13, 2017

Thanks @b4ldr. I was able to get NFS mount and facter to run. I'll need to look at this again to write the output, which looked like there might be errors on at least some of the versions, but I'll check again.

@zachfi
Copy link
Contributor

zachfi commented Dec 1, 2017

I keep meaning to come back to this. Getting FreeBSD facts updated in this repo is blocking several other PRs that I'm trying to make progress on, I've just not been working on Puppet lately.

@b4ldr
Copy link
Member Author

b4ldr commented Dec 2, 2017

@xaque208 i thought you refactored my pull and had it merged? Let me know if there is something i can help with

@zachfi
Copy link
Contributor

zachfi commented Dec 4, 2017

The code got merged, but I had some vagrant issues I never came back to so the facts themselves never got submitted @b4ldr. Perhaps this week I can take another look at it.

@b4ldr
Copy link
Member Author

b4ldr commented Dec 6, 2017

i have created #68 im getting an error from facter on freebsd 11 (see below) which is prvcenting the script running

root@:~ # facter
Bus error (core dumped)

@zachfi
Copy link
Contributor

zachfi commented Dec 6, 2017

@b4ldr Make sure you set a UTF-8 LANG for the environment, and it should work.

@b4ldr
Copy link
Member Author

b4ldr commented Dec 7, 2017

yes thats seems to have got it

@rodjek
Copy link
Member

rodjek commented Jul 15, 2019

As of #104, we should have up to date factsets for FreeBSD 11 & 12.

@rodjek rodjek closed this as completed Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants