[Puppet Users] package download using manifest

2013-02-25 Thread Mamta Garg
Hi All,

Can anyone please tell me if we can download package from website using
puppet manifests?
If yes,could you please provide me a example.



-- 
Thanks and Regards,
Mamta Garg

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Retrieving the name of the module where a define is used

2013-02-25 Thread Nick Fagerlund
calling_module isn't a puppet variable. It's something special from the 
Puppet backend to Hiera, and I'm not entirely sure how it works or even 
whether it currently works. $caller_module_name is a legit puppet variable, 
though. 

On Monday, February 25, 2013 6:10:37 AM UTC-8, nikolavp wrote:
>
> Well you can use calling_module and also all the variables defined in 
> http://docs.puppetlabs.com/puppet/latest/reference/lang_variables.html#facts-and-built-in-variables
>  
>
> Not sure why calling_module is not there at the moment. There might 
> be two reasons for this: 
> * it is more experimental 
> * it is older and $caller_module_name should be used instead(look at the 
> link) 
>
> Maybe someone can step in and make this more clear to both of us ;) 
>
> -- 
> Nikola 
>
> On Thu, Feb 21, 2013 at 09:20:57PM +0530, Francis Pereira wrote: 
> > Thanks Nikola. I didn't know that variable exists. Is there a list of 
> > all available variables somewhere ? 
> > 
> > ~Francis 
> > 
> > On Feb 21, 2013, at 8:49 PM, Nikola Petrov > 
> wrote: 
> > 
> > > Nikola 
> > 
> > -- 
> > 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 . 
> > To post to this group, send email to 
> > puppet...@googlegroups.com. 
>
> > Visit this group at http://groups.google.com/group/puppet-users?hl=en. 
> > For more options, visit https://groups.google.com/groups/opt_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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: virtual resources: cannot change gid before delete group

2013-02-25 Thread Vlados Vladosov
I solve this problem. Thank you.
By one pass the next task solved:
1) creating-change groups
2) creating-change users
3) remove users
4) remove groups

Groups and Users list are virtual in class.
The construction must be next:


  if $fqdn =~ /ru-msk-tes-front.russia.test/ {
Group <| title == 'prot' or title == 'sysadmins' |>
->  User <| title == 'prot'  |>{ groups => ['prot', 'sysadmins'], 
before => Group['admins', 'developers', 'brauser', 'noname', 'pepers', 
'redeyes', 'test_group1', 'test_group2', 'admin', 'vakov', 'omenko', 
'harev', 'sky'] }
->  User <| title == 'admin' or title == 'vakov' or title == 'omenko' 
or title == 'harev' or title == 'sky' |>{ ensure => 'absent', managehome => 
'false', }   ->Group <| title == 'admins' or title == 'developers' or 
title == 'brauser' or title == 'noname' or title == 'pepers' or title == 
'redeyes' or title == 'test_group1' or title == 'test_group2' or title == 
'admin' or title == 'vakov' or title == 'omenko' or title == 'harev' or 
title == 'sky' |>{ ensure => 'absent' }
  }





пятница, 15 февраля 2013 г., 19:34:39 UTC+4 пользователь jcbollinger 
написал:
>
>
>
> On Friday, February 15, 2013 12:35:59 AM UTC-6, Vlados Vlados wrote:
>>
>> Please help.
>> I using virtual resource @user and @group.
>>
>> If i using next construction i get error with cycles
>> class  users {
>>   Group <| ENABLED_GROUPS |>   ->User <| ENABLED_USERS' |> ->  User 
>> <| DISABLED_USERS' |>  ->Group <| DISABLED_GROUPS |> 
>> }
>>
>> This construction good, but puppet don't want change gid before delete 
>> vacant group.
>> class  users {
>>   Group <| ENABLED_GROUPS |>   ->User <| ENABLED_USERS' |>
>>   User <| DISABLED_USERS' |>  ->Group <| DISABLED_GROUPS |> 
>> }
>>
>>
>> I think, firstly,  gid must apply to user. Then delete vacant group.
>>
>> I got error
>> Notice: /Stage[main]/Users::Groups_list/Group[shvakov]/ensure: created
>> Notice: /Stage[main]/Users::Groups_list/Group[developers]/ensure: removed
>>
>> Error: Could not delete group admins: Execution of '/usr/sbin/groupdel 
>> admins' returned 8: groupdel: cannot remove the primary group of user 
>> 'shvakov'
>> Error: /Stage[main]/Users::Groups_list/Group[admins]/ensure: change from 
>> present to absent failed: Could not delete group admins: Execution of 
>> '/usr/sbin/groupdel admins' returned 8: groupdel: cannot remove the primary 
>> group of user 'shvakov'
>>
>> Notice: /Stage[main]/Users::Users_list/User[shvakov]/gid: gid changed 
>> '10' to '10110'
>> Notice: Finished catalog run in 3.32 seconds
>>
>> How change gid before delete group?
>>
>>
>
> Something along the lines of your first approach should work, though I'm 
> not sure you need to separate the Users into enabled and disabled 
> collections.  The key is to get the ordering relationships set up 
> correctly, so the thing to look at is the dependency cycle(s) that Puppet 
> reported.  You didn't show that, so I can't give you specific advice, but 
> there are several possible problems there, including:
>
>1. the selection predicates in your collections might not be correctly 
>partitioning the groups and / or users into disjoint sets;
>2. you may elsewhere be declaring relationships among the users and 
>groups that close a cycle when combined with the ones here;
>3. the chain operators, or their combination with collections, may be 
>failing to correctly overrule the automatic relationship Puppet generates 
>between managed users and their managed primary group (i.e. there may be a 
>bug here).
>
> These resources may be helpful:
>
>- http://docs.puppetlabs.com/learning/ordering.html
>- 
> http://docs.puppetlabs.com/puppet/3/reference/lang_relationships.html(note 
> especially the comments about what collectors do and don't collect)
>
>
> Good luck,
>
> John
>
>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: Can someone provide more clarity on Puppi

2013-02-25 Thread Krishna Murthy T
Hello Alessandro,

Thanks again for your reply,

I managed to install puppi on some of my network nodes today by following 
your instrunctions, but I got below problem.

When ever I do 'puppi deploy ' it is deleting everything 
under tomcat webapps directory by not creating anything so effectively I am 
loosing my tomcat webapps root by running 'puppi deploy' command and 'puppi 
rollback' is not retreving the deleted file, infact if I just run 'puppi 
rollback' on a new system it is also deleting the contents of tomcat 
webapps directory. Do you have any suggestions to fix it.

And I want to do 'puppi deploy' and 'puppi rollback' from one central 
system (Puppetmaster) and I understand that we can do that using puppi's 
Mcollective plugin, so any help on how to install puppi mcollective plugin 
will be very helpful to me.

Thanks & Regards,
Krishna Murthy

On Saturday, 23 February 2013 20:45:31 UTC, Alessandro Franceschi wrote:
>
> In order to use puppi ,as any other module, you have to include or declare 
> the class it provides.
> So, edit a file, (outside the puppi module, you should not add or change 
> anything in the module ), for example: test.pp.
> Write there:
>
> include puppi
>
> to include puppi and the two defines puppi::project::war I mentioned.
>
> Then run Puppet on that file:
>
> puppet apply test.pp 
>
> You should see the installation of puppi on you server (the same one where 
> you installed the module)
>
> If you have a PuppetMaster the content on the test.pp file should be 
> applied to the nodes where you want the puppi installed.
>
> By default this kind of configuration is done on 
> /etc/puppet/manifests/site.pp (there you can have code like:
>
> node 'my_hostname' {
>   include puppi
>   puppi::project::war
> }
>
> The best place where to learn about Puppet is http://docs.puppetlabs.com
>
> Good luck
> al
>
> On Saturday, February 23, 2013 9:35:44 PM UTC+1, Krishna Murthy T wrote:
>>
>> Hello Alessandro,
>>
>> Thanks again for your prompt reply,
>>
>> I tried using Puppi but no success, if you don't mind, can you please 
>> answer below basic questions.
>>
>> 1) I have installed puppi as puppet module using 'puppet module install 
>> example42-puppi' and that has created the Puppet module as expected but I 
>> was unable to execute 'puppi' command manually from command line. Is there 
>> any additional software I need to install to use puppi command line?
>>
>> 2) Where do I need to create the class to deploy the 'war' file? do I 
>> need to create new '.pp' file in '/puppet/modules/puppi/manifests/projects' 
>> or do I need to add this class definition to default 'war.pp' file located 
>> in '/puppet/modules/puppi/manifests/'? because I tried doing both but no 
>> luck.
>>
>> Any help on above points will be much appreciated as I am not getting 
>> much help from google.
>>
>> Thanks & Regards,
>> Krishna Murthy
>>
>>
>> On Friday, 22 February 2013 19:25:29 UTC, Alessandro Franceschi wrote:
>>>
>>> Hi Krishna,
>>> to deploy 2 different wars you can place 2 different puppi defines on 
>>> the same node:
>>>
>>> puppi::project::war { 'myapp':
>>>   source   => 
>>> "http://repo.example42.com/deploy/${environment}/myapp.war";,
>>>   deploy_root  => '/store/tomcat/webapps',
>>> }
>>>
>>>
>>>
>>> puppi::project::war { 'other':
>>>   source   => 
>>> "http://repo.example42.com/deploy/${environment}/other.war 
>>> ",
>>>   deploy_root  => '/store/tomcat/webapps',
>>> }
>>>
>>> This will provide 2 puppi deploy commands:
>>> puppi deploy myapp
>>> and 
>>> puppi deploy other
>>> that would deploy the 2 wars on the same webapps dir.
>>>
>>> Note that if you don't have autodeployment activated on your application 
>>> server you need to restart its service to deploy an app and this would 
>>> affect the other app.
>>> In this case you might prefer to have 2 distinct application servers 
>>> instances one for each app.
>>>
>>> If, instead, your 2 apps are somehow related and should be deployed at 
>>> the same time, there it currently no supportm, out the box, of a unique 
>>> puppi deploy procedure that takes 2 wars at the same time from 2 different 
>>> sources , deploys them and eventually restarts the application server.
>>>
>>> Actually that's not a big effort to do (it would require the addition of 
>>> some parameters in puppi/manifests/projects/war.pp and sono resources) but 
>>> it requires some knowledge on how the puppi module is done. IF you need 
>>> such a feature please open a feature request on Github.
>>>
>>> As a side note, you can create a custom procedure (similar to the 
>>> example ones present in puppi/manifests/projects/ which actually cover most 
>>> of the common cases) that does whatever you need.
>>>
>>> Ciao
>>> al
>>> On Friday, February 22, 2013 11:52:21 AM UTC+1, Krishna Murthy T wrote:

 Hello Alessandro,

 Thank you very much f

[Puppet Users] Intermittent Erorr 400 on Server messages

2013-02-25 Thread Jagga Soorma
Hi Guys,

I am running puppet server version 3.0.2-1 on a RHEL 5.8 virtual machine 
with about 110 clients.  I am seeing intermittent errors with my clients 
that are failing with the following error messages:

--
Could not retrieve catalog from remote server: Error 400 on SERVER: Could 
not find class motd for xxx on node xxx
--

If I login to that host which failed and manually run a "puppet agent -t" 
it finishes without any error messages.  These errors are intermittent but 
have caused corruption of my passwd file since I also manage that via 
puppet.  This message shows up for different servers with different classes 
in the error message.  I have looked at my classes and I don't see any 
problems with it.  Any idea what might be causing this problem?

Any help would be greatly appreciated.

Thanks!
-J

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: Rubygems 2.0.0 removed argument

2013-02-25 Thread Reginald Choudari
We are seeing the same issue with our automated deployment of puppetmaster. 
We are using 'puppetlabs-passenger' install passenger, and we get the same 
issue. Looks like the gem provider has deprecated arguments; AFAIK 
--include-dependencies has become default for gem install.

On Monday, February 25, 2013 12:31:24 PM UTC-5, matthias wrote:
>
> I recently upgraded one of our puppet agent servers to use rubygems 2.0.0. 
>  When I run 'puppet agent --test' after the upgrade it complains that there 
> is an invalid option with using --include-dependencies switch (output 
> below).  Is there a way to pass arguments to puppet when using gem as the 
> package installer to use another argument?
>
> Eg. output
>
> [root@vm1 ~]# puppet agent --test
> Info: Retrieving plugin
> Info: Loading facts in /var/lib/puppet/lib/facter/rvm_installed.rb
> Info: Caching catalog for vm1.example.com
> Info: Applying configuration version '1361808741'
> Error: Could not update: Execution of '/usr/bin/gem install 
> --include-dependencies --no-rdoc --no-ri bson' returned 1: ERROR:  While 
> executing gem ... (OptionParser::InvalidOption)
> invalid option: --include-dependencies
>
> Error: /Stage[main]/Base::Centos6/Package[bson]/ensure: change from 
> ["1.8.2", "1.8.1", "1.8.0", "1.7.1", "1.7.0"] to 1.8.2 ruby java failed: 
> Could not update: Execution of '/usr/bin/gem install --include-dependencies 
> --no-rdoc --no-ri bson' returned 1: ERROR:  While executing gem ... 
> (OptionParser::InvalidOption)
> invalid option: --include-dependencies
>
> Error: Could not update: Execution of '/usr/bin/gem install 
> --include-dependencies --no-rdoc --no-ri json' returned 1: ERROR:  While 
> executing gem ... (OptionParser::InvalidOption)
> invalid option: --include-dependencies
>
> Error: /Stage[main]/Base::Centos6/Package[json]/ensure: change from 
> ["1.7.7"] to 1.7.7 ruby java failed: Could not update: Execution of 
> '/usr/bin/gem install --include-dependencies --no-rdoc --no-ri json' 
> returned 1: ERROR:  While executing gem ... (OptionParser::InvalidOption)
> invalid option: --include-dependencies
>
> Notice: Finished catalog run in 15.45 seconds
>
>
> Somehow it looks hard coded into the gem.rb file
>
>   def install(useversion = true)
> command = [command(:gemcmd), "install"]
> command << "-v" << resource[:ensure] if (! resource[:ensure].is_a? 
> Symbol) and useversion
> # Always include dependencies
> command << "--include-dependencies"
>
>
> Thanks,
> Matthew 
>
>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: Rubygems 2.0.0 removed argument

2013-02-25 Thread Reginald Choudari
We are seeing the same issue with our automated deployment of puppetmaster. 
We are using 'puppetlabs-passenger' install passenger, and we get the same 
issue (See below). Looks like the gem provider has deprecated arguments; 
AFAIK --include-dependencies has become default for gem install.

Notice: /File[/etc/httpd/conf.d/ssl.conf]/ensure: removed
Notice: /File[/etc/httpd/conf/httpd.conf]/content: content changed 
'{md5}fbfc8dde1aa1c1c962792c35ecc99db9' to 
'{md5}ec999e9a079a8fad9e374a8e01df47f4'
Error: Could not update: Execution of '/usr/bin/gem install -v 3.0.19 
--include-dependencies --no-rdoc --no-ri passenger' returned 1: ERROR: 
 While executing gem ... (OptionParser::InvalidOption)
*invalid option: --include-dependencies*

Error: /Stage[main]/Passenger/Package[passenger]/ensure: change from absent 
to 3.0.19 failed: Could not update: Execution of '/usr/bin/gem install -v 
3.0.19 --include-dependencies --no-rdoc --no-ri passenger' returned 1: 
ERROR:  While executing gem ... (OptionParser::InvalidOption)
   * invalid option: --include-dependencies*

Notice: /Stage[main]/Passenger/Exec[compile-passenger]: Dependency 
Package[passenger] has failures: true
Warning: /Stage[main]/Passenger/Exec[compile-passenger]: Skipping because 
of failed dependencies
Error: Could not start Service[httpd]: Execution of '/sbin/service httpd 
start' returned 1:
Error: /Stage[main]/Apache/Service[httpd]/ensure: change from stopped to 
running failed: Could not start Service[httpd]: Execution of '/sbin/service 
httpd start' returned 1:
Notice: /Stage[main]/Apache/Service[httpd]: Triggered 'refresh' from 2 
events
Notice: Finished catalog run in 1.23 seconds


On Monday, February 25, 2013 12:31:24 PM UTC-5, matthias wrote:
>
> I recently upgraded one of our puppet agent servers to use rubygems 2.0.0. 
>  When I run 'puppet agent --test' after the upgrade it complains that there 
> is an invalid option with using --include-dependencies switch (output 
> below).  Is there a way to pass arguments to puppet when using gem as the 
> package installer to use another argument?
>
> Eg. output
>
> [root@vm1 ~]# puppet agent --test
> Info: Retrieving plugin
> Info: Loading facts in /var/lib/puppet/lib/facter/rvm_installed.rb
> Info: Caching catalog for vm1.example.com
> Info: Applying configuration version '1361808741'
> Error: Could not update: Execution of '/usr/bin/gem install 
> --include-dependencies --no-rdoc --no-ri bson' returned 1: ERROR:  While 
> executing gem ... (OptionParser::InvalidOption)
> invalid option: --include-dependencies
>
> Error: /Stage[main]/Base::Centos6/Package[bson]/ensure: change from 
> ["1.8.2", "1.8.1", "1.8.0", "1.7.1", "1.7.0"] to 1.8.2 ruby java failed: 
> Could not update: Execution of '/usr/bin/gem install --include-dependencies 
> --no-rdoc --no-ri bson' returned 1: ERROR:  While executing gem ... 
> (OptionParser::InvalidOption)
> invalid option: --include-dependencies
>
> Error: Could not update: Execution of '/usr/bin/gem install 
> --include-dependencies --no-rdoc --no-ri json' returned 1: ERROR:  While 
> executing gem ... (OptionParser::InvalidOption)
> invalid option: --include-dependencies
>
> Error: /Stage[main]/Base::Centos6/Package[json]/ensure: change from 
> ["1.7.7"] to 1.7.7 ruby java failed: Could not update: Execution of 
> '/usr/bin/gem install --include-dependencies --no-rdoc --no-ri json' 
> returned 1: ERROR:  While executing gem ... (OptionParser::InvalidOption)
> invalid option: --include-dependencies
>
> Notice: Finished catalog run in 15.45 seconds
>
>
> Somehow it looks hard coded into the gem.rb file
>
>   def install(useversion = true)
> command = [command(:gemcmd), "install"]
> command << "-v" << resource[:ensure] if (! resource[:ensure].is_a? 
> Symbol) and useversion
> # Always include dependencies
> command << "--include-dependencies"
>
>
> Thanks,
> Matthew 
>
>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: puppet could'nt find hiera even when hiera gem is installed

2013-02-25 Thread Sai_Emc
This issue got resolved.
 
Looks like hiera functions created as a softlink under site_ruby.  
 
 
/opt/puppet/lib/site_ruby/1.8/puppet/parser/functions

total 112

lrwxrwxrwx 1 root root 84 Jun 20 2012 hiera.rb -> 
../../../../../gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/functions/hiera.rb

lrwxrwxrwx 1 root root 92 Jun 20 2012 hiera_include.rb -> 
../../../../../gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/functions/hiera_include.rb

lrwxrwxrwx 1 root root 89 Jun 20 2012 hiera_hash.rb -> 
../../../../../gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/functions/hiera_hash.rb

lrwxrwxrwx 1 root root 90 Jun 20 2012 hiera_array.rb -> 
../../../../../gems/1.8/gems/hiera-puppet-0.3.0/lib/puppet/parser/functions/hiera_a
 
When I uninstalled older version hiera my links were never removed. I 
was'nt aware of these links. So even after installing new 
hiera/hiera-puppet my links were pointing to a packaged which does not 
exist. So hiera functions were failing in puppet. Which makes sense. So I 
corrected my softlinks to point latest hiera-puppet then hiera started 
working.
 
 
Regards
Sai.

On Friday, February 22, 2013 4:05:30 PM UTC-5, Sai_Emc wrote:

> Tried   /opt/puppet/bin/gem , no use puppet is still failing with errors
>  
>  
> err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
> Could not autoload hiera_include: no such file to load -- 
> /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at 
> /etc/puppetlabs/puppet/environments/development/manifests/site.pp:46
>  
> I can see gem -list --local shows hiera gems installed.
>  
>
> /opt/puppet/bin$ /opt/puppet/bin/gem list --local
>
> *** LOCAL GEMS ***
>
> activerecord (2.3.14)
>
> activesupport (2.3.14)
>
> ar-extensions (0.9.5)
>
> builder (3.0.0)
>
> dalli (1.1.2)
>
> excon (0.14.1)
>
> fog (1.5.0)
>
> formatador (0.2.0)
>
> guid (0.1.1)
>
> hiera (1.1.2)
>
> hiera-puppet (1.0.0)
>
>  
>  
> Regards
> Sai.
> EMC
>
> On Friday, February 22, 2013 3:07:41 PM UTC-5, llowder wrote:
>
>>
>>
>> On Friday, February 22, 2013 2:03:30 PM UTC-6, Sai_Emc wrote: 
>>>
>>> Hiera was properly working in my environment. But puppet was looking at 
>>> old version even when I have the latest hiera gem installed. So I could'nt 
>>> use json backend. But puppet is not looking at my latest hiera gem. Not 
>>> sure when went wrong here.
>>>  
>>> Scenario:
>>> I have installed hiera couple of months back. So the gem was installed 
>>> under 
>>>  
>>> /opt/puppet/lib/gems/1.8/gems/hiera-0.3.0
>>> /opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0
>>>  
>>> Later when I updated to new version of hiera then it installed (via gem 
>>> install) under 
>>>  
>>> /opt/puppet/lib/gems/1.8/gems/hiera-1.1.1
>>> /opt/puppet/lib/gems/1.8/gems/hiera-puppet-1.0.0
>>>  
>>> Puppet was always using the hiera under /opt/puppet/lib/gems/1.8/gems/, 
>>> so I was unable to use new features of hiera
>>>  
>>> I have uninstalled hiera-0.3.0 manually using gem
>>>  
>>> sudo gem uninstall --install-dir /opt/puppet/lib/gems/1.8/ hiera
>>>
>>> Then Puppet failed to find hiera() function, so its always looking under 
>>> /opt/puppet/lib/gems/1.8/gems.  Later I installed hiera using gem and 
>>> explicitly specified to install under /opt/puppet/lib/gems/1.8/gems
>>>
>>> Now puppet cannot even find hiera()
>>>
>>> err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
>>> Could not autoload hiera_include: no such file to load -- 
>>> /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at 
>>> /etc/puppetlabs/puppet/environments/development/manifests/site.pp:46 on 
>>> node 
>>>
>>> Looks like some thing wrong with my gem path or my puppet load path is 
>>> not. Any idea what went wrong here?
>>>
>>>
>>> Using Ubuntu12.04LTS, PE 2.7, Hiera1.2
>>>  
>>> Any help greatly appreciated.
>>>
>>
>> Try sudo /opt/puppet/bin/gem install hiera
>>
>> I'm not a PE user, but I think that is the right path. 
>>
>>> Regards
>>>
>>> Sai.
>>>
>>> EMC
>>>
>>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Rubygems 2.0.0 removed argument

2013-02-25 Thread matthias
I recently upgraded one of our puppet agent servers to use rubygems 2.0.0. 
 When I run 'puppet agent --test' after the upgrade it complains that there 
is an invalid option with using --include-dependencies switch (output 
below).  Is there a way to pass arguments to puppet when using gem as the 
package installer to use another argument?

Eg. output

[root@vm1 ~]# puppet agent --test
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/rvm_installed.rb
Info: Caching catalog for vm1.example.com
Info: Applying configuration version '1361808741'
Error: Could not update: Execution of '/usr/bin/gem install 
--include-dependencies --no-rdoc --no-ri bson' returned 1: ERROR:  While 
executing gem ... (OptionParser::InvalidOption)
invalid option: --include-dependencies

Error: /Stage[main]/Base::Centos6/Package[bson]/ensure: change from 
["1.8.2", "1.8.1", "1.8.0", "1.7.1", "1.7.0"] to 1.8.2 ruby java failed: 
Could not update: Execution of '/usr/bin/gem install --include-dependencies 
--no-rdoc --no-ri bson' returned 1: ERROR:  While executing gem ... 
(OptionParser::InvalidOption)
invalid option: --include-dependencies

Error: Could not update: Execution of '/usr/bin/gem install 
--include-dependencies --no-rdoc --no-ri json' returned 1: ERROR:  While 
executing gem ... (OptionParser::InvalidOption)
invalid option: --include-dependencies

Error: /Stage[main]/Base::Centos6/Package[json]/ensure: change from 
["1.7.7"] to 1.7.7 ruby java failed: Could not update: Execution of 
'/usr/bin/gem install --include-dependencies --no-rdoc --no-ri json' 
returned 1: ERROR:  While executing gem ... (OptionParser::InvalidOption)
invalid option: --include-dependencies

Notice: Finished catalog run in 15.45 seconds


Somehow it looks hard coded into the gem.rb file

  def install(useversion = true)
command = [command(:gemcmd), "install"]
command << "-v" << resource[:ensure] if (! resource[:ensure].is_a? 
Symbol) and useversion
# Always include dependencies
command << "--include-dependencies"


Thanks,
Matthew 

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] puppetlabs-lvm and --guess-fstype

2013-02-25 Thread Chuck
Yep.. Red Hat was nice enough to take "--guest-fstype" out of RHEL 6.4.



On Friday, February 22, 2013 4:25:04 AM UTC-6, steve foster wrote:
>
> Logged a bug:
>
> http://projects.puppetlabs.com/issues/19410
>
> On Friday, 22 February 2013 09:47:33 UTC, Mathieu Bornoz wrote:
>>
>> Hi, 
>>
>> I just came across this problem due to an upgrade of util-linux-ng on 
>> RHEL6 this morning :( 
>>
>> I have not seen any github PR related to this problem on puppetlabs-lvm 
>> module so I will propose a patch (if it works) to replace "mount -f 
>> --guest-fstype /dev/..." by "file -sL /dev/..." 
>>
>> Cheers, 
>> Mathieu 
>>
>> On 11/21/2012 04:54 PM, C R Ritson wrote: 
>> > I'm testing a fedora 17 deployment and am using puppet 2.7.x and 
>> puppetlabs-lvm-0.1.1. I have a problem in that a filesystem in a logical 
>> volume is continually trying to get itself created even though it already 
>> exists and is mounted. It looks as if this might be because there is no 
>> longer a "--guess-fstype" option in the mount command which the lvm module 
>> attempts to use. I'm not sure how to solve this. 
>> > 
>> > Chris Ritson (Computing Officer and School Safety Officer) 
>> > 
>> > Room 707, Claremont Tower,EMAIL: c.r.r...@ncl.ac.uk 
>> > School of Computing Science,  PHONE: +44 191 222 8175 
>> > Newcastle University, FAX  : +44 191 222 8232 
>> > Newcastle upon Tyne, UK NE1 7RU.  WEB  : http://www.cs.ncl.ac.uk/ 
>> > 
>> > 
>>
>>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: IPv6 for puppet agent

2013-02-25 Thread Andrey Kononov
I have find this bug in redmine
http://projects.puppetlabs.com/issues/12517
it will be fixed ?


понедельник, 25 февраля 2013 г., 10:50:27 UTC+4 пользователь Andrey Kononov 
написал:
>
>  I  don`t understand how to tell to puppet agent use ipv6 puppetmaster 
> address its dont work when i say "puppet agent --server 
> puppet6.somedomain.tld" looks like resolving is broken. Ruby configured 
> with ipv6 support.
>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: How to check service status to write monit snippet.

2013-02-25 Thread Felix Frank
Hi,

that's actually a sound implementation.

Try this for debugging:

$comma_separated_list = inline_template("
<%= scope.lookupvar("::monit::services") * ', ' %>")

notify { "Services list: $comma_separated_list": }

Inside a class, not inside the defined type.

Cheers,
Felix

On 02/25/2013 03:52 PM, eduardo wrote:
>  Thanks felix,
>  I'm trying to do a validator for monit module.
>  I'm pretending down services are not controlled by monit, avoiding
> false alarm from monit service.
> 
>  I was work around with something like :
> 
> class monit($services) {
> 
>  include monit::checkservice,
> monit::snippet
> 
>  monit::checkservice::checksrv{ $::monit::services : }
> 
> --
> 
> class monit::checkservice {
>  define checksrv {
>notify { "Checking service $name":}
>service { $name:
>noop => true,
>hasstatus => false,
>status => "/usr/local/bin/check_service.sh ${name}",
>}
>  }
> }
> 
>  where $services is array of services from ENC.
>  But it have been unsuccessfully. I can see notifies messages foreach
> element from array but status script is not executed like i expected
> foreach item.

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: defaultto in hash property not obeyed

2013-02-25 Thread jcbollinger

It looks like you are stumbling over a Ruby syntax ambiguity.  The fragment 
"{}" can be either an empty hash or an empty block.  Because the 
'defaultto' method can accept a block, Ruby resolves the ambiguity in favor 
of that interpretation.  I think it will work better (and also be clearer) 
if you instead write

defaultto Hash.new



John

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: How to check service status to write monit snippet.

2013-02-25 Thread eduardo
 Thanks felix, 
 I'm trying to do a validator for monit module.
 I'm pretending down services are not controlled by monit, avoiding false 
alarm from monit service.

 I was work around with something like :

class monit($services) {

 include monit::checkservice, 
monit::snippet

 monit::checkservice::checksrv{ $::monit::services : }

--

class monit::checkservice {
 define checksrv {
   notify { "Checking service $name":}
   service { $name:
   noop => true,
   hasstatus => false,
   status => "/usr/local/bin/check_service.sh ${name}",
   }
 }
}

 where $services is array of services from ENC.
 But it have been unsuccessfully. I can see notifies messages foreach 
element from array but status script is not executed like i expected 
foreach item.


 regards, eduardo.




El sábado, 23 de febrero de 2013 12:33:51 UTC-5, eduardo escribió:
>
>  Hi all.
>  I'm working on monit module. I have an array of services to configure 
> monit via ENC.
>  I need a consistent module logic so services arriving as input parameter 
> must running on node agent.
>
>  I'm trying to find out if there is services running to configure monit 
> snippets.
>  So, The snippet will be only written into /etc/monit/conf.d when service 
> is running.
>
>  Let's say an input parameter like :
>
>   services => ['ntp','ssh']
>
>  But ntp service is not running. In that case I need the snippet for 'ntp' 
> service not be written on conf.d 
>
>  Is there simple way to do it ?.
>
>
>  Thanks in advanced, eduardo.
>  
>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] gem packages installed directory on puppetmaster

2013-02-25 Thread Sai_Emc
Felix ,
 
Thanks for your reply.  Please see the below thread. I deleted this post, 
because my title was'nt clear. Not sure how it showed up again. Yes, I did 
removed old hiera and updated new one. Still no use.
 
https://groups.google.com/forum/?hl=en&fromgroups#!topic/puppet-users/Fueb5cXA9Fg
 
Regards
Sai.

On Monday, February 25, 2013 8:28:29 AM UTC-5, Felix.Frank wrote:

> Hi, 
>
> I don't really understand the problem. 
>
> On 02/22/2013 07:29 PM, Sai_Emc wrote: 
> > /opt/puppet/lib/gems/1.8/gems/hiera-0.3.0 
> > /opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0 
> >   
> > Later when I updated to new version of hiera then it installed (via gem 
> > install) under 
> >   
> > /opt/puppet/lib/gems/1.8/gems/hiera-1.1.1 
> > /opt/puppet/lib/gems/1.8/gems/hiera-puppet-1.0.0 
>
> Are these not the same base directories? It's not really clear why one 
> would work and not the other. 
>
> > /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb 
>
> Do you have this file? Or is ruby looking for that? 
>
> You may need to fix your RUBYLIB environment. Have you tried 
> reinstalling the older hiera version. 
>
> HTH, 
> Felix 
>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Retrieving the name of the module where a define is used

2013-02-25 Thread Nikola Petrov
Well you can use calling_module and also all the variables defined in 
http://docs.puppetlabs.com/puppet/latest/reference/lang_variables.html#facts-and-built-in-variables

Not sure why calling_module is not there at the moment. There might
be two reasons for this:
* it is more experimental
* it is older and $caller_module_name should be used instead(look at the
link)

Maybe someone can step in and make this more clear to both of us ;)

-- 
Nikola

On Thu, Feb 21, 2013 at 09:20:57PM +0530, Francis Pereira wrote:
> Thanks Nikola. I didn't know that variable exists. Is there a list of
> all available variables somewhere ?
> 
> ~Francis
> 
> On Feb 21, 2013, at 8:49 PM, Nikola Petrov  wrote:
> 
> > Nikola
> 
> -- 
> 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 post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Using Facter to find the Java version running on the machine

2013-02-25 Thread Camerodity
Steven,
 
Thanks!! Your example really helped me and I now have the desired custom 
fact
On Thursday, February 21, 2013 6:06:57 PM UTC-5, Steven wrote:

>  This is the fact that I use
>  
> Facter.add("java_version") do
> setcode do
> `/usr/bin/java -version 2>&1`.split("\n")[0].split('"')[1]
> end 
> end  
>
>
> Steven
>   
> --
> Date: Thu, 21 Feb 2013 22:50:24 +
> From: yg...@comcast.net 
> To: puppet...@googlegroups.com 
> Subject: Re: [Puppet Users] Using Facter to find the Java version running 
> on the machine
>
> java -version 2>&1 | head -n 1 | cut -f2 -d'"'
>
> Apparently, the output goes to stderr !
>
> “Sometimes I think the surest sign that intelligent life exists elsewhere 
> in the universe is that none of it has tried to contact us.”
> Bill Waterson (Calvin & Hobbes)
>
> --
> *From: *"Craig White" >
> *To: *puppet...@googlegroups.com 
> *Sent: *Thursday, February 21, 2013 5:14:14 PM
> *Subject: *Re: [Puppet Users] Using Facter to find the Java version 
> running on the machine
>
>
> On Feb 21, 2013, at 1:27 PM, Camerodity wrote:
>
> > Hello all,
> >  
> > I am currently trying to setup a Custom Fact that will can be used to 
> determine the version of the Java JRE running on a machine, in order to use 
> it in my manifests to ensure the proper JARS are distribured based on 
> environment. I'm trying to use the java -version command and then capture 
> the JRE release (eg "1.6.0_37"). No matter what I have tried, the output is 
> always the full display from the Java -version command. Has anyone done 
> this or something similar before? Any suggestions?
> 
> don't know about the java command but I suspect some variation of this 
> will do it. (%x[ ] captures the output of command(s) executed within the 
> square brackets)
>
> Facter.add("ruby_version") do
>   setcode do
> ruby_version = "unknown"
> rubypath = %x[facter rubysitedir]
> ruby_version = %x[ruby -v | cut -f2 -d ' ']
> ruby_version
>   end
> end
>
> Craig
>
> -- 
> 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 .
> To post to this group, send email to puppet...@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_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...@googlegroups.com .
> To post to this group, send email to puppet...@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Using Facter to find the Java version running on the machine

2013-02-25 Thread Camerodity
Great! Thank you so much, I used your example and got the desired output. I 
really appreciate your time. 
 
Mike 

On Thursday, February 21, 2013 5:50:24 PM UTC-5, Ygor wrote:

>  java -version 2>&1 | head -n 1 | cut -f2 -d'"'
>
> Apparently, the output goes to stderr !
>
> “Sometimes I think the surest sign that intelligent life exists elsewhere 
> in the universe is that none of it has tried to contact us.”
> Bill Waterson (Calvin & Hobbes)
>
> --
> *From: *"Craig White" >
> *To: *puppet...@googlegroups.com 
> *Sent: *Thursday, February 21, 2013 5:14:14 PM
> *Subject: *Re: [Puppet Users] Using Facter to find the Java version 
> running on the machine
>
>
> On Feb 21, 2013, at 1:27 PM, Camerodity wrote:
>
> > Hello all,
> >  
> > I am currently trying to setup a Custom Fact that will can be used to 
> determine the version of the Java JRE running on a machine, in order to use 
> it in my manifests to ensure the proper JARS are distribured based on 
> environment. I'm trying to use the java -version command and then capture 
> the JRE release (eg "1.6.0_37"). No matter what I have tried, the output is 
> always the full display from the Java -version command. Has anyone done 
> this or something similar before? Any suggestions?
> 
> don't know about the java command but I suspect some variation of this 
> will do it. (%x[ ] captures the output of command(s) executed within the 
> square brackets)
>
> Facter.add("ruby_version") do
>   setcode do
> ruby_version = "unknown"
> rubypath = %x[facter rubysitedir]
> ruby_version = %x[ruby -v | cut -f2 -d ' ']
> ruby_version
>   end
> end
>
> Craig
>
> -- 
> 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 .
> To post to this group, send email to puppet...@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] How to check service status to write monit snippet.

2013-02-25 Thread Felix Frank
Hi,

I'm almost certain I don't really understand your problem, but here's
the most simple answer, so we can work from there:

Your ENC should set a variable value for each service on each node, e.g.:

$ssh => true
$ntp => false
...

If a given value is true, include the snippet. If not, don't.

On 02/23/2013 06:33 PM, eduardo wrote:
>  Hi all.
>  I'm working on monit module. I have an array of services to configure
> monit via ENC.
>  I need a consistent module logic so services arriving as input
> parameter must running on node agent.
> 
>  I'm trying to find out if there is services running to configure monit
> snippets.
>  So, The snippet will be only written into /etc/monit/conf.d when
> service is running.
> 
>  Let's say an input parameter like :
> 
>   services => ['ntp','ssh']
> 
>  But ntp service is not running. In that case I need the snippet for
> 'ntp' service not be written on conf.d
> 
>  Is there simple way to do it ?.
> 
> 
>  Thanks in advanced, eduardo.

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] gem packages installed directory on puppetmaster

2013-02-25 Thread Felix Frank
Hi,

I don't really understand the problem.

On 02/22/2013 07:29 PM, Sai_Emc wrote:
> /opt/puppet/lib/gems/1.8/gems/hiera-0.3.0
> /opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0
>  
> Later when I updated to new version of hiera then it installed (via gem
> install) under
>  
> /opt/puppet/lib/gems/1.8/gems/hiera-1.1.1
> /opt/puppet/lib/gems/1.8/gems/hiera-puppet-1.0.0

Are these not the same base directories? It's not really clear why one
would work and not the other.

> /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb

Do you have this file? Or is ruby looking for that?

You may need to fix your RUBYLIB environment. Have you tried
reinstalling the older hiera version.

HTH,
Felix

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: .erb templates are not properly parsed.

2013-02-25 Thread Marc Bolós
Felix,

Thanks for your tips.


2013/2/25 Felix Frank 

> On 02/22/2013 07:19 PM, jcbollinger wrote:
> > So finally my conclusion is that when you declase a node, includes
> > order matters.
> >
> >
> > Yes, it does.
>
> ...but I'd argue that this should not be your final conclusion.
>
> It has been my experience (but this may be a question of manifest
> culture) that parse order cannot be predicted anymore once manifest
> complexity has reached a certain point. Think a network of dozens of
> modules that are intertwined.
>
> Therefor, what I take from reading this thread is: Do not try and build
> system configuration based on a list of included classes or similar
> meta-information.
> Instead, devise a mechanism that yields the needed information on a
> sound basis, that is less likely to break due to random manifest
> restructuring in the future.
>
> Cheers,
> Felix
>
> --
> 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 post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 
"The computer security is an art form. It's the ultimate martial art."

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: Regd applying condition

2013-02-25 Thread yarlagadda ramya
yes...thankyou...will apply it..

On Monday, 25 February 2013 12:34:16 UTC+5:30, yarlagadda ramya wrote:
>
> Hi all,
> This is the class i have written for downloading and installing jdknow 
> i want to apply a condition using if for it such that...this downloads the 
> file and installs it only if the jdk1.6.0_24.tar.gz file is not present in 
> the specified directory...am trying for it...but not getting..can any one 
> plsss help me with this
> class maininstall {
> $software = "/app/tcs/puppetdemo/software"
> $server = "/app/tcs/puppetdemo/server"
> $URL = "http://192.168.24.171:8080/softwares/jdk1.6.0_24.tar.gz";
> $file = "/app/tcs/puppetdemo/software/"
>
> exec{"download_jdk":
>   command => "/usr/bin/wget $URL",
>   cwd => "$software",
> }
>
> exec {"untar_jdk":
>command => "/bin/tar -C /app/tcs/puppetdemo/server/ -zxf 
> /app/tcs/puppetdemo/software/jdk1.6.0_24.tar.gz",
>cwd => "$server",
> }
>
> Exec['download_jdk'] -> Exec['untar_jdk']
>
> }
>
>
>
>
>
> }
>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: .erb templates are not properly parsed.

2013-02-25 Thread Felix Frank
On 02/22/2013 07:19 PM, jcbollinger wrote:
> So finally my conclusion is that when you declase a node, includes
> order matters.
> 
> 
> Yes, it does.

...but I'd argue that this should not be your final conclusion.

It has been my experience (but this may be a question of manifest
culture) that parse order cannot be predicted anymore once manifest
complexity has reached a certain point. Think a network of dozens of
modules that are intertwined.

Therefor, what I take from reading this thread is: Do not try and build
system configuration based on a list of included classes or similar
meta-information.
Instead, devise a mechanism that yields the needed information on a
sound basis, that is less likely to break due to random manifest
restructuring in the future.

Cheers,
Felix

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Regd applying condition

2013-02-25 Thread Nikola Petrov
Check the creates in the exec documentation. It will make the exec type
to execute as long as the file *doesn't*exist


-- 
Nikola

On Sun, Feb 24, 2013 at 11:04:16PM -0800, yarlagadda ramya wrote:
> Hi all,
> This is the class i have written for downloading and installing jdknow 
> i want to apply a condition using if for it such that...this downloads the 
> file and installs it only if the jdk1.6.0_24.tar.gz file is not present in 
> the specified directory...am trying for it...but not getting..can any one 
> plsss help me with this
> class maininstall {
> $software = "/app/tcs/puppetdemo/software"
> $server = "/app/tcs/puppetdemo/server"
> $URL = "http://192.168.24.171:8080/softwares/jdk1.6.0_24.tar.gz";
> $file = "/app/tcs/puppetdemo/software/"
> 
> exec{"download_jdk":
>   command => "/usr/bin/wget $URL",
>   cwd => "$software",
> }
> 
> exec {"untar_jdk":
>command => "/bin/tar -C /app/tcs/puppetdemo/server/ -zxf 
> /app/tcs/puppetdemo/software/jdk1.6.0_24.tar.gz",
>cwd => "$server",
> }
> 
> Exec['download_jdk'] -> Exec['untar_jdk']
> 
> }
> 
> 
> 
> 
> 
> }
> 
> -- 
> 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 post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] I can't access modules, for some reason

2013-02-25 Thread Ryan Coleman
On Sun, Feb 24, 2013 at 9:11 PM, James Gill  wrote:

> Am I missing something?  Does something else have to be set up for me to
> access modules?  Detailed output below.
>

Try running `sudo puppet config print modulepath`. While you're using
`puppet apply` as a super user, every other command you've offered is run
as your user account. I'm betting that the different contexts have separate
modulepaths so you'll want to move things around or re-run your `puppet
module` commands with sudo.

Cheers!


-- 
Ryan Coleman | Modules & Forge | @ryanycoleman | ryancoleman in #puppet

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Puppet Mssql Module

2013-02-25 Thread Rakesh Kathpal
Hi,

I am trying to use the module *
https://github.com/puppetlabs/puppetlabs-mssql* for my windows 2003 server
and am getting the error below

-

err: /Stage[main]/Mssql/User[SQLSVC]/ensure: change from absent to present
fail
d: User update failed: SetInfo
OLE error code:800708C5 in 
  
HRESULT error code:0x80020009
  Exception occurred.
err: /Stage[main]/Mssql/User[SQLASSVC]/ensure: change from absent to
present fa
led: User update failed: SetInfo
OLE error code:800708C5 in 
  
HRESULT error code:0x80020009
  Exception occurred.

---

*Please note I have already taken care of the dism[netfx3] dependency and
also install the neccessary hotfix required for sql installation. I am
trying to install mssql 2008 R2.* *And my puppet version is 2.7.20.*

Anyone having any info. on this then please help me out...

Thanks & Regards,

Rakesh K.

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.