bartavelle / language-puppet

A library to work with Puppet manifests, test them and eventually replace everything ruby.
BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

Change the default package provider #150

Closed PierreR closed 8 years ago

PierreR commented 8 years ago

Is there a way to change the default package provider ? https://github.com/bartavelle/language-puppet/blob/master/Puppet/NativeTypes/Package.hs#L68

bartavelle commented 8 years ago

You mean picking it based on the facts ? It would require refactoring the whole post-test thingie so that it somehow has access to the state, or at least to the facts.

PierreR commented 8 years ago

I might be able to fix my problem with a PR ;-) According to the doc, the apt provider does support install_options. So I guess I just need to add it here.