Re: [Puppet Users] Re: Attending PuppetConf?

2012-08-26 Thread James Turnbull
Sam Kottler wrote:
 Sorry, this was supposed to go to the Foreman list. My apologies.
 

That's totally okay Sam. :)  We'd love a Foreman meetup at PuppetConf.
Happy to help facilitate so let me know if I can help.

James

-- 
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-26 Thread Sandra Schlichting


 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.


Thanks for clearing that out =)

It definitely sounds useful for other things as well, so I will install it 
once I have puppet 3 up and running =)

 

-- 
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/-/0Jd63QV4FsoJ.
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-26 Thread Dan White
Is MCollective part of Puppet Enterprise ?

I cannot find documentation that says yea or nay.

On Aug 25, 2012, at 3:11 PM, Johan Kamb wrote:

 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/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] How can MCollective replace puppet kick?

2012-08-26 Thread Dan White
Spoke too soon !

Found it !

http://docs.puppetlabs.com/pe/2.5/orchestration_overview.html
PE’s orchestration features are built on the MCollective framework

On Aug 26, 2012, at 12:52 PM, Dan White wrote:

 Is MCollective part of Puppet Enterprise ?
 
 I cannot find documentation that says yea or nay.
 
 On Aug 25, 2012, at 3:11 PM, Johan Kamb wrote:
 
 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/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] What is meaning of | | ~ signal

2012-08-26 Thread James Turnbull
Tim Sharpe wrote:
 Hi,
 
 - and - create ordering relationships (like the require and before
 metaparameters)
 ~ and ~ create notify relationships (like the notify and subscribe
 metaparameters)
 

And the | | symbols are resource collectors:

http://docs.puppetlabs.com/puppet/2.7/reference/lang_collectors.html

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.



[Puppet Users] Dynamic scoping deprecated - for defines also?

2012-08-26 Thread Bostjan Skufca
Hello,

in my logs I noticed deprecation warnings like this one:
Dynamic lookup of $VARIABLE at FILE:LINE is deprecated. For more 
information, see http://docs.puppetlabs.com/guides/scope_and_puppet.html. 
To see the change in behavior, use the --debug flag.

Ok, I go to the URL, I can see the reasoning behind this. BUT!

In the code I do not use classes that trigger this warning, but defines.

Example that I would expect would trigger the warning above:
---
### File: module1/manifests/dir/file.pp
class module1::dir::file {
resource1 {...} # Uses $param3
resource2 {...}
resource3 {...}
}


### File: module2/manifests/something.pp
class   module2::something {
   $param3 = 'asdf'
   include 'module1::dir::file'
}




Example below that I use (not with class inclusion, but with defines),
and it was not expected to trigger warning, because:
---
### File: module1/manifests/dir/file.pp
define   module1::dir::file {
resource1 {...}# Uses $param3
resource2 {...}
resource3 {...}
}


### File: module2/manifests/something.pp
class   module2::something {
   $param3 = 'asdf'
   module1::dir::file { someName: param1=1 }
}


Defines are not exempt to that deprecation? How come?

b.

-- 
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/-/TYJCFw5F-joJ.
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-26 Thread Walter Heck
mcollective is stand-alone software, it doesn't actually require
puppet. It's also free and open source. The only thing you get with PE
is the live management fature in the dashboard, which is essentially a
GUI for mcollective if I'm not mistaken.

cheers,

Walter

On Mon, Aug 27, 2012 at 12:54 AM, Dan White y...@comcast.net wrote:
 Spoke too soon !

 Found it !

 http://docs.puppetlabs.com/pe/2.5/orchestration_overview.html
 PE’s orchestration features are built on the MCollective framework

 On Aug 26, 2012, at 12:52 PM, Dan White wrote:

 Is MCollective part of Puppet Enterprise ?

 I cannot find documentation that says yea or nay.

 On Aug 25, 2012, at 3:11 PM, Johan Kamb wrote:

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



-- 
Walter Heck

--
Check out my startup: Puppet training and consulting @ http://www.olindata.com
Follow @olindata on Twitter and/or 'Like' our Facebook page at
http://www.facebook.com/olindata

-- 
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-26 Thread Eric Shamow
You get a good bit more than that - PE sets up the ActiveMQ stuff for you and 
handles key setup/exchange, which is fairly difficult to do by hand the first 
time if you aren't familiar with the stuff.  As it is, any PE node you add to 
your PE master automatically gets added to your mcollective environment, which 
is quite nice.

--

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 Sunday, August 26, 2012 at 3:30 PM, Walter Heck wrote:

 mcollective is stand-alone software, it doesn't actually require
 puppet. It's also free and open source. The only thing you get with PE
 is the live management fature in the dashboard, which is essentially a
 GUI for mcollective if I'm not mistaken.
  
 cheers,
  
 Walter
  
 On Mon, Aug 27, 2012 at 12:54 AM, Dan White y...@comcast.net 
 (mailto:y...@comcast.net) wrote:
  Spoke too soon !
   
  Found it !
   
  http://docs.puppetlabs.com/pe/2.5/orchestration_overview.html
  PE’s orchestration features are built on the MCollective framework
   
  On Aug 26, 2012, at 12:52 PM, Dan White wrote:
   
  Is MCollective part of Puppet Enterprise ?
   
  I cannot find documentation that says yea or nay.
   
  On Aug 25, 2012, at 3:11 PM, Johan Kamb wrote:
   
  On Sat, Aug 25, 2012 at 8:44 PM, Sandra Schlichting
  littlesandr...@gmail.com (mailto:littlesandr...@gmail.com) 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 =(

   
   
   
  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 
  (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.
   
  
  
  
  
 --  
 Walter Heck
  
 --
 Check out my startup: Puppet training and consulting @ http://www.olindata.com
 Follow @olindata on Twitter and/or 'Like' our Facebook page at
 http://www.facebook.com/olindata
  
 --  
 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 
 (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] What is meaning of | | ~ signal

2012-08-26 Thread Yu Xingchao
Thanks a lot ! Now I know this symbols's meaning.[?]

2012/8/27 James Turnbull ja...@puppetlabs.com

 Tim Sharpe wrote:
  Hi,
 
  - and - create ordering relationships (like the require and before
  metaparameters)
  ~ and ~ create notify relationships (like the notify and subscribe
  metaparameters)
 

 And the | | symbols are resource collectors:

 http://docs.puppetlabs.com/puppet/2.7/reference/lang_collectors.html

 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.



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

330.gif

Re: [Puppet Users] JBOSS installation and Configuration through puppet

2012-08-26 Thread wen1023 wu
the user jobss is exists in you system!

2012/8/25 Ajeet Raina ajeetra...@gmail.com

 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.


-- 
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] What is meaning of | | ~ signal

2012-08-26 Thread wen1023 wu
i had see the puppet cookbook  ,the author suggestion

used require instead of -, and so on

2012/8/27 Yu Xingchao yux...@gmail.com

 Thanks a lot ! Now I know this symbols's meaning.[?]


 2012/8/27 James Turnbull ja...@puppetlabs.com

 Tim Sharpe wrote:
  Hi,
 
  - and - create ordering relationships (like the require and before
  metaparameters)
  ~ and ~ create notify relationships (like the notify and subscribe
  metaparameters)
 

 And the | | symbols are resource collectors:

 http://docs.puppetlabs.com/puppet/2.7/reference/lang_collectors.html

 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.


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


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

330.gif

[Puppet Users] Re: puppetlabs apache module syntax errors

2012-08-26 Thread Shantanu


On Aug 24, 6:24 pm, Ryan Coleman r...@puppetlabs.com wrote:
 Hi Shantanu,

 On Fri, Aug 24, 2012 at 1:52 PM, Shantanu knowshant...@gmail.com wrote:

  I am getting following errors with the latest puppetlabs-apache
  module. I am using Puppet 2.6.16 on CentOS 6.2 OSs and with required
  dependency modules firewall (v0.0.4-80-g63fd433) and stdlib (3.0.0-27-
  g4e25230) installed in the modulepath.

 I'm sorry that you're hitting a problem with this module. Are you
 using the module from the Forge or are you using the code in
 development from GitHub?



  I have included only following class to in a node template:
  class{'apache': }

  When the catalog is being fetched for the first time then I get
  following error:
  {{{
  Could not retrieve catalog from remote server: Error 400 on SERVER:
  Syntax error at 'apache::mod::dav'; expected ']' at /etc/puppet/
  modules/apache/manifests/mod/dav_fs.pp:2

  }}}

 FWIW, I don't receive a parse failure like this when I apply just the
 apache class on a centos 6 machine using Puppet 2.6.16. Is it possible
 that the copy of the module you have has been modified in some way?
 Could you reply with the contents of
 /etc/puppet/modules/apache/manifests/mod/dav_fs.pp ?

Thanks for the reply Ryan. I haven't made any changes after cloning
this module (commit 66d5ce9ae). Following are contents of dav_fs
manifest file:

$ cat /etc/puppet/modules/apache/manifests/mod/dav_fs.pp
class apache::mod::dav_fs {
  Class[apache::mod::dav] - Class[apache::mod::dav_fs]
  apache::mod { 'dav_fs': }
}

Let me know if you need any additional details.

--
Shantanu

-- 
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-26 Thread Henrik Lindberg

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

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


I just tested on puppet 2.7.14...

puppet apply -e '$x = 1 $y =2 $b=x${$x+$y}x notice($b)'
notice: Scope(Class[main]): x3x
notice: Finished catalog run in 0.01 seconds

And

puppet apply -e '$x = 1 $y =2 $b=x${abc${$x+$y}abc}x notice($b)'
notice: Scope(Class[main]): xabc3abcx
notice: Finished catalog run in 0.01 seconds

So - seems to work just fine - at least simple, complex things :)

- 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] how come this works?

2012-08-26 Thread maito
test

-- 
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] HELP ME to setup a framework/system to deploy WebSphere applications

2012-08-26 Thread maito
  Hi guys.  
 I'm new to this but have been going throught the Puppet Learning exercises 
but haven't worked out a framework/system to deploy WebSphere applications. 
I started writing a module that calls a Unix script (which invokes Jython) 
but now I really need your help to FIRST OF ALL set it all up to utilise 
the master/agent configuration to manage the differences between 
environments and applications. That is:  * which classes to write  * 
whether to use defined classes (which parameter values to pass)  * use 
inheritances  * our environments are different (eg. multiple location of 
wsadmin.sh to invoke Jython, with different cellnames and sometimes 
different values for -MapModulesToServers/-MapResRefToEJB/-MapRolesToUsers) 
so probably need to use some sort of config file (but something with CSV 
format or maybe other type of delimiter so I can control/populate new apps 
from there to deploy so it must be self manage rather than having to write 
new code and that's easy to summarise and later compare to different 
environment - see below). I may be wrong here in that we may not need this 
but at least a way to tell Puppet that this application is different 
especially in certain environments  * use various templates (or use 1 
template with variables in there)  
 #autodeploy.cfg  #type, app, appname, EAR destination, deployWS, ...  ear, 
Claims, ClaimsEAR, \$(APP_INSTALL_ROOT)/Cell01,,  ear, ClaimsReporting, 
ClaimsReportingEAR, \$(APP_INSTALL_ROOT)/\$(WAS_CELL_NAME),,  ear, 
DMOrchestra, dm-orchestra-service-ear, 
\$(APP_INSTALL_ROOT)/\$(WAS_CELL_NAME), -deployws  jar,   xml,   
 An example deployment tree structure of a typical WebSphere application 
where the logic below must iterate through (if it exists):  
/mnt/autodeploy/SIT/Claims/claims-admin-ear-5.1.15.ear  
/mnt/autodeploy/SIT/ClaimsReporting/ClaimsReporting-claims_reporting_ITPC-107.ear
  
/mnt/autodeploy/UAT/Claims/claims-admin-ear-5.1.15.ear  
/mnt/autodeploy/UAT/ClaimsReporting/ClaimsReporting-claims_reporting_ITPC-107.ear
  
/mnt/autodeploy/UAT/ContentUploadService  /mnt/autodeploy/UAT/Unknown   
[Unknown 
app not listed in config file so display message]  
 If you know Jython (WebSphere's scripting language) then great as 
currently we don't even detect for the cellname. Later on I want to 
transfer the Unix logic (if/for loop statements) to Puppet/Ruby language, 
see below for a draft plan.

*Step* *
* *
* *
* *
* *Initial Tool* *Proposed Tool* *Additional info*  display date 


Unix Puppet 
 








 for each directory in T:\Autodeploy 
Unix Puppet Values to pass (parameter or defined class)?  
for any *.ear/.jar/.xml file 
Unix Puppet Need? Array or Puppet template or config file (see below - use 
cut/awk/sed?)…  

if ear file 

Unix Puppet 
 


display msg 'Which ear file's backup' 


 


backup old ear file 
Jython 

 


identify cell 
Jython 

 


update app 
Jython 

 


rename/delete new ear file Unix Puppet 
 








 

else jar file 

Unix Puppet 
 








 








 








 

else xml file 

Unix Puppet 
 








 








 

else 





 


display msg 'Nothing found at that directory' 

 

-- 
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/-/v-FCf6WrEtYJ.
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: HELP ME to setup a framework/system to deploy WebSphere applications

2012-08-26 Thread maito
rather than downloading a Puppet Module (there's none for WebSphere) or 
whatever I'm trying to do anyway (well I couldn't find it) so I tried to 
write myself but finding it challenging to set it up so appreciate all the 
help I can get but first just to set it up and have the POC showcased by 
this Friday. We can build on it later on.

On Monday, 27 August 2012 13:37:34 UTC+10, maito wrote:

  Hi guys.  
  I'm new to this but have been going throught the Puppet Learning 
 exercises but haven't worked out a framework/system to deploy WebSphere 
 applications. I started writing a module that calls a Unix script (which 
 invokes Jython) but now I really need your help to FIRST OF ALL set it all 
 up to utilise the master/agent configuration to manage the differences 
 between environments and applications. That is:  * which classes to write  * 
 whether to use defined classes (which parameter values to pass)  * use 
 inheritances  * our environments are different (eg. multiple location of 
 wsadmin.sh to invoke Jython, with different cellnames and sometimes 
 different values for -MapModulesToServers/-MapResRefToEJB/-MapRolesToUsers) 
 so probably need to use some sort of config file (but something with CSV 
 format or maybe other type of delimiter so I can control/populate new apps 
 from there to deploy so it must be self manage rather than having to write 
 new code and that's easy to summarise and later compare to different 
 environment - see below). I may be wrong here in that we may not need this 
 but at least a way to tell Puppet that this application is different 
 especially in certain environments  * use various templates (or use 1 
 template with variables in there)  
  #autodeploy.cfg  #type, app, appname, EAR destination, deployWS, ...  ear, 
 Claims, ClaimsEAR, \$(APP_INSTALL_ROOT)/Cell01,,  ear, ClaimsReporting, 
 ClaimsReportingEAR, \$(APP_INSTALL_ROOT)/\$(WAS_CELL_NAME),,  ear, 
 DMOrchestra, dm-orchestra-service-ear, 
 \$(APP_INSTALL_ROOT)/\$(WAS_CELL_NAME), -deployws  jar,   xml,   
  An example deployment tree structure of a typical WebSphere application 
 where the logic below must iterate through (if it exists):  
 /mnt/autodeploy/SIT/Claims/claims-admin-ear-5.1.15.ear  
 /mnt/autodeploy/SIT/ClaimsReporting/ClaimsReporting-claims_reporting_ITPC-107.ear
   
 /mnt/autodeploy/UAT/Claims/claims-admin-ear-5.1.15.ear  
 /mnt/autodeploy/UAT/ClaimsReporting/ClaimsReporting-claims_reporting_ITPC-107.ear
   
 /mnt/autodeploy/UAT/ContentUploadService  /mnt/autodeploy/UAT/Unknown   
 [Unknown 
 app not listed in config file so display message]  
  If you know Jython (WebSphere's scripting language) then great as 
 currently we don't even detect for the cellname. Later on I want to 
 transfer the Unix logic (if/for loop statements) to Puppet/Ruby language, 
 see below for a draft plan.

 *Step* *
 * *
 * *
 * *
 * *Initial Tool* *Proposed Tool* *Additional info*  display date 


 Unix Puppet 
  








  for each directory in /mnt/autodeploy 
 Unix Puppet Values to pass (parameter or defined class)?  
 for any *.ear/.jar/.xml file 
 Unix Puppet Need? Array or Puppet template or config file (see below - 
 use cut/awk/sed?)…  

 if ear file 

 Unix Puppet 
  


 display msg 'Which ear file's backup' 


  


 backup old ear file 
 Jython 

  


 identify cell 
 Jython 

  


 update app 
 Jython 

  


 rename/delete new ear file Unix Puppet 
  








  

 else jar file 

 Unix Puppet 
  








  








  








  

 else xml file 

 Unix Puppet 
  








  








  

 else 





  


 display msg 'Nothing found at that directory' 

  
 

-- 
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/-/0dVjNMqyDO4J.
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] HELP ME to firstly setup a framework/system to deploy WebSphere applications

2012-08-26 Thread maito
Hi guys.

I'm new to this but have been going throught the Puppet Learning exercises 
but haven't worked out a framework/system to deploy WebSphere applications. 
Rather than downloading a Puppet Module (there's none for WebSphere) or 
whatever I'm trying to do anyway (well I couldn't find it) so I tried to 
write myself but finding it challenging to set it up so appreciate all the 
help I can get but first just to set it up and have the POC showcased by 
this Friday. We can build on it later on.

I started writing a module that calls a Unix script (which invokes Jython) 
but now I really need your help to FIRST OF ALL set it all up to utilise 
the master/agent configuration to manage the differences between 
environments and applications. That is:
* what classes to write
* what parameterised classes to use (which parameters to pass)
* use inheritances
* our environments are different (eg. multiple location of wsadmin.sh to 
invoke Jython, with different cellnames and sometimes different values for 
-MapModulesToServers/-MapResRefToEJB/-MapRolesToUsers) so probably need to 
use some sort of config file (but something with CSV format or maybe other 
type of delimiter so I can control/populate new apps from there to deploy 
so it must be self manage rather than having to write new code and that's 
easy to summarise and later compare to different environment - see below). 
I may be wrong here in that we may not need this but at least a way to tell 
Puppet that this application is different especially in certain environments
* use various templates (or use 1 template with variables in there)

#autodeploy.cfg
#type, app, appname, EAR destination, deployWS, ...
ear, Claims, ClaimsEAR, \$(APP_INSTALL_ROOT)/Cell01,,
ear, ClaimsReporting, ClaimsReportingEAR, 
\$(APP_INSTALL_ROOT)/\$(WAS_CELL_NAME),,
ear, DMOrchestra, dm-orchestra-service-ear, 
\$(APP_INSTALL_ROOT)/\$(WAS_CELL_NAME), -deployws
jar, 
xml, 

An example deployment tree structure of a typical WebSphere application 
where the logic below must iterate through (if it exists):
/mnt/autodeploy/SIT/Claims/claims-admin-ear-5.1.15.ear
/mnt/autodeploy/SIT/ClaimsReporting/ClaimsReporting-claims_reporting_ITPC-107.ear
/mnt/autodeploy/UAT/Claims/claims-admin-ear-5.1.15.ear
/mnt/autodeploy/UAT/ClaimsReporting/ClaimsReporting-claims_reporting_ITPC-107.ear
/mnt/autodeploy/UAT/ContentUploadService
/mnt/autodeploy/UAT/Unknown   [Unknown app not listed in config file so 
display message]

If you know Jython (WebSphere's scripting language) then great as currently 
we don't even detect for the cellname. Later on I want to transfer the Unix 
logic (if/for loop statements) to Puppet/Ruby language, see below for a 
draft plan.

 *Step* *
* *
* *
* *
* *Initial Tool* *Proposed Tool* *Additional info*  display date 


Unix Puppet 
 








 for each directory in /mnt/autodeploy 
Unix Puppet Values to pass (parameter or defined class)?  
for any *.ear/.jar/.xml file 
Unix Puppet Need? Array or Puppet template or config file (see below - use 
cut/awk/sed?)…  

if ear file 

Unix Puppet 
 


display msg 'Which ear file's backup' 


 


backup old ear file 
Jython 

 


identify cell 
Jython 

 


update app 
Jython 

 


rename/delete new ear file Unix Puppet 
 








 

else jar file 

Unix Puppet 
 








 








 








 

else xml file 

Unix Puppet 
 








 








 

else 





 


display msg 'Nothing found at that directory' 

-- 
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/-/gp6nYXTo2jEJ.
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.