[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 =>

[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

[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 > >

[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,

[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 pr

[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+unsub

[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 pu

[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*

[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 no

[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

[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/

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

2014-06-10 Thread Supriya Uppalapati
1:39 PM, Spencer Krum 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: > >>

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

2014-06-11 Thread Supriya Uppalapati
Jun 10, 2014 at 1:56 PM, Spencer Krum 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, >>

[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 gett

[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/puppe

[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.rb**

[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

[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 │

[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_install

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

2014-07-01 Thread Supriya Uppalapati
f(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)==&

[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/manife

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

2014-07-14 Thread Supriya Uppalapati
all --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 u

[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/b

[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_CODEPAGENAM

[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:*

[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: