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

Add FreeBSD platform support #126

Closed
wants to merge 3 commits into from
Closed

Conversation

olevole
Copy link

@olevole olevole commented Jul 8, 2019

Pull Request (PR) description

Add FreeBSD platform support

@ghoneycutt ghoneycutt added the needs-work not ready to merge just yet label Jul 9, 2019
@ghoneycutt
Copy link
Member

Awesome work @olevole

This needs FreeBSD added to the metadata.json file which should trigger it being added to the tests. It should also be added to the README under Limitations.

https://github.com/voxpupuli/puppet-telegraf#limitations

@olevole
Copy link
Author

olevole commented Jul 9, 2019

@ghoneycutt done

@ghoneycutt
Copy link
Member

Ugh, the spec tests on travis do not show the actual tests. Ran locally and it seems that on_supported_os() in the spec tests is not testing against FreeBSD. @alexjfisher @bastelfreak any ideas?

@olevole
Copy link
Author

olevole commented Jul 9, 2019

it seems that TravisCI still does not support FreeBSD

@smortex
Copy link
Member

smortex commented Jul 9, 2019

Note

Using the documentation formatter in the CI test suite output would help in figuring out which tests are run and not run.

on_supported_systems loads facts from the targetted systems and exercise the classes, so no matter what is the OS running the code: FreeBSD facts can be used to run the code on a Linux host.

The problem here seems to be that on_supported_os expect a precise version of the facts (facterversion: '3.6'), but facterdb does not have FreeBSD facts for this version:
https://github.com/camptocamp/facterdb/tree/master/facts/3.6

@ghoneycutt
Copy link
Member

@olevole Perhaps try not specifying the facterversion at https://github.com/voxpupuli/puppet-telegraf/blob/master/spec/classes/telegraf_spec.rb#L4

or specifying a version that has freebsd facts.

facterdb is poorly documented and I don't have much experience with using it from spec tests. :(

@olevole
Copy link
Author

olevole commented Jul 10, 2019

facterdb is poorly documented and I don't have much experience with using it from spec tests. :(

Yes, I experience the same problems..

I tried to use get_facts.sh scipt from facterdb and get on FreeBSD12/FreeBSD13:

% grep -R facterversion /vagrant/*
/vagrant/1.6/freebsd-13-x86_64.facts:  "facterversion": "1.6.18",
/vagrant/1.7/freebsd-13-x86_64.facts:  "facterversion": "1.7.6",
/vagrant/2.0/freebsd-13-x86_64.facts:  "facterversion": "2.0.2",
/vagrant/2.1/freebsd-13-x86_64.facts:  "facterversion": "2.1.0",
/vagrant/2.2/freebsd-13-x86_64.facts:  "facterversion": "2.2.0",
/vagrant/2.3/freebsd-13-x86_64.facts:  "facterversion": "2.3.0",
/vagrant/2.4/freebsd-13-x86_64.facts:  "facterversion": "2.4.6",
/vagrant/2.5/freebsd-13-x86_64.facts:  "facterversion": "2.5.1",
/vagrant/3.14/freebsd-13-amd64.facts:  "facterversion": "3.14.1",

I assume 3.14.1 is an acceptable version.

@vox-pupuli-tasks
Copy link

Dear @olevole, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

1 similar comment
@vox-pupuli-tasks
Copy link

Dear @olevole, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@vox-pupuli-tasks
Copy link

Dear @olevole, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@vox-pupuli-tasks
Copy link

Dear @olevole, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

@bastelfreak
Copy link
Member

Hi,
I'm going to close this PR due to inactivity. Please reopen and rebase it if you're still interested in it.

@bastelfreak bastelfreak closed this Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-conflicts needs-work not ready to merge just yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants