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

::kernel is not defined #88

Open
craiggenner opened this issue Sep 27, 2017 · 2 comments
Open

::kernel is not defined #88

craiggenner opened this issue Sep 27, 2017 · 2 comments

Comments

@craiggenner
Copy link

When the ::kernel fact is not defined then Package[wget] is not set and so define wget::fetch => exec { "wget-${name}": also fails.

Additionally Package[wget] is only set when $manage_package is set to true.

Not sure what a fix would look like, I wonder if some extra logic to not depend on the the Package[wget] if the ::kernel fact isn't true or $manage_package is false. I also wonder what happens to the exec if the kernel is set to FreeBSD.

@craiggenner
Copy link
Author

Happy to provide a fix by the way of a pull request once I have some guidance as to which way a fix should go.

@gavinelder
Copy link

change if $var_that_might_exist { ... } to if defined('$var_that_might_exist') { ... }

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

2 participants