Skip to content

Add empty default for cups::printers hiera lookup#54

Open
mattyindustries wants to merge 1 commit intomosen:masterfrom
mattyindustries:mattyindustries-cups-printers-hiera
Open

Add empty default for cups::printers hiera lookup#54
mattyindustries wants to merge 1 commit intomosen:masterfrom
mattyindustries:mattyindustries-cups-printers-hiera

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