[Puppet Users] unable to detect source attribute.

2014-07-29 Thread Supriya Uppalapati

Hi,
My code is unable to find source attribute. even though i specified it 
correctly.

Here is my error

*Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Invalid parameter source at 
/etc/puppetlabs/puppet/environments/development/modules/powercenter/manifests/init.pp:27
 
on node infauser.dot-pap-spr-d03.ddc.dot.state.ma.us*
*Warning: Not using cache on failed catalog*
*Error: Could not retrieve catalog; skipping run*


*Here is my code:*





*cat init.ppclass powercenter { include test include powcentertests# 
$downloaddir = /stage/informatica/Infa961/ $informatica_version = 
'961HF2_Server_Installer_linux-x64.tar' $informatica_licence = 
'Commonwealth_of_Massachusetts_MultiOS_RE_v961_Dev_0088671_97168.key' file 
{ 'bash_profile':  path = '/home/infauser/.bash_profile',  ensure = 
'present',  #source = 
puppet:///development/powercenter/files/bash_profile,   source  = 
/stage/informatica/bash_profile,} file { /opt/apps/installs/srvr:
ensure = directory,owner = infauser,group = infauser,
mode  = 750,} exec { '$informatica_version': command = /bin/tar -xvf 
$informatica_version,  #path = '/bin/tar',  cwd   = 
'/opt/apps/installs/srvr/',  #creates = '/opt/apps/installs/srvr',  source 
= /stage/informatica/Infa961/961_Server_Installer_linux-x64.tar,}  file 
{ '$informatica_licence':  path = 
/opt/apps/downloads/Commonwealth_of_Massachusetts_RE_v961_DEV_0088671_97168.key,
  
ensure = present,  owner = infauser,  group = infauser,  
mode  = 0755, source = 
/stage/informatica/Infa961/Commonwealth_of_Massachusetts_RE_v961_DEV_0088671_97168.key,
  
 # informatica  = $downloaddir,}}*

-- 
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/72c8cc09-9026-409e-86fb-65b763b22655%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] not able to comment line using file_line resource

2014-07-24 Thread Supriya Uppalapati
Hi,
 
I did like this using file_line resource



*file_line { 'replace a line to /home/infauser/.bash_profile':  path = 
'/home/infauser/.bash_profile',  line = 'export 
INFA_CODEPAGENAME=UTF-8',  #match = '^# export 
INFA_CODEPAGENAME=UTF-8.*',*
 
*But it is giving me an error:*
 


*Error: Failed to apply catalog: Validation of File_line[replace a line to 
/home/infauser/.bash_profile] failed: When providing a 'match' parameter, 
the value must be a regex that matches against the value of your 'line' 
parameter at 
/etc/puppetlabs/puppet/environments/development/modules/powercenter/manifests/init.pp:75Wrapped
 
exception:When providing a 'match' parameter, the value must be a regex 
that matches against the value of your 'line' parameter*
 
 
*It is not adding # to the starting of the line.*
 
*Please help me*

-- 
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/fa0e5bc7-854b-4f5a-8e1b-67b8b654513c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] how to comment and uncomment lines in a file using puppet

2014-07-23 Thread Supriya Uppalapati
Hi,
 
I am trying the uncomment the lines in a file using augeas in puppet. But 
it is not commenting those lines.
 
Here is the code which I have writen,
 
 
 







*augeas { bash_profile:context = /home/infauser/.bash_profile,
changes = [ set #comment 'export INFA_CODEPAGENAME=UTF-8',  set 
#comment 'export INFA_HOME=/opt/apps/Informatica/9.5.1',   set 
#comment 'export INFA_DOMAINS_FILE=/opt/apps/Informatica/9.5.1',],But it 
is not commenting the lines.  Please help me*

-- 
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/4ce4b07c-a6a5-44f0-9a83-a30750a2a29a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] error. only root user can exec comands

2014-07-17 Thread Supriya Uppalapati
Hi,
 
I am having an issue with exc statement. running through non-root user.
 
*Error: Failed to apply catalog: Parameter user failed on Exec[extract 
p17071663_1036_Generic.zip]: Only root can execute commands as other users 
at 
/etc/puppetlabs/puppet/environments/testing/modules/wls/manifests/bsupatch.pp*
 
 
*Let me know how to exec through non root user*
 
 
*my code is:*
 





*exec { extract ${patchFile}:113 command = unzip -n 
${puppetDownloadMntPoint}/${patchFile} -d 
${mdwHome}/utils/bsu/cache_dir,114 user   = 
puppet-admin,115 creates = 
${mdwHome}/utils/bsu/cache_dir/${patchId}.jar,116 before  
= Bsu_patch[$patchId], Help me*

-- 
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/8e97c526-2826-460d-8ea4-98db897a9f18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] unable to use varaible in creates attribute

2014-07-14 Thread Supriya Uppalapati
Hi,
 
I am trying to install software using .zip file. I am defining values using 
varaibles. But it is throwing me an error.
 


*Error: Parameter cwd failed on Exec[extract CZM8XML.zip]: cwd must be a 
fully qualified path at 
/etc/puppetlabs/puppet/environments/development/modules/staging/manifests/extract.pp:106Wrapped
 
exception:cwd must be a fully qualified path*
 
My code is here 
 
 

*class websphere::installationmanager {  $ibm_install = 
'/opt/test/installationmanager'*











*file { $ibm_install:  ensure = directory,}staging::deploy { 
'CZM8XML.zip':  source = 
'/stage/Security/SoftwareDepot/SAM_Software/WAS/CZM8XML.zip',  target 
='$ibm_install',  creates ='$ibm_install/install',} exec { 'exec the 
installation manager':  command = '$ibm_install/install --launcher.ini 
$ibm_install/silent-install.ini  -log /opt/test/IM_install.log',  path 
= '$ibm_install',  creates = '/opt/test/IM_install.log',*

*}}*
 
Please help me

-- 
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/5a571dab-f7a2-4186-9ba1-b6e59e066945%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: unable to use varaible in creates attribute

2014-07-14 Thread Supriya Uppalapati
Hi,
 
Here is the working code for installing websphere installation manager 
through puppet.
 


*class websphere::installationmanager {  $ibm_install = 
/opt/test/installationmanager*












*file {$ibm_install:  ensure = directory,}staging::deploy { 
'CZM8XML.zip':  source = 
'/stage/Security/SoftwareDepot/SAM_Software/WAS/CZM8XML.zip',  target = 
$ibm_install,  creates = $ibm_install/install,} exec { 'exec the 
installation manager':  command = $ibm_install/install --launcher.ini 
$ibm_install/silent-install.ini  -log /opt/test/IM_install.log,  path 
= $ibm_install,  creates = '/opt/test/IM_install.log',*


*}}*
 
 
 
 
On Monday, July 14, 2014 11:54:38 AM UTC-4, Supriya Uppalapati wrote:

 Hi,
  
 I am trying to install software using .zip file. I am defining values 
 using varaibles. But it is throwing me an error.
  


 *Error: Parameter cwd failed on Exec[extract CZM8XML.zip]: cwd must be a 
 fully qualified path at 
 /etc/puppetlabs/puppet/environments/development/modules/staging/manifests/extract.pp:106Wrapped
  
 exception:cwd must be a fully qualified path*
  
 My code is here 
  
  

 *class websphere::installationmanager {  $ibm_install = 
 '/opt/test/installationmanager'*











 *file { $ibm_install:  ensure = directory,}staging::deploy { 
 'CZM8XML.zip':  source = 
 '/stage/Security/SoftwareDepot/SAM_Software/WAS/CZM8XML.zip',  target 
 ='$ibm_install',  creates ='$ibm_install/install',} exec { 'exec the 
 installation manager':  command = '$ibm_install/install --launcher.ini 
 $ibm_install/silent-install.ini  -log /opt/test/IM_install.log',  path 
 = '$ibm_install',  creates = '/opt/test/IM_install.log',*

 *}}*
  
 Please help me


-- 
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/dea6e6b6-08e2-43c3-ad70-5595c5e27628%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] having an issue with keyword end

2014-07-01 Thread Supriya Uppalapati
Hi,
 
I wrote a code to identify application type. gving me issue.
 
Anyone help me
 
1 require 'rexml/document'
  2 require 'facter'
  3
  4  Facter.add(:application_type) do
  5
  6confine :hostname = 'hostname'
  7
  8   setcode do
  9 application_installed = Facter::Core::Execution.exec('hostname 
-f')
 10  # Get the 5th char using slice method to identify Oracle
 11 if (application_installed.slice(4,1) =~ /e|f|x|o|w/) then
 12   # Get the 6th  7th char using slice method to identify 
between Application/Database
 13   if(application_installed.slice(5,2)==db) then
 14 puts Database
 15  end
 16   elsif(application_installed.slice(5,2)==ap) then
 17 puts Oracle
 18end
 19  # Get the 5th char using slice method to identify 
Informatica
 20 elsif(application_installed.slice(4,1) =~ /a|m|q/) then
  21 # Get the 6th  7th char using slice method to identify between 
Application/Database
 23   if(application_installed.slice(5,2)==db) then
 24 puts Database
 25 end
 26 end
 27  elsif(application_installed.slice(5,2)==ap) then
 28 puts Informatica 
 29   end
 30# Get the 5th char using slice method to identify IBM
 31 elsif(application_installed.slice(4,1) =~ /r|y|i/) then
 32   # Get the 6th  7th char using slice method to identify 
between Application/Database
 33
 34   if(application_installed.slice(5,2)==db) then
 35 puts Database
 36 end
 37 end
 38 elsif(application_installed.slice(5,2)==ap) then
 39   puts IBM
 40   end
 41
 42 elsif(application_installed.slice(4,3)==sap) then
puts Subversion
 44 end
 45 elsif(application_installed.slice(4,3)==ldb) then
 46 puts Database
 47 end
 48 else
 49puts puppet
 50
 51 end
 52 end
 53 end
 54 end
 55 end
 56 end
 
I am having an issue:









*Warning: Could not load fact file 
/var/opt/lib/pe-puppet/lib/facter/application_type.rb: 
application_type.rb:20: syntax error, unexpected keyword_elsif, expecting 
keyword_endelsif(application_installed.slice(4,1) =~ /a|m|q/) 
then ^application_type.rb:20: syntax error, unexpected 
keyword_then, expecting keyword_endapplication_type.rb:27: syntax error, 
unexpected keyword_elsif, expecting 
keyword_end elsif(application_installed.slice(5,2)==ap) then  
^application_type.rb:27: syntax error, unexpected keyword_then, expecting 
keyword_endapplication_type.rb:31: syntax error, unexpected keyword_elsif, 
expecting $endelsif(application_installed.slice(4,1) =~ /r|y|i/) then*
 ^
 
 

 

-- 
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/234fd692-3336-4a4c-ad04-12abccc8de6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] having an issue with keyword end

2014-07-01 Thread Supriya Uppalapati
Hi,

I changed the code now, but still giving me the error.

Help me

Warning: Could not load fact file
/var/opt/lib/pe-puppet/lib/facter/application_type.rb:
application_type.rb:50: syntax error, unexpected keyword_end, expecting $end

require 'rexml/document'
require 'facter'
 Facter.add(:application_type) do
   confine :hostname = 'hostname'
  setcode do
application_installed = Facter::Core::Execution.exec('hostname -f')
 # Get the 5th char using slice method to identify Oracle
if (application_installed.slice(4,1) =~ /e|f|x|o|w/)
  # Get the 6th  7th char using slice method to identify between
Application/Database
  if(application_installed.slice(5,2)==db)
puts Database
  elsif(application_installed.slice(5,2)==ap)
puts Oracle
# Get the 5th char using slice method to identify Informatica
elsif (application_installed.slice(4,1) =~ /a|m|q/)
  # Get the 6th  7th char using slice method to identify between
Application/Database
 if(application_installed.slice(5,2)==db)
puts Database
 elsif (application_installed.slice(5,2)==ap)
   puts Informatica
   # Get the 5th char using slice method to identify IBM
elsif(application_installed.slice(4,1) =~ /r|y|i/)
  # Get the 6th  7th char using slice method to identify between
Application/Database
  if(application_installed.slice(5,2)==db)
puts Database
elsif (application_installed.slice(5,2)==ap)
  puts IBM
elsif(application_installed.slice(4,3)==sap)
puts Subversion
elsif(application_installed.slice(4,3)==ldb)
puts Database
else
   puts puppet
end
end
end
end
end
end
end
end
end
end
end



On Tue, Jul 1, 2014 at 3:00 PM, Supriya Uppalapati 
supriya.uppalap...@gmail.com wrote:

 Hi,

 I wrote a code to identify application type. gving me issue.

 Anyone help me

 1 require 'rexml/document'
   2 require 'facter'
   3
   4  Facter.add(:application_type) do
   5
   6confine :hostname = 'hostname'
   7
   8   setcode do
   9 application_installed = Facter::Core::Execution.exec('hostname
 -f')
  10  # Get the 5th char using slice method to identify Oracle
  11 if (application_installed.slice(4,1) =~ /e|f|x|o|w/) then
  12   # Get the 6th  7th char using slice method to identify
 between Application/Database
  13   if(application_installed.slice(5,2)==db) then
  14 puts Database
  15  end
  16   elsif(application_installed.slice(5,2)==ap) then
  17 puts Oracle
  18end
  19  # Get the 5th char using slice method to identify
 Informatica
  20 elsif(application_installed.slice(4,1) =~ /a|m|q/) then
   21 # Get the 6th  7th char using slice method to identify between
 Application/Database
  23   if(application_installed.slice(5,2)==db) then
  24 puts Database
  25 end
  26 end
  27  elsif(application_installed.slice(5,2)==ap) then
  28 puts Informatica 
  29   end
  30# Get the 5th char using slice method to identify IBM
  31 elsif(application_installed.slice(4,1) =~ /r|y|i/) then
  32   # Get the 6th  7th char using slice method to identify
 between Application/Database
  33
  34   if(application_installed.slice(5,2)==db) then
  35 puts Database
  36 end
  37 end
  38 elsif(application_installed.slice(5,2)==ap) then
  39   puts IBM
  40   end
  41
  42 elsif(application_installed.slice(4,3)==sap) then
 puts Subversion
  44 end
  45 elsif(application_installed.slice(4,3)==ldb) then
  46 puts Database
  47 end
  48 else
  49puts puppet
  50
  51 end
  52 end
  53 end
  54 end
  55 end
  56 end

 I am having an issue:









 *Warning: Could not load fact file
 /var/opt/lib/pe-puppet/lib/facter/application_type.rb:
 application_type.rb:20: syntax error, unexpected keyword_elsif, expecting
 keyword_endelsif(application_installed.slice(4,1) =~ /a|m|q/)
 then ^application_type.rb:20: syntax error, unexpected
 keyword_then, expecting keyword_endapplication_type.rb:27: syntax error,
 unexpected keyword_elsif, expecting
 keyword_end elsif(application_installed.slice(5,2)==ap) then
 ^application_type.rb:27: syntax error, unexpected keyword_then, expecting
 keyword_endapplication_type.rb:31: syntax error, unexpected keyword_elsif,
 expecting $endelsif(application_installed.slice(4,1) =~ /r|y|i/) then*
  ^





 --
 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/52TSBgYzbDU/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 puppet-users+unsubscr...@googlegroups.com

[Puppet Users] how to create custom application facts

2014-06-26 Thread Supriya Uppalapati
Hi I am trying to create custom application facts to create hierarchy for 
my environment
 
database
│   └── testing
│   ├── default.yaml
│   └── dot-idb-spr-t01.ddc.dot.state.ma.us.yaml
├── defaults.yaml
├── global.yaml
├── hp-extreme
│   ├── dev
│   ├── dev1
│   ├── dev2
│   ├── dev3
│   ├── patch
│   ├── pristine
│   ├── test
│   ├── test1
│   ├── test2
│   ├── test3
│   └── training
├── ibm_id
│   ├── dev
│   ├── dev1
│   ├── dev2
│   └── dev3
├── ibm_rational
├── informatica
│   ├── dev
│   ├── dev1
│   ├── dev2
│   ├── dev3
│   ├── patch
│   ├── pristine
│   ├── test
│   ├── test1
│   ├── test2
│   ├── test3
│   └── training
├── keys
│   ├── private_key.pkcs7.pem
│   └── public_key.pkcs7.pem
├── oracle
│   ├── dev
│   │   ├── default.yaml
│   │   └── rmv-pap-spr-d01.dot.state.ma.us.yaml
│   ├── dev1
│   ├── dev2
│   ├── dev3
│   ├── patch
│   ├── pristine
│   ├── test1
│   ├── test2
│   ├── test3
│   ├── testing
│   │   ├── default.yaml
│   │   ├── dot-fap-spr-t01.local.yaml_backup1
│   │   ├── dot-wap-spr-t03.local.yaml
│   │   └── puppet-admin.rmv-map-spr-t05.dot.state.ma.us.yaml
│   └── training
├── puppet
│   └── development
│   ├── default.yaml
│   ├── dot-pap-spr-d01.local.yaml
│   ├── dot-pap-spr-d03.local.yaml
│   └── dot-pdb-spr-d02.local.yaml
└── testing
└── dot-fap-spr-t01.local
 
 
According to this  I wrote a custom facts. but it is not working help me
 
more application_type.rb
require 'rexml/document'
require 'facter'
 Facter.add(:application_type) do
   confine :hostname = 'hostname'
  setcode do
application_installed = Facter::Core::Execution.exec('hostname -f')
 if application_installed == /f/e/w/x/b/o/
  print oracle
elsif application_installed == db
 print database
elsif application_installed == /r/i/
 print ibm
   elsif application_installed == /a/q/
print informatica
else
  print puppet
end
end
end
I am trying to identify application type based on hostname.
 
Please help me

-- 
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/2b814289-6e84-45ef-bcca-b7f5984b1445%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] issue when installing hiera-gpg

2014-06-25 Thread Supriya Uppalapati
Hi,
 
My puppet-enterprise version 3.2.1 let me know.
 
Please help me
 



*$gem install hiera-gpgBuilding native extensions.  This could take a 
while...ERROR:  Error installing hiera-gpg:ERROR: Failed to build 
gem native extension.*



*/opt/puppet/bin/ruby 
extconf.rbIMPORTANT!
  
gpgme gem uses locally built versions of required C libraries,namely 
libgpg-error, libassuan, and gpgme.*


*If this is a concern for you and you want to use the system 
libraryinstead, abort this installation process and reinstall gpgme gem 
asfollows:*
*gem install gpgme -- --use-system-libraries*






*Extracting
 
libgpg-error-1.12.tar.bz2 into tmp//ports/libgpg-error/1.12... OKRunning 
'configure' for libgpg-error 1.12... ERROR, review 
'tmp//ports/libgpg-error/1.12/configure.log' to see what happened.*** 
extconf.rb failed ***Could not create Makefile due to some reason, probably 
lack ofnecessary libraries and/or headers.  Check the mkmf.log file for 
moredetails.  You may need configuration options.*





















*Provided configuration options:--with-opt-dir
--without-opt-dir--with-opt-include
--without-opt-include=${opt-dir}/include--with-opt-lib
--without-opt-lib=${opt-dir}/lib--with-make-prog
--without-make-prog--srcdir=.--curdir
--ruby=/opt/puppet/bin/ruby--clean
--use-system-libraries/opt/puppet/lib/ruby/gems/1.9.1/gems/mini_portile-0.5.3/lib/mini_portile.rb:278:in
 
`block in execute': Failed to complete configure task (RuntimeError)
from 
/opt/puppet/lib/ruby/gems/1.9.1/gems/mini_portile-0.5.3/lib/mini_portile.rb:270:in
 
`chdir'from 
/opt/puppet/lib/ruby/gems/1.9.1/gems/mini_portile-0.5.3/lib/mini_portile.rb:270:in
 
`execute'from 
/opt/puppet/lib/ruby/gems/1.9.1/gems/mini_portile-0.5.3/lib/mini_portile.rb:65:in
 
`configure'from 
/opt/puppet/lib/ruby/gems/1.9.1/gems/mini_portile-0.5.3/lib/mini_portile.rb:108:in
 
`cook'from extconf.rb:76:in `block in main'from 
extconf.rb:65:in `tap'from extconf.rb:65:in `main'*


*Gem files will remain installed in 
/opt/puppet/lib/ruby/gems/1.9.1/gems/gpgme-2.0.5 for inspection.Results 
logged to 
/opt/puppet/lib/ruby/gems/1.9.1/gems/gpgme-2.0.5/ext/gpgme/gem_make.out*

-- 
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/329ba115-e0b8-40ea-a0a1-153135f87632%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Error 400 on SERVER: Could not find data item wls_jdk_version in any Hiera data file and no default supplied at /etc/puppetlabs/puppet/environments/testing/modules/weblogic_esb/manifest

2014-06-25 Thread Supriya Uppalapati


Hi,

I am having an issue could not find any data item 

Here is my manifests: 











*class weblogic_esb { 2 3 include wls1036 4 include orautils 5 6 
Class['wls1036'] - Class['orautils'] 7 8 class wls1036{ 9 class { 
'wls::urandomfix' :} 10 11 $jdkWls11gJDK = hiera('wls_jdk_version') 12 
$wls11gVersion = hiera('wls_version')*




*cat dot-fap-spr-t01.local.yaml --- #messageDefault: 'default' #messageEnv: 
'common'*












*hosts: 'dot-fap-spr-t01.local': ip: ** host_aliases: - 
'dot-fap-spr-t01' #'soadb.example.com': # ip: 10.10.10.5 #host_aliases: - 
'soadb' 'localhost': ip: 127.0.0.1 host_aliases: - 
'localhost.localdomain' - 'localhost4' - 'localhost4.localdomain4'*


*wls_jdk_version: 'jdk1.7.0_25' wls_user_config_dir: '/home/oracle'*

-- 
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/7531823f-45af-4723-ba8f-f1836355c7c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] having issue when trying to install java using rpm

2014-06-13 Thread Supriya Uppalapati
 

Hi,

I am getting the issue when i modifyied the code like this

class java_rpm::install { 
$version = hiera(javaversion)

package { $version: 
provider = rpm, 
source = puppet:///development/java_rpm/files/$version, 
ensure = installed, 
} 
} 
MY file is here: 
pwd 
/etc/puppetlabs/puppet/environments/development/modules/java_rpm/files

*In my /var/lib/hiera*
classes: 
- 'cis' 
- 'java_versions' 
- 'java_rpm'

javaversion: jdk-7u25-linux-x64.rpm

 

*Error: Execution of '/bin/rpm -i 
puppet:///development/java_rpm/files/jdk-7u25-linux-x64.rpm' returned 1: 
error: open of puppet:///development/java_rpm/files/jdk-7u25-linux-x64.rpm 
failed: No such file or directory*

*Error: 
/Stage[main]/Java_rpm::Install/Package[jdk-7u25-linux-x64.rpm]/ensure: 
change from absent to present failed: Execution of '/bin/rpm -i 
puppet:///development/java_rpm/files/jdk-7u25-linux-x64.rpm' returned 1: 
error: open of puppet:///development/java_rpm/files/jdk-7u25-linux-x64.rpm 
failed: No such file or directory*

Let me know
 

-- 
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/c25a25f1-2aaa-4596-a8d9-b66a8331fcbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] how to update code from svn repository to puppet server

2014-06-12 Thread Supriya Uppalapati
Hi,
 
First I imported my puppet code from puppet server to svn repository.
2nd I checkout the code from svn repository to remote server, where I am 
developing the code.After I editing the code I commited the code. and did 
svn up puppetlabs in remote server.
3rd After I did this, the code is getting update in svn repository. 
4th to get update the code from svn repository to puppet server . I did svn 
update /etc/puppetlabs. But the code is not getting update from svn 
repository to puppet server
 
Let me know.
 
Help me

-- 
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/dcb0da36-db21-4a5d-b913-9c7a38c89641%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] trying to install jdk1.7 using rpm in a different directory

2014-06-11 Thread Supriya Uppalapati
Hi,

The answer for installing java using rpm in different locations is
class java_rpm {
 $version = 'jdk-7u25-linux-x64.rpm'
 package { $version:
 provider = rpm,
#exec {$version:
 install_options = ['-vh','--prefix=/u01/app/oracle/product/java'],
 #owner = oracle,
 #group = oinstall,
 #mode = 0755,
# command = rpm -ivh --prefix=/u01/app/oracle/product/java
jdk-7u25-linux-x64.
rpm,
 source =
/etc/puppetlabs/puppet/environments/development/modules/java_rpm/fil
es/jdk-7u25-linux-x64.rpm,
ensure = installed,
}
file {/u01/app/oracle/product/java:
# ensure = present,
 owner  = 'oracle',
 group  = 'oinstall',
# source = /u01/app/oracle/product/java,
 recurse = true,
 mode = 755,
}
}

This code is working fine for me


On Tue, Jun 10, 2014 at 1:56 PM, Spencer Krum krum.spen...@gmail.com
wrote:

 I have no experience with using install_options to install an rpm into a
 separate directory. Sorry.


 On Tue, Jun 10, 2014 at 10:47 AM, Supriya Uppalapati 
 supriya.uppalap...@gmail.com wrote:

 Hi,

 My requirement says to use rpm based. Can we use install_options in
 puppet-enterprise 3.2 versions. If I do it manually it is installing In
 specifiyed location. But when I am using installed_options in puppet it is
 throwing me error

 Let me know

 Appreciate your help


 On Tue, Jun 10, 2014 at 1:39 PM, Spencer Krum krum.spen...@gmail.com
 wrote:

 If your goal is to install java into a nonstandard directory... why not
 just pull down the jdk tarball and untar that?


 On Tue, Jun 10, 2014 at 8:06 AM, Supriya Uppalapati 
 supriya.uppalap...@gmail.com wrote:

 Hi,

 I am trying to install jdk1.7.0_25 using rpm in
 /u01/app/oracle/product/jdk1.7.0_25/. I downloaded rpm from oracle.

 Here is my code








 *class java_rpm { package { jdk7u25: provider = rpm, install_options
 = ['-ivh --prefix=/u01/app/oracle/product/jdk1.7.0_25/'],  source =
 '/etc/puppetlabs/puppet/environments/development/modules/java_rpm/files/jdk-7u25-linux-x64.rpm',
  ensure
 = installed,}}*

 I am having this issue.

 *Error: Execution of '/bin/rpm -i -ivh
 --prefix=/u01/app/oracle/product/jdk1.7.0_25/
 /etc/puppetlabs/puppet/environments/development/modules/java_rpm/files/jdk-7u25-linux-x64.rpm'
 returned 1: error: open of -ivh\
 --prefix=/u01/app/oracle/product/jdk1.7.0_25/ failed: No such file or
 directory*
 *Error: /Stage[main]/Java_rpm/Package[jdk7u25]/ensure: change from
 absent to present failed: Execution of '/bin/rpm -i -ivh
 --prefix=/u01/app/oracle/product/jdk1.7.0_25/
 /etc/puppetlabs/puppet/environments/development/modules/java_rpm/files/jdk-7u25-linux-x64.rpm'
 returned 1: error: open of -ivh\
 --prefix=/u01/app/oracle/product/jdk1.7.0_25/ failed: No such file or
 directory*

  Please Help me

 --
 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/6ad85513-4e6c-43ef-90be-01d16fdd53df%40googlegroups.com
 https://groups.google.com/d/msgid/puppet-users/6ad85513-4e6c-43ef-90be-01d16fdd53df%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




 --
 Spencer Krum
 (619)-980-7820

 --
 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/TtCoAlZ4vqE/unsubscribe.
 To unsubscribe from this group and all its topics, 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/CADt6FWPK8LCN8cd_X0kZY%3DHPSKZ_Z2D9rzhLV%3DvvJ71hWAHaRg%40mail.gmail.com
 https://groups.google.com/d/msgid/puppet-users/CADt6FWPK8LCN8cd_X0kZY%3DHPSKZ_Z2D9rzhLV%3DvvJ71hWAHaRg%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 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/CAEySWyHaLeeWgSQU7xskwFw%3DiA-onjhdb2o-Wq7wXQhqZ9C8Cg%40mail.gmail.com
 https://groups.google.com/d/msgid/puppet-users/CAEySWyHaLeeWgSQU7xskwFw%3DiA-onjhdb2o-Wq7wXQhqZ9C8Cg%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 For more options, visit https://groups.google.com/d/optout.




 --
 Spencer Krum
 (619)-980-7820

 --
 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/TtCoAlZ4vqE/unsubscribe.
 To unsubscribe from this group and all its topics, send an email

[Puppet Users] trying to install jdk1.7 using rpm in a different directory

2014-06-10 Thread Supriya Uppalapati
Hi,
 
I am trying to install jdk1.7.0_25 using rpm in 
/u01/app/oracle/product/jdk1.7.0_25/. I downloaded rpm from oracle.
 
Here is my code
 







*class java_rpm { package { jdk7u25: provider = rpm, install_options = 
['-ivh --prefix=/u01/app/oracle/product/jdk1.7.0_25/'], source = 
'/etc/puppetlabs/puppet/environments/development/modules/java_rpm/files/jdk-7u25-linux-x64.rpm',
 ensure 
= installed,}}*
 
I am having this issue.
 
*Error: Execution of '/bin/rpm -i -ivh 
--prefix=/u01/app/oracle/product/jdk1.7.0_25/ 
/etc/puppetlabs/puppet/environments/development/modules/java_rpm/files/jdk-7u25-linux-x64.rpm'
 
returned 1: error: open of -ivh\ 
--prefix=/u01/app/oracle/product/jdk1.7.0_25/ failed: No such file or 
directory*
*Error: /Stage[main]/Java_rpm/Package[jdk7u25]/ensure: change from absent 
to present failed: Execution of '/bin/rpm -i -ivh 
--prefix=/u01/app/oracle/product/jdk1.7.0_25/ 
/etc/puppetlabs/puppet/environments/development/modules/java_rpm/files/jdk-7u25-linux-x64.rpm'
 
returned 1: error: open of -ivh\ 
--prefix=/u01/app/oracle/product/jdk1.7.0_25/ failed: No such file or 
directory*
 
 Please Help me

-- 
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/6ad85513-4e6c-43ef-90be-01d16fdd53df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] trying to install jdk1.7 using rpm in a different directory

2014-06-10 Thread Supriya Uppalapati
Hi,

My requirement says to use rpm based. Can we use install_options in
puppet-enterprise 3.2 versions. If I do it manually it is installing In
specifiyed location. But when I am using installed_options in puppet it is
throwing me error

Let me know

Appreciate your help


On Tue, Jun 10, 2014 at 1:39 PM, Spencer Krum krum.spen...@gmail.com
wrote:

 If your goal is to install java into a nonstandard directory... why not
 just pull down the jdk tarball and untar that?


 On Tue, Jun 10, 2014 at 8:06 AM, Supriya Uppalapati 
 supriya.uppalap...@gmail.com wrote:

 Hi,

 I am trying to install jdk1.7.0_25 using rpm in
 /u01/app/oracle/product/jdk1.7.0_25/. I downloaded rpm from oracle.

 Here is my code








 *class java_rpm { package { jdk7u25: provider = rpm, install_options
 = ['-ivh --prefix=/u01/app/oracle/product/jdk1.7.0_25/'],  source =
 '/etc/puppetlabs/puppet/environments/development/modules/java_rpm/files/jdk-7u25-linux-x64.rpm',
  ensure
 = installed,}}*

 I am having this issue.

 *Error: Execution of '/bin/rpm -i -ivh
 --prefix=/u01/app/oracle/product/jdk1.7.0_25/
 /etc/puppetlabs/puppet/environments/development/modules/java_rpm/files/jdk-7u25-linux-x64.rpm'
 returned 1: error: open of -ivh\
 --prefix=/u01/app/oracle/product/jdk1.7.0_25/ failed: No such file or
 directory*
 *Error: /Stage[main]/Java_rpm/Package[jdk7u25]/ensure: change from absent
 to present failed: Execution of '/bin/rpm -i -ivh
 --prefix=/u01/app/oracle/product/jdk1.7.0_25/
 /etc/puppetlabs/puppet/environments/development/modules/java_rpm/files/jdk-7u25-linux-x64.rpm'
 returned 1: error: open of -ivh\
 --prefix=/u01/app/oracle/product/jdk1.7.0_25/ failed: No such file or
 directory*

  Please Help me

 --
 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/6ad85513-4e6c-43ef-90be-01d16fdd53df%40googlegroups.com
 https://groups.google.com/d/msgid/puppet-users/6ad85513-4e6c-43ef-90be-01d16fdd53df%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




 --
 Spencer Krum
 (619)-980-7820

 --
 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/TtCoAlZ4vqE/unsubscribe.
 To unsubscribe from this group and all its topics, 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/CADt6FWPK8LCN8cd_X0kZY%3DHPSKZ_Z2D9rzhLV%3DvvJ71hWAHaRg%40mail.gmail.com
 https://groups.google.com/d/msgid/puppet-users/CADt6FWPK8LCN8cd_X0kZY%3DHPSKZ_Z2D9rzhLV%3DvvJ71hWAHaRg%40mail.gmail.com?utm_medium=emailutm_source=footer
 .

 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/CAEySWyHaLeeWgSQU7xskwFw%3DiA-onjhdb2o-Wq7wXQhqZ9C8Cg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Issue when i am trying to restart puppet-dashboard-workers

2014-06-06 Thread Supriya Uppalapati
Hi,
 
when I am trying to restart puppet-dashboard-workers. It is giving me some 
information like this
 



*service pe-puppet-dashboard-workers restartStopping 
pe-puppet-dashboard-workers:  [  OK  
]/etc/init.d/pe-puppet-dashboard-workers: line 68: log_daemon_msg: command 
not found   [  OK  
]*
Let me know

-- 
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/49c84239-19e3-4501-bf06-0b9f72bbe80b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Don't know how to build task 'db:raw:vacuum'

2014-06-06 Thread Supriya Uppalapati
Hi ,
 
I am having this when I am trying to decrease the size of a database
 














*sudo /opt/puppet/bin/rake -f /opt/puppet/share/puppet-dashboard/Rakefile 
RAILS_ENV=production db:raw:vacuum --tracerake aborted!Don't know how to 
build task 
'db:raw:vacuum'/opt/puppet/lib/ruby/1.9.1/rake/task_manager.rb:49:in 
`[]'/opt/puppet/lib/ruby/1.9.1/rake/application.rb:115:in 
`invoke_task'/opt/puppet/lib/ruby/1.9.1/rake/application.rb:94:in `block (2 
levels) in top_level'/opt/puppet/lib/ruby/1.9.1/rake/application.rb:94:in 
`each'/opt/puppet/lib/ruby/1.9.1/rake/application.rb:94:in `block in 
top_level'/opt/puppet/lib/ruby/1.9.1/rake/application.rb:133:in 
`standard_exception_handling'/opt/puppet/lib/ruby/1.9.1/rake/application.rb:88:in
 
`top_level'/opt/puppet/lib/ruby/1.9.1/rake/application.rb:66:in `block in 
run'/opt/puppet/lib/ruby/1.9.1/rake/application.rb:133:in 
`standard_exception_handling'/opt/puppet/lib/ruby/1.9.1/rake/application.rb:63:in
 
`run'/opt/puppet/bin/rake:32:in `main' Help me*

-- 
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/e7f83f6c-387f-4f42-9718-bf6154cf262d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] unable to execute shell script through non root user

2014-06-04 Thread Supriya Uppalapati
Hi,
 
I am trying to run shell script through non root user in puppet facts.
 
Here is my code.
 

* $cat cis_rhel6_check.rbrequire 'facter'*





*Facter.add(cis_rhel6_check) do  setcode do %x[ sh 
/tmp/cis_rhel6_check.sh ]  endend*
the shell script is in 
 
*drwxrwxrwt. 178 root   root tmp*

*ls -ls /tmp/cis_rhel6_check.sh44 -rwxrwxrwx 1 root pe-puppet 43916 May 19 
15:28 /tmp/cis_rhel6_check.sh*
 
 
*The issue was:*
*sh: /tmp/cis_rhel6_check.sh: No such file or directory*
 
 
*help me*

-- 
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/2ebf09a3-2924-4698-add2-ecdf1bd3fb1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] is there any way the audit the contents of a file using puppet

2014-05-30 Thread Supriya Uppalapati
Hi,
 
Is there any way to audit the contents of a file using no-op mode in puppet.
 
Help me
 

-- 
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/e621eea4-4fac-4e35-8866-5af76290c3d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] how to set loglevel= debug in puppet

2014-05-30 Thread Supriya Uppalapati
Hi,
 
How to set loglevel=debug in puppet to get detailed information of what 
commands puppet is executing when it runs puppet agent.
 
In cd /etc/puppetlabs/mcollective/server.cfg file I edited loglevel=debug. 
But aftersome time it is changing to loglevel=info
 
How do I set loglevel=debug in puppet?
 
Let me know

-- 
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/d97d0df8-874e-47f0-9db3-66eb805119e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] is there any any wat to create directoryies using hiera

2014-05-28 Thread Supriya Uppalapati
Hi,
 
I have created directories in puppet/manifests/init.pp
 









* more init.ppclass createdirectory {   file { [ /u01/app/,/u01/oracle, 
/u01/oracle/product,  ]:  ensure = directory,  owner  = 
oracle,  group  = oinstall,  recurse = true,  mode   = 
755,}}*
 
But, now I want to specify the */u01/app/,/u01/oracle, 
/u01/oracle/product*  this contents using hiera. Is there any way to do 
this*.*
 
*Let me know.*
 
 

-- 
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/48e5ed55-87b3-452a-830b-7e5af024f397%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] how to define roles an profiles in my environment

2014-05-28 Thread Supriya Uppalapati
Hi,
 
I have webservers, application servers and in the webservers I have 
weblogic,soa,esb. and the environments I have are 
development,testing,production and zones I have are control 
production,control pre-production,development,testing.
 
What is the best way I can define these in roles and profiles.
 
Help me
 

-- 
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/3f75e6b8-d051-4dab-8c4e-159606f6f3a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] could not retrieve information from environment development source(s) file:/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh

2014-05-21 Thread Supriya Uppalapati
Hi,
 
I am having an error could not retrieve information development source 
*file:/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh*

 
Please help me

 
I have a code in 
*/etc/puppetlabs/puppet/modules/java_versions/manifests/init.pp*
 







*class java_versions {# $::var_java_ver = '1.7.0_42'  file 
{'/usr/local/sbin/java_path.sh': source = 
'/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh',  
owner = root,  group = root,  mode  = '0700',}*













*if versioncmp($::var_java_ver, $java_version)  0 { notify {using 
concatenated files, java version ${java_version}:; }} else { # work with 
java   notify {using java, java version ${java_version}:; }}# file 
{'/usr/local/sbin/java.sh': # source = 
'/etc/puppetlabs/puppet/modules/java_versions/scripts/java.sh',  #owner = 
root,  #group = root,  #mode  = '700',#} if $java_version == 'notexit' {*


*warning('java versions are not available ($java_version)')}}*
And script in /
*etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh* 

*$cat java_path.shrunuser -l oracle -c 
'/u01/app/oracle/product/jdk1.7.0_25/bin/java -version'*
 
*Ruby code 
:/etc/puppetlabs/puppet/modules/java_versions/lib/facter/java_path.rb*
 
*$vi  java_path.rbrequire 'facter'*







*Facter.add(:java_path) do  setcode do
Facter::Util::Resolution.exec('/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh')
  
endend*
 
 
 

-- 
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/dfa17004-6c33-4fe0-b7a1-88ffaab40362%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: could not retrieve information from environment development source(s) file:/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh

2014-05-21 Thread Supriya Uppalapati

On Wednesday, May 21, 2014 11:05:25 AM UTC-4, Supriya Uppalapati wrote:

 Hi,
  
 I am having an error could not retrieve information development source 
 *file:/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh*

  
 Please help me

  
 I have a code in 
 */etc/puppetlabs/puppet/modules/java_versions/manifests/init.pp*
  







 *class java_versions {# $::var_java_ver = '1.7.0_42'  file 
 {'/usr/local/sbin/java_path.sh': source = 
 '/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh',  
 owner = root,  group = root,  mode  = '0700',}*













 *if versioncmp($::var_java_ver, $java_version)  0 { notify {using 
 concatenated files, java version ${java_version}:; }} else { # work with 
 java   notify {using java, java version ${java_version}:; }}# file 
 {'/usr/local/sbin/java.sh': # source = 
 '/etc/puppetlabs/puppet/modules/java_versions/scripts/java.sh',  #owner = 
 root,  #group = root,  #mode  = '700',#} if $java_version == 'notexit' {*


 *warning('java versions are not available ($java_version)')}}*
 And script in /
 *etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh* 

 *$cat java_path.shrunuser -l oracle -c 
 '/u01/app/oracle/product/jdk1.7.0_25/bin/java -version'*
  
 *Ruby code 
 :/etc/puppetlabs/puppet/modules/java_versions/lib/facter/java_path.rb*
  
 *$vi  java_path.rbrequire 'facter'*







 *Facter.add(:java_path) do  setcode do
 Facter::Util::Resolution.exec('/etc/puppetlabs/puppet/modules/java_versions/scripts/java_path.sh')
   
 endend*
  
  
  


-- 
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/0ef933e4-050f-423a-9d83-ececc9c385a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type jdk7::javaexec

2014-01-31 Thread Supriya Uppalapati
Hi,
 
I am new to writing code for puppet. I installed biemond/jdk7 module. In 
that it has install7.pp and javaexec.pp Now I am trying to modify the 
parameters using wrapper class. In that I wrote
class javajdk {
 include jdk7,java7_exec

 jdk7::install7{ jdk1.7.0_25 :
  version  = 7u25,
  fullVersion  = jdk1.7.0_25,
  x64  = true,
  user= oracle,
  group   = oinstall,
  alternativesPriority = 17065,
  downloadDir  = /data/install,
  urandomJavaFix   = true,
  sourcePath   = /stage/,
}
 
...
..
class java7_exec{
 $path  =  /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:
 $fullVersion  = jdk1.7.0_25
  $jdkfile  = 
jdk-${version}-${installVersion}-${type}${installExtension}
  $user = 'oracle'
  $group= 'oinstall'
 jdk7::javaexec{ 'java7_exec' :
  path = $path,
  fullVersion  = jdk1.7.0_25,
  jdkfile  = $jdkfile,
  user = $user,
  group= $group
}
I am getting the issue:*Error: Puppet::Parser::AST::Resource failed with 
error ArgumentError: Invalid resource type jdk7::javaexec* 
 
Please help me.
 
Thank you

 

-- 
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/4940a992-fe7a-40a4-9ccd-fec00229b2d2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.