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 empty default for cups::printers hiera lookup #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattyindustries
Copy link

The Hiera variable cups::printers has been added to allow end users to define their printers in hiera and require no additional puppet manifest code than 'include cups'.

However by not including a default option the puppet manifest will fail if the user does not specify cups::printer in Hiera.

This change will add a blank hash to the hiera_hash call so that if it returns nothing then no error is logged and no printers created

The Hiera variable cups::printers has been added to allow end users to define their printers in hiera and require no additional puppet manifest code than 'include cups'.

However by not including a default option the puppet manifest will fail if the user does not specify cups::printer in Hiera.

This change will add a blank hash to the hiera_hash call so that if it returns nothing then no error is logged and no printers created
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

Successfully merging this pull request may close these issues.

1 participant