Alex

I've done something similar for managing Oracle Java installation... 

I've created a 'base::software::java' class [1] within a site 'base' 
module, but you could equally do this in your profile I guess... 

As you can see from the class, if the '$source' param starts with 'puppet', 
then it's treated as a puppet fileserver path, and the RPM file is copied 
from the corresponding location on the Puppetmaster. 
This could be within the 'files' subfolder of your site module [2] or a 
separate file server path on your Puppetmaster [3][4].

I then call the 'base::software::java' class wherever it's required. An 
example is [5].

HTH

Gav

[1] 
https://gist.github.com/fatmcgav/cbacf6380639301779ea894180a4568a#file-java-pp
[2] 
https://docs.puppet.com/puppet/latest/reference/modules_fundamentals.html#files
[3] 
https://gist.github.com/fatmcgav/cbacf6380639301779ea894180a4568a#file-fileserver-conf
[4] 
https://gist.github.com/fatmcgav/cbacf6380639301779ea894180a4568a#file-data-tree
[5] 
https://gist.github.com/fatmcgav/cbacf6380639301779ea894180a4568a#file-calling-class-java-pp

On Tuesday, 12 July 2016 01:36:30 UTC+1, Alex Samad wrote:
>
> Hi 
>
> Thanks, but !  not all of my boxes have internet access. 
>
> But thanks 
>
> On 12 July 2016 at 10:13, Matthaus Owens <matt...@puppet.com <javascript:>> 
> wrote: 
> > Alex, 
> > 
> > It looks like puppetlabs/java has a defined type to handle getting the 
> > oracle version of java (https://forge.puppet.com/puppetlabs/java#usage). 
> The 
> > link has some examples of using the defined type to install oracle java 
> 6 
> > and oracle java 8. 
> > 
> > HTH 
> > 
> > On Mon, Jul 11, 2016 at 5:00 PM, Alex Samad <al...@samad.com.au 
> <javascript:>> wrote: 
> >> 
> >> Ta 
> >> 
> >> but !  I don't want to use the rpm / package from the distro (Centos), 
> I 
> >> want to use the one from oracle. I had hoped to use puppet for storing 
> that. 
> >> I have a repo setup and could add it there. 
> >> 
> >> It was a 2 part question, 1 to solve the package problem, the other how 
> to 
> >> use the download from puppet web site. I remember from the training 
> module 
> >> you can store files in classes 
> >> 
> >> A 
> >> 
> >> 
> >> 
> >> 
> >> On Monday, 11 July 2016 23:56:08 UTC+10, aar...@bigmirrorlabs.com 
> wrote: 
> >>> 
> >>> 
> >>> New to puppet here, but I used this to handle my java dependency. 
> >>> 
> >>> https://forge.puppet.com/puppetlabs/java 
> >>> 
> >>> 
> >>> 
> >> -- 
> >> 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...@googlegroups.com <javascript:>. 
> >> To view this discussion on the web visit 
> >> 
> https://groups.google.com/d/msgid/puppet-users/fae84d50-ed98-4c5e-8cd5-c5c43bb88bd2%40googlegroups.com.
>  
>
> >> 
> >> For more options, visit https://groups.google.com/d/optout. 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to a topic in the 
> > Google Groups "Puppet Users" group. 
> > To unsubscribe from this topic, visit 
> > https://groups.google.com/d/topic/puppet-users/er8PS8hY2iY/unsubscribe. 
> > To unsubscribe from this group and all its topics, send an email to 
> > puppet-users...@googlegroups.com <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/puppet-users/CACD%3DwAcYKRuK3NnBcDWJ74ShKY8ZO6t6U%3D%3DvLr%3D9nHrFbYE2yA%40mail.gmail.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/016794d3-23a3-4557-be73-beea1b59263f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to