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?
>
The idea is that Puppet is supposed to figure out for itself which provider
to use, at least for packages of the system's native type. You can specify
a particular provider via the Package type's 'provider' parameter, but
usually you should just let Puppet pick. It does a good job of it.
>
> 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.
>
If you run the agent with '--debug' output enabled then the output will
contain, among other things, the commands used to sync each resource.
John
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/77a5be03-5c40-4c28-a1f4-b965c327abba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.