I'm not sure exactly what your trying to achieve by getting the provider but I give it a shot at it anyway.
In order to get debugging info from puppet you would use a notice. http://www.puppetcookbook.com/posts/simple-debug-messages.html So if you wanted to have your EL systems tell you they installed a package with yum and you Debian systems to tell you they installed it with apt-get try. package { "foo": ensure => present, } if osfamily == "RedHat" { notify { 'Installed with Yum': require =>Package['foo'], } if osfamily == "Debian" { notify { 'Installed with apt-get': require =>Package['foo'], } Hope this helps. On Monday, October 27, 2014 1:28:25 PM UTC-5, huhm4n wrote: > > When I'm installing some package using puppet, let's say > > > package { "xxx": > ensure => present, > } > > How do I include if it is running yum install, or apt-get when I'm pushing > this module on os level? > > I want to have output like, > > using yum install xx or something like that if it is running on rhel > boxes, I couldn't make it work? Any ideas? Thanks in advance. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/41bf13a7-0234-4cba-b0a8-5390bdc3cbbe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.