Skip to content

Make default printer an exec configured w/ a param#57

Merged
mosen merged 4 commits intomosen:masterfrom
lamawithonel:feature/default_printer_as_param
Sep 2, 2015
Merged

Make default printer an exec configured w/ a param#57
mosen merged 4 commits intomosen:masterfrom
lamawithonel:feature/default_printer_as_param

Conversation

@lamawithonel
Copy link
Contributor

This removes the default_printer type and provider and makes it an
exec instead, fed by a parameter to the init class. Using an exec like
this ensures the attribute remains singleton.

This makes several changes to clean up the Puppet code.  With this it
mostly pass puppet-lint using the default settings, inherits from params
notwithstanding.  It also tabularizes key/value pair lists, removes some
blank lines and makes variable scope explicit.
@lamawithonel
Copy link
Contributor Author

Refs #41

This removes the `default_printer` type and provider and makes it an
exec instead, fed by a parameter to the init class.  Using an exec like
this ensure the attribute remains singleton.
This adds an empty hash to the `hiera_hash()` printer lookup to prevent
an error in case Hiera cannot find any printers.
This creates a `hiera_hash()` lookup for the `printer_defaults` type,
similar to what is already done for the `printer` type.
@lamawithonel lamawithonel force-pushed the feature/default_printer_as_param branch from 99915a9 to b816e19 Compare August 18, 2015 15:52
@lamawithonel
Copy link
Contributor Author

I've updated this with a few additional changes I needed for my environment.

@mosen
Copy link
Owner

mosen commented Aug 19, 2015

Thanks for the changes, will merge shortly.

@lamawithonel
Copy link
Contributor Author

Thanks, and let me know if you need anything else, like rspec-puppet tests.

mosen added a commit that referenced this pull request Sep 2, 2015
…aram

Make default printer an exec configured w/ a param. Thanks @lamawithonel
@mosen mosen merged commit 0968456 into mosen:master Sep 2, 2015
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.

2 participants