[Puppet Users] Re: Announce: Puppet 3.0.0-rc4 Available

2012-08-25 Thread Sandra Schlichting
Does there exist a tracker bug of blocking bugs for final release?


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/d0xADxbjGzUJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Package upgrade - how to organize ?

2012-08-25 Thread Jakov Sosic

On 08/24/2012 10:07 PM, New user wrote:

Hello,

we slowly are trying to get into Puppet world. So far we have basic
configuration for a few hosts.
In the next step I'd like to get automatic packages upgrade (CentOS/RH)
on each Puppet-managed server but since
there are first (the most important), second (little less important),
third, testing  line of servers
I would like to upgrade packages on testing servers then (a week later)
on third line of server then (another week later)
second and so on. Could you recommend how to approach this problem ?


I'm also interested in this one...

You could use strict version adherences in your manifests (package 
{blah: ensure = 'version', }), and use different environments on 
different line of servers.


But the problem I see with this approach is that only packages 
explicitly defined in your manifests will get upgraded, and just *part* 
of their dependencies. For example centos-release package won't be 
upgraded ever.


So if anyone has any better approach in automating upgrades I would be 
more than interested too...




--
Jakov Sosic
www.srce.unizg.hr

--
You received this message because you are subscribed to the Google Groups Puppet 
Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] puppetlabs jenkins setup

2012-08-25 Thread Choon Ming Goh
Hi,

I'm in the middle of setting up jenkins for testing and building our puppet 
modules. I'm quite new at this and been trying to make it work the way i 
wanted but in reality it doesnt. There are a few issues/questions that I 
hope someone in puppetlabs/jenkins can help me with:

1. module dependency - how do I build and test modules is dependent on 
another module that is being built at the same time using rspec in jenkins. 
The good example is rtyler's jenkins module

2. how can I have jenkins to create a tarball of the module and made it 
available for download whenever I click on the builds?

This is what I can think of for now and if anyone have an idea please do 
help.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/n1qm-r0y5UAJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] JBOSS installation and Configuration through puppet

2012-08-25 Thread Ajeet Raina
Hi All,

I have puppet server and client ready. I found JBOSS module and manifests 
under 
https://github.com/example42/puppet-jboss/https://github.com/example42/puppet-jboss/blob/master/manifests/init.pp
 and 
imported it through git.
I am encountering these isse while  I run :

http://pastebin.com/S67JqmSK 

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/iaYlyzVcuLUJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: newish puppet on RHEL4 and/or SLES9?

2012-08-25 Thread Jason Antman
I know I haven't responded in a while, but thank you to everyone who 
gave advice/experience/encouragement. Progress has been slow, mainly due 
to other projects, but at this point I'm trying to hold off on building 
my new master (even though it's really needed) until I have a built and 
tested maximum version of puppet on the old OSes.


I've decided to tackle RHEL4 first, as I think it will be easier, and 
I've got more of those boxes to deal with. This morning I got a 
successful build of ruby 1.8.7-p299, using Karanbir Singh's RHEL5 srpm 
from 
http://centos.karan.org/el5/ruby187/SRPMS/ruby-1.8.7.299-4.el5.kb.src.rpm. 
Unfortunately I couldn't get ruby-tk to build for 64-bit, but I just 
gave up on that and wrapped it in an 'ifnarch x86_64'.


Assuming all goes well, I should have the rest of the dependencies, as 
well as (hopefully 2.7.somethingNew) packaged for RHEL4 by the end of 
the week. I'll likely post my specfiles and srpms somewhere public.


As to SLES9, I found a thread here from 2 years ago (Installing puppet 
0.25.5 on SLES 9 64 bit, 
https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/0GaSd3Z2BSQ) 
where Thorsten Biel reported packaging ruby 1.8.7 on SLES9 x86_64. It 
looks like the specfile/SRPMs never made it anywhere public, but I've 
dropped him an email in the hopes that he still has them. If not, I 
guess I'll tackle that when RHEL is done.


Thanks Again,
Jason Antman

On 08/22/2012 01:34 PM, Nick Fagerlund wrote:
The advice above is generally pretty good -- for best results build 
your own Ruby packages, etc. etc.


One thing I can add: Given that even RHEL 5 has a pretty ancient Ruby, 
you might want to run puppet agent via cron jobs (with --splay) 
instead of as a daemon. The daemon is generally okay on Ruby 1.8.7 
with a modern patch number, but 1.8.5 leaks memory like a sieve with 
long-running processes.


('Puppet resource' code for creating the cron jobs is the second 
example in this section: 
http://docs.puppetlabs.com/guides/installation.html#with-cron)

--
You received this message because you are subscribed to the Google 
Groups Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/Q0h1Oq5ZcowJ.

To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.


--
You received this message because you are subscribed to the Google Groups Puppet 
Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] How to syntax debug in puppet 3?

2012-08-25 Thread Jakov Sosic

On 08/24/2012 06:55 PM, Ramin K wrote:

On 8/24/2012 6:01 AM, Dan White wrote:

The author of vim-puppet says in the README that they use something
called pathogen to manage their vim modules.

I found this: https://github.com/tpope/vim-pathogen


 If vim is your primary editing environment install vim-pathogen,
takes two minutes, and be done. Allows vim to load dirs out of
~/.vim/bundle/ and I usually git clone new vim plugins directly into it.
Well worth the time to not dig through .vim/syntax|ftplugin|etc|etc
directories.


Yeah.

I use pathogen + syntastic.



--
Jakov Sosic
www.srce.unizg.hr

--
You received this message because you are subscribed to the Google Groups Puppet 
Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] puppetlabs jenkins setup

2012-08-25 Thread Justin Stoller
On Sat, Aug 25, 2012 at 6:14 AM, Choon Ming Goh choonming2...@gmail.com wrote:
 Hi,

 I'm in the middle of setting up jenkins for testing and building our puppet
 modules. I'm quite new at this and been trying to make it work the way i
 wanted but in reality it doesnt. There are a few issues/questions that I
 hope someone in puppetlabs/jenkins can help me with:

 1. module dependency - how do I build and test modules is dependent on
 another module that is being built at the same time using rspec in jenkins.
 The good example is rtyler's jenkins module

You'll need (at this point) fixtures for those other modules. Have you
tried reading Branan's blog post about getting started module testing?
http://puppetlabs.com/blog/the-next-generation-of-puppet-module-testing/
  if I remember right there's either an example of fixtures there or a
link to a module that at least uses them (seeing code always helps).

 2. how can I have jenkins to create a tarball of the module and made it
 available for download whenever I click on the builds?

Go to the 'workspace' of the build. ( at
www.myjenkinsserver.com/job/My Job Name/ws ) This will let you click
through the artifacts of the build (and gives you the option to
download as a zip). You can add a build step after your main tests to
create a tarball. You can also look into a publisher plugin to do that
for you ( 
https://wiki.jenkins-ci.org/display/JENKINS/Plugins#Plugins-Artifactuploaders
).


HTH,
Justin



 This is what I can think of for now and if anyone have an idea please do
 help.

 Thanks

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/puppet-users/-/n1qm-r0y5UAJ.
 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Announce: Puppet 3.0.0-rc4 Available

2012-08-25 Thread Justin Stoller
On Sat, Aug 25, 2012 at 3:45 AM, Sandra Schlichting
littlesandr...@gmail.com wrote:
 Does there exist a tracker bug of blocking bugs for final release?

Redmine supports filtering tickets by their target version. You can
filter based on which are still open and targeted at 3.0.0. This link
might work for you (or might require you to log in first):

https://projects.puppetlabs.com/projects/puppet/issues?set_filter=1f[]=status_idop[status_id]=of[]=fixed_version_idop[fixed_version_id]=%3Dv[fixed_version_id][]=271f[]=c[]=projectc[]=trackerc[]=statusc[]=priorityc[]=subjectc[]=assigned_toc[]=fixed_versiongroup_by=




 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/puppet-users/-/d0xADxbjGzUJ.

 To post to this group, send email to puppet-users@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] How can MCollective replace puppet kick?

2012-08-25 Thread Sandra Schlichting
Dear readers,

I was shocked to see that puppet kick will be deprecated in 3.0.0
https://projects.puppetlabs.com/issues/15735

How can MCollective replace puppet kick?

Hugs,
Sandra

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/HQEcVmzv6AMJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] How can MCollective replace puppet kick?

2012-08-25 Thread James Turnbull
Sandra Schlichting wrote:
 Dear readers,
 
 I was shocked to see that puppet kick will be deprecated in 3.0.0
 https://projects.puppetlabs.com/issues/15735
 
 How can MCollective replace puppet kick?

http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/AgentPuppetd

Regards

James Turnbull

-- 
James Turnbull
Puppet Labs
1-503-734-8571
To schedule a meeting with me: http://tungle.me/jamtur01

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] How can MCollective replace puppet kick?

2012-08-25 Thread Sandra Schlichting


  How can MCollective replace puppet kick? 


 http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/AgentPuppetd 


I don't know what MCollective is, and that link doesn't say anything that 
will explain it or how I can push configs to nodes =(

 

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/0oZQHLEVsXgJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] How can MCollective replace puppet kick?

2012-08-25 Thread Nick Fagerlund


On Saturday, August 25, 2012 11:44:57 AM UTC-7, Sandra Schlichting wrote:

  How can MCollective replace puppet kick? 


 http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/AgentPuppetd
  


 I don't know what MCollective is, and that link doesn't say anything that 
 will explain it or how I can push configs to nodes =(

  

MCollective is a service that runs on every node. It constantly polls a 
message queue server for real-time messages and sometimes responds to them 
by performing actions. 

You use a command-line client app to send messages, and you can set filters 
on each message so only certain nodes or groups of nodes will respond to 
them. Every node that matches a message will react simultaneously when the 
message goes out. 

Each node has a set of actions it can run, provided by plugins. The 
puppetd plugin lets you control puppet agent, but it's better than puppet 
kick: It can trigger runs even if puppet agent usually runs via cron 
instead of as a service, it can enable and disable puppet runs, and it can 
fetch last run summaries. MCollective also lets you be smarter about 
triggering runs because it doesn't limit you to hostnames; you can filter 
by puppet class, facts, etc. 

Does that help? 

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/OkhrYAQzIdcJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] How can MCollective replace puppet kick?

2012-08-25 Thread Sandra Schlichting


 MCollective is a service that runs on every node. It constantly polls a 
 message queue server for real-time messages and sometimes responds to them 
 by performing actions. 

 You use a command-line client app to send messages, and you can set 
 filters on each message so only certain nodes or groups of nodes will 
 respond to them. Every node that matches a message will react 
 simultaneously when the message goes out. 

 Each node has a set of actions it can run, provided by plugins. The 
 puppetd plugin lets you control puppet agent, but it's better than puppet 
 kick: It can trigger runs even if puppet agent usually runs via cron 
 instead of as a service, it can enable and disable puppet runs, and it can 
 fetch last run summaries. MCollective also lets you be smarter about 
 triggering runs because it doesn't limit you to hostnames; you can filter 
 by puppet class, facts, etc. 

 Does that help? 


Absolutely =)

Wow! That is impressive.

I have seen the puppet agent taking ~100MB of ram.

Is MCollective also written in Ruby, and therefore take a lot of ram?

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/VK67c2UfgG4J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] How can MCollective replace puppet kick?

2012-08-25 Thread Eric Shamow
Sandra,

The mcollective agent is written in Ruby, but it's really tiny.  You can use 
the mco controller plugin to view resource utilization over time, and it's 
generally infinitesimal.

-Eric 

--

Eric Shamow
Professional Services
http://puppetlabs.com/
(c)631.871.6441

Join us for PuppetConf 2012 at the Mission Bay Convention Center in San 
Francisco, California on September 27th and 28th -- http://bit.ly/pcsig12


On Saturday, August 25, 2012 at 3:33 PM, Sandra Schlichting wrote:

  MCollective is a service that runs on every node. It constantly polls a 
  message queue server for real-time messages and sometimes responds to them 
  by performing actions. 
  
  You use a command-line client app to send messages, and you can set filters 
  on each message so only certain nodes or groups of nodes will respond to 
  them. Every node that matches a message will react simultaneously when the 
  message goes out. 
  
  Each node has a set of actions it can run, provided by plugins. The 
  puppetd plugin lets you control puppet agent, but it's better than puppet 
  kick: It can trigger runs even if puppet agent usually runs via cron 
  instead of as a service, it can enable and disable puppet runs, and it can 
  fetch last run summaries. MCollective also lets you be smarter about 
  triggering runs because it doesn't limit you to hostnames; you can filter 
  by puppet class, facts, etc. 
  
  Does that help? 
 
 Absolutely =)
 
 Wow! That is impressive.
 
 I have seen the puppet agent taking ~100MB of ram.
 
 Is MCollective also written in Ruby, and therefore take a lot of ram?
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/puppet-users/-/VK67c2UfgG4J.
 To post to this group, send email to puppet-users@googlegroups.com 
 (mailto:puppet-users@googlegroups.com).
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com 
 (mailto:puppet-users+unsubscr...@googlegroups.com).
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] How can MCollective replace puppet kick?

2012-08-25 Thread Sandra Schlichting


 The mcollective agent is written in Ruby, but it's really tiny.  You can 
 use the mco controller plugin to view resource utilization over time, and 
 it's generally infinitesimal.


Great. Thanks =)

MCollective sounds very useful!


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/p5NoVALxeaQJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] How can MCollective replace puppet kick?

2012-08-25 Thread Johan Kamb
On Sat, Aug 25, 2012 at 8:44 PM, Sandra Schlichting 
littlesandr...@gmail.com wrote:

  How can MCollective replace puppet kick?

 http://projects.puppetlabs.**com/projects/mcollective-**
 plugins/wiki/AgentPuppetdhttp://projects.puppetlabs.com/projects/mcollective-plugins/wiki/AgentPuppetd


 I don't know what MCollective is, and that link doesn't say anything that
 will explain it or how I can push configs to nodes =(


http://projects.puppetlabs.com/projects/mcollective gives a bit more
information on mcollective itself. You don't actually push configs to nodes
with it; you have a client which tells all machines that matches a fact
to trigger a puppet run. The puppetd agent plugin is required for this to
work.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] The rewritten Puppet 2.7 language reference is live

2012-08-25 Thread Henrik Lindberg

Hi,

On 2012-25-08 1:02, Nick Fagerlund wrote:

Yeah that reply isn't coming back. Anyway, I was totally hoping you'd
chime in with some holes you found. :)


Comments below...

On Friday, August 24, 2012 6:33:01 AM UTC-7, Henrik Lindberg wrote:

- How do I create strings that span multiple lines? (Since there is no
string concatenation operator 'x' + 'y' does not work). Can I write a
string that continues on the next line? If so, is the newline included
or not? Can I tell it to not include the newline? How is the line-break
encoded - if it is CR-LF in the pp-file, does the string contain
that at
runtime?



Added this! Line breaks are preserved, line break format is preserved
(so whatever you used in the file, that's what you get in your strings,
I don't like it either), you can use \n to get literal Unix line breaks,
but you can't use \r\n to get Windows ones because \r doesn't exist.
There isn't an ignore-whitespace option for strings.

So, I guess you really have to use a template file instead if you want 
something long and/or need more control over whitepsace.



- Can I write more complex expressions in an interpolation? Can I do
something like The sum is ${$a + $b}, and if that is the case, is it
possible to have any expression interpolated (including nested strings
with interpolation)?


Nope! Thanks for reminding me about this, I remember trying to make
Puppet do this and being disappointed.

The thing is that it is supported in the parser (at least IIRC, but I 
have not checked the last couple of months if anything changed). So the 
question is if it is supposed to be in the language or not even if not 
implemented correctly (i.e. language bug, or runtime bug?).




- The compiler allows ${a} without double quotes - which is a string
interpolation of $a. Which IIRC is slightly different than using $a
directly (getting an empty string if $a is undefined). I don't recall
seeing that in the documentation on the first read through.


If the parser allows this, it's getting blocked elsewhere in the system,
because Puppet definitely fails compilation hard if you try to use
${var} outside a double-quoted string.

Makes sense, and I should adjust Geppetto validation. It now accepts 
${var} to have the same meaning as ${var}. One wonders why it is in 
the grammar in the first place - maybe just a bug, or to give an 
opportunity to say ${var} must be placed in a double quoted string?



- IIRC, Use of numerical variables $0 - $9 as a result of regular
expression matching was not mentioned. When talking about variables I
think it is worth noting that you should not use $0 - $9 for anything
else (or you may be surprised as the regexp match creates an inner
scope
where these variables refer to match results). (IMO use of $0-$9 should
be reserved for that purpose and they should not be assignable).


Ahhh good call. Actually, I just tested and it looks like assigning
directly to $\d is a no-op??? That's pretty wild. Anyway, putting them
in as reserved variable names.


- Arrays and Hashes are mutable; which is either an bug or a language
feature. While it is not allowed to directly change a variable, it can
be indirectly modified if it refers to an array or hash. Great if the
documentation can clarify if this is a supported feature or should be
avoided. i.e. $a = [1,2,3] $a[0] = 10. (IMO, this is problematic as any
logic can refer to the variable and assign to an entry - at least
last I
tried).


D: EWW. Problematic is putting it mildly, especially since behavior
is inconsistent between arrays and hashes. (Both can add, only arrays
can reassign to existing indexes.) But I'd better document it anyhow.

The thing is, if arrays and hashes are immutable (as they should be), 
there is no meaning to have [] operator produce a Lvalue at all - i.e. 
can't assign something to the result. The only possible interpretation 
of say $a[3]= 10 when they are immutable is to create a new variable $a 
with an array assigned where 0-2 are undefined and 3 is assigned to 10. 
Seems like a completely useless construct.


Passing arrays and hashes to functions is naturally a potential danger.

- henrik

--
You received this message because you are subscribed to the Google Groups Puppet 
Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] What is meaning of | | ~ signal

2012-08-25 Thread NewpTone
Hi,I'm studying the puppetlabs-openstack module for deploying openstack, 
there is sytax confusing me in the manfests file:

 Swift::Ringbuilder::Create['object'] - Ring_object_device | | ~ 
 Swift::Ringbuilder::Rebalance['object']


I just know - means notify ,but what does | | ~mean? I didn't find the 
related document on the puppet site.
I really appreciate if  anyone can help me.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/Tys_jHXMDHwJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] What is meaning of | | ~ signal

2012-08-25 Thread Tim Sharpe
Hi, 

- and - create ordering relationships (like the require and before 
metaparameters)
~ and ~ create notify relationships (like the notify and subscribe 
metaparameters)

You can read more about them at 
http://docs.puppetlabs.com/puppet/2.7/reference/lang_relationships.html#chaining-arrows

Cheers,
Tim


On Saturday, 25 August 2012 at 8:22 PM, NewpTone wrote:

 Hi,I'm studying the puppetlabs-openstack module for deploying openstack, 
 there is sytax confusing me in the manfests file:
 
   Swift::Ringbuilder::Create['object'] - Ring_object_device | | ~ 
  Swift::Ringbuilder::Rebalance['object']
 
 I just know - means notify ,but what does | | ~mean? I didn't find the 
 related document on the puppet site.
 I really appreciate if  anyone can help me.
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/puppet-users/-/Tys_jHXMDHwJ.
 To post to this group, send email to puppet-users@googlegroups.com 
 (mailto:puppet-users@googlegroups.com).
 To unsubscribe from this group, send email to 
 puppet-users+unsubscr...@googlegroups.com 
 (mailto:puppet-users+unsubscr...@googlegroups.com).
 For more options, visit this group at 
 http://groups.google.com/group/puppet-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: logoutput=on_failure doesn't work as expected

2012-08-25 Thread mthebie99
T

On Thursday, February 17, 2011 3:33:43 PM UTC-8, Bryan wrote:
 I'm using puppet 0.25.1. I've got a simple resource: exec { /bin/ls 
 $oracle_base/dba/bin/database_backup.ksh: logoutput = on_failure, } and I 
 don't want it to log every time it's successfully run: $ sudo tail -F 
 /var/log/messages | grep puppetd Feb 17 16:36:11 test puppetd[26614]: 
 (//my_module/Exec[/bin/ls /u01/ 
 app/oracle/dba/bin/database_backup.ksh]/returns) executed successfully but 
 logoutput = on_failure doesn't suppress the above message. Is that parameter 
 not available in my version of puppet, or am I perhaps misunderstanding its 
 purpose? I'm guessing the latter since it looks like it was introduced 3 
 years ago. In the meantime, I'm using this ugly, redundant hack to do what I 
 want: exec { /bin/ls $oracle_base/dba/bin/database_backup.ksh: unless = 
 /bin/ls $oracle_base/dba/bin/database_backup.ksh, } Thanks!

This is an old one, but I found it ALMOST useful.  I'd like to take this one 
step further:

I have a subscribe statement on a service that requires a file. And, now I have 
the error on the non-existent file, it is still trying to run the service. I 
have tried every possible way to bypass this, even with an exec (file not 
found). Since the exec statement itself is successful (in not finding the 
file), it sill launches the service dependent on that file. 
Finally, I really don't want errors to go to the client syslog... that is the 
whole reason why I want to do the checking first.  To avoid errors in syslog 
when the service fails (for reason of a lacking patch... another issue: how to 
work with patching if grep for patch; exists/not exists; optional run). I'll 
keep looking but this lack of conditional services is painful.

file {'clientxml':
path = /var/svc/manifest/network/sendmail-client.xml,
ensure = true,
backup = false,
noop = true,
loglevel = err,
}
service { clientmail:
name = sendmail-client:default,
manifest = /var/svc/manifest/network/sendmail-client.xml,
provider = smf,
enable = true,
hasrestart = true,
require = File['clientxml']
}

Example:

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/KuU0kquGRWkJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.