voxpupuli / puppet-augeasproviders_grub

Augeas-based grub type and providers
Apache License 2.0
9 stars 33 forks source link

wrong version of grub detection on Ubuntu Trusty #13

Closed lkthomas closed 8 years ago

lkthomas commented 9 years ago

puppet-agent[19114]: Found multiple default providers for kernel_parameter: grub, grub2; using grub

grub-install --version grub-install (GRUB) 2.02~beta2-9ubuntu1.3

lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty

how come it's using grub1 instead of grub2 ?!

raphink commented 9 years ago

Because the grub2 provider is not marked as default for this os.

lkthomas commented 9 years ago

any way to enforce grub2 as default?

raphink commented 9 years ago

You can always pass a provider attribute to the resource in DSL. A PR against the provider would be welcome, too.

lkthomas commented 9 years ago

Any example?

raphink commented 9 years ago

provided => grub2 in the resource declaration.

raphink commented 8 years ago

Fixed in #17