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

Confine autofs_version fact to Linux kernel. #69

Merged
merged 1 commit into from
Jun 19, 2017

Conversation

jgreen210
Copy link
Contributor

Fixes #68

#68

@jgreen210
Copy link
Contributor Author

Closing this PR since still get an error:

 DEBUG [6b42cc02] 	Debug: Facter: executing command: /bin/sh -c /usr/sbin/automount -V 2>&1
 DEBUG [6b42cc02] 	Debug: Facter: /usr/sbin/automount: illegal option -- V
 DEBUG [6b42cc02] 	Debug: Facter: process exited with status code 1.
 DEBUG [6b42cc02] 	Debug: Facter: process exited with status code 1.
 DEBUG [6b42cc02] 	Error: Facter: error while resolving custom fact "autofs_version": undefined method `[]' for nil:NilClass
 DEBUG [6b42cc02] 	Debug: Facter: fact "autofs_version" resolved to null and will not be added.

I can look at this some more next week.

@jgreen210 jgreen210 closed this Jun 16, 2017
@jgreen210
Copy link
Contributor Author

Reopening the PR - the changes do work.

It looks like librarian-puppet doesn't handle moving between puppet forge and git nicely, so I wasn't testing the right version of the code on Friday.

@@ -1,4 +1,5 @@
Facter.add(:autofs_version) do
confine kernel: 'Linux'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solaris (an OS this module provides some support for) doesn't support automount -V either.

afisher@solaris:~$ automount -V
automount: illegal option -- V
automount: Usage: automount  [ -v ]  [ -t duration ]

@alexjfisher alexjfisher merged commit 5a76c01 into voxpupuli:master Jun 19, 2017
@alexjfisher
Copy link
Member

Thanks @jgreen210 !

@bastelfreak bastelfreak added the bug Something isn't working label Jun 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants