:) thanks, but I know how to write a class that installs java from 
ppa:webupd8team/java, that's not what i was asking. I'm still trying to 
figure out how to install java *just using* puppetlabs-java module.

On Monday, June 9, 2014 2:49:09 PM UTC+2, Николай Колев wrote:
>
> last try
> probably my english is not so good
>
> this is the module that I use to install oracle java (it is part of larger 
> more complex setup so I post only this part)
>
> #provides installation of oracle java for linux
> class java_oracle::linux{
>   include java_oracle
>
>   $java_version  = $java_oracle::java_version
>
>   if ($java_version == undef) {
>     fail('java_version is required')
>   }
>
>   exec {'echo debconf shared/accepted-oracle-license-v1-1 select true | 
> debconf-set-selections':
>     path => ['/bin', '/usr/bin']
>   }
>   ->
>   exec {'echo debconf shared/accepted-oracle-license-v1-1 seen true | 
> debconf-set-selections':
>     path => ['/bin', '/usr/bin']
>   }
>   ->
>   package { 'oracle-java7-installer':
>     ensure => $java_version
>   }
>
> }
>
>
>
> 07 юни 2014, събота, 18:26:46 UTC+3, Milan Simonović написа:
>>
>> maybe I wasn't clear. I know how to install java by hand 
>> from ppa:webupd8team/java. What I want is to have puppetlabs-java install 
>> it, and it fails. Adding ppa:webupd8team/java repo doesn't help. Has anyone 
>> managed to install 'oracle-jdk' using puppetlabs-java on ubuntu?
>>
>> best,
>> Milan
>>
>> On Saturday, June 7, 2014 4:32:29 PM UTC+2, Николай Колев wrote:
>>>
>>> Hi Milan,
>>>
>>> the name of the package is oracle-java7-installer
>>> what deb package does is to download java archive from Oracle;s web site 
>>> and then unpacks it and then some postinstall work like regsitering in 
>>> alternatives and setting JAVA_HOME etc.
>>> Hope this helps.
>>>
>>> best regards,
>>> Nickoaly Kolev
>>>
>>>
>>> 07 юни 2014, събота, 14:19:09 UTC+3, Milan Simonović написа:
>>>>
>>>> Николай thanks for the tip. Sorry I forgot to mention that 
>>>> ppa:webupd8team/java had been added already, 
>>>> but still it doesn't work, there's no oracle-j2sdk1.7 deb package 
>>>> there. 
>>>>
>>>> best,
>>>> Milan
>>>>
>>>> On Saturday, June 7, 2014 11:15:40 AM UTC+2, Николай Колев wrote:
>>>>>
>>>>> Hi Milan,
>>>>>
>>>>> In order to install oracle java you have to add third party 
>>>>> repository, 
>>>>> How you can do this you can do it read this article: 
>>>>> http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
>>>>>  
>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwww.webupd8.org%2F2012%2F01%2Finstall-oracle-java-jdk-7-in-ubuntu-via.html&sa=D&sntz=1&usg=AFQjCNEf6wazKBUutEmPxmyUCT6CGxUJTQ>
>>>>> If you want this to be part of the puppet catalog use puppetlabs-apt 
>>>>> module to add it to the sources list
>>>>>
>>>>> best regards,
>>>>> Nickolay Kolev
>>>>>
>>>>> 06 юни 2014, петък, 23:17:20 UTC+3, Milan Simonović написа:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> puppet 3.6.1 on a vanilla trusty ubuntu server, trying to install 
>>>>>> oracle-jdk:
>>>>>>
>>>>>>   class { 'java':
>>>>>>
>>>>>>     distribution => 'oracle-jdk',
>>>>>>
>>>>>>     version      => 'latest',
>>>>>>
>>>>>>   }
>>>>>>
>>>>>> exits with the following error:
>>>>>>
>>>>>>
>>>>>> Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o 
>>>>>> DPkg::Options::=--force-confold install oracle-j2sdk1.7' returned 100: 
>>>>>> Reading package lists...
>>>>>>
>>>>>> Building dependency tree...
>>>>>>
>>>>>> Reading state information...
>>>>>>
>>>>>> E: Unable to locate package oracle-j2sdk1.7
>>>>>>
>>>>>> E: Couldn't find any package by regex 'oracle-j2sdk1.7'
>>>>>>
>>>>>> am I missing a source or what (puppetlabs.list is in 
>>>>>> /etc/apt/sources.list.d/)?
>>>>>>
>>>>>> thanks,
>>>>>> Milan
>>>>>>
>>>>>

-- 
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/53c73ed6-fa43-4480-bdac-d998cf4743ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to