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

First run with Puppet in strict mode fails due to missing fact value #18

Open
ross-w opened this issue Aug 31, 2017 · 1 comment
Open

Comments

@ross-w
Copy link

ross-w commented Aug 31, 2017

When we use this module on a fresh install (PE 2017.2.3, strict variables), the puppet run fails:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown variable: 'shorewall_version'. at /etc/puppetlabs/code/environments/production/modules/shorewall/manifests/interface.pp:22:17

This is due to trying to access $shorewall_version when Shorewall isn't installed yet, so no fact value. This is fixed by manually installing shorewall, but this can't happen in Puppet as the run aborts with the above error during compilation.

Could the module check for the existence of this fact before proceeding to use it?

@duritong
Copy link
Owner

duritong commented Sep 1, 2017

Yeah, that's likely the problem I'm still wondering what the best strategy is to deal with strict = true in manifests. Anyone knows a best practice?

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