Also, there is a much simpler way using your original approach. The Package 
type has a provider parameter that can be set to rpm. So instead of an 
exec, you just have a package resource that installs that rpm.

You should also look into the unless parameter to exec. It runs a command 
to determine if the exec needs to be run or not.


On Tuesday, November 20, 2012 3:02:58 PM UTC-7, Stephen Price wrote:
>
> Cool, cool. If I'm installing a repo for the first time, I usually install 
> the rpm manually on a test machine, then grab the .repo file from 
> /etc/yum.repos.d and the referenced gpgkey, and add everything in Puppet 
> with a custom define (which is really a wrapper around yumrepo with the 
> additional file resource I mentioned). Makes upgrading the repo a manual 
> process, but gives you more control.
>
> On Tuesday, November 20, 2012 1:56:51 PM UTC-8, Laurence Cope wrote:
>>
>> thanks for all that. The examples above look like some I found online 
>> (not specific to Virtualmin) which failed with errors. but maybe there were 
>> slight differences. I am off work for couple of days now, so will try these 
>> when I get back. I really appreciate it. you can tell I am new, once I get 
>> over these few hurdles I am sure I will be fine. 
>>
>> @stephen yes I agree, I just wanted to cut it out until I got the rest 
>> working, one less thing that may cause errors! one step at a time :)
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/oIs6COHmpCUJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to