We have bunch or property files(key/value pairs) used in different modules in our java web applicaiton. our applicaiton is also distributed, part of that runs on a head office and some of the parts run at the branch. All the branches run a local server for day to day activities. We are looking to automate these files when moving to different environments like deve, test, prod. So that we can manage these property files without restarting the applicaiton. From my understanding puppet is able to manage those property files and can be distributed to any number o nodes. From my understanding with puppet, it creates a manifest files and these are updated by the agents from the puppet master. My question is how to read these manifest files in java? does this puppet supports in all operating systems? Thanks, Praveen -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/72669544-12ec-4e75-92e1-f0d3e85e8878%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
How do you currently do this by hand ? Knowing would help in figuring out an answer. On Nov 28, 2013, at 4:28 AM, PRAVEEN D <praveendk@gmail.com> wrote:> We have bunch or property files(key/value pairs) used in different modules in our java web applicaiton. our applicaiton is also distributed, part of that runs on a head office and some of the parts run at the branch. All the branches run a local server for day to day activities. We are looking to automate these files when moving to different environments like deve, test, prod. So that we can manage these property files without restarting the applicaiton. From my understanding puppet is able to manage those property files and can be distributed to any number o nodes. > > From my understanding with puppet, it creates a manifest files and these are updated by the agents from the puppet master. My question is how to read these manifest files in java? does this puppet supports in all operating systems? > > Thanks, > Praveen > > -- > 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+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/72669544-12ec-4e75-92e1-f0d3e85e8878%40googlegroups.com. > 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7798508A-A9DD-4CEB-B3AD-D5F23C7561EE%40comcast.net. For more options, visit https://groups.google.com/groups/opt_out.
Current application is a standalone web application running in one server, so we use spring framwork to load the properties. New direction is to go with a distributed and clustered model, that is where we are getting complicated with the property file management. Let me know your thoughts on this. On Thursday, November 28, 2013 2:58:39 PM UTC+5:30, PRAVEEN D wrote:> > We have bunch or property files(key/value pairs) used in different modules > in our java web applicaiton. our applicaiton is also distributed, part of > that runs on a head office and some of the parts run at the branch. All the > branches run a local server for day to day activities. We are looking to > automate these files when moving to different environments like deve, test, > prod. So that we can manage these property files without restarting the > applicaiton. From my understanding puppet is able to manage those property > files and can be distributed to any number o nodes. > > From my understanding with puppet, it creates a manifest files and these > are updated by the agents from the puppet master. My question is how to > read these manifest files in java? does this puppet supports in all > operating systems? > > Thanks, > Praveen >-- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f47db929-dd2e-486d-b8de-25ad4f9aa1c3%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On 2013-04-12 8:27, PRAVEEN D wrote:> Current application is a standalone web application running in one > server, so we use spring framwork to load the properties. New direction > is to go with a distributed and clustered model, that is where we are > getting complicated with the property file management. Let me know your > thoughts on this. > > On Thursday, November 28, 2013 2:58:39 PM UTC+5:30, PRAVEEN D wrote: > > We have bunch or property files(key/value pairs) used in different > modules in our java web applicaiton. our applicaiton is also > distributed, part of that runs on a head office and some of the > parts run at the branch. All the branches run a local server for day > to day activities. We are looking to automate these files when > moving to different environments like deve, test, prod. So that we > can manage these property files without restarting the applicaiton. > From my understanding puppet is able to manage those property files > and can be distributed to any number o nodes. > > From my understanding with puppet, it creates a manifest files and > these are updated by the agents from the puppet master. My question > is how to read these manifest files in java? does this puppet > supports in all operating systems? >How do you get the property file to be where it is supposed to be on the target system, and where is it located on the target system? A plain file, in a jar, does the jar have to be signed etc. An explanation of how this is done now helps figuring out a good way of automating it with Puppet. Regards - henrik -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/l7opq9%24baf%241%40ger.gmane.org. For more options, visit https://groups.google.com/groups/opt_out.
Hi, If I understand your use case, you actually don''t need to read the "file in java", you just need to place properties files under "puppet control", meaning, ask Puppet to either deploy the files (if missing) or ensure its content is equal to the one on the Puppetmaster. The real issue is that (up to my knowledge) no Java application will reload a properties file, so even if Puppet deploys a change to it, if the Java process has already been started, you''ll need to restart it. Puppet has a mechanism called notify to do that, but if you don''t want to restart the application this is not an option. An other way to do it would be use Puppet to set up a cronjob that restarts the application during the "local night". This way; if you deploy a change during the day, the application will be made aware of it in the following night. if you really need to have the Java app immediatly load the change, you need change from regular property files (.properties, load by the "bundle" mechanism) to plain configuration file, which scanned for changes regularly by your app. (ie code changes). On 28 November 2013 10:28, PRAVEEN D <praveendk@gmail.com> wrote:> We have bunch or property files(key/value pairs) used in different modules > in our java web applicaiton. our applicaiton is also distributed, part of > that runs on a head office and some of the parts run at the branch. All the > branches run a local server for day to day activities. We are looking to > automate these files when moving to different environments like deve, test, > prod. So that we can manage these property files without restarting the > applicaiton. From my understanding puppet is able to manage those property > files and can be distributed to any number o nodes. > > From my understanding with puppet, it creates a manifest files and these > are updated by the agents from the puppet master. My question is how to > read these manifest files in java? does this puppet supports in all > operating systems? > > Thanks, > Praveen > > -- > 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+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/72669544-12ec-4e75-92e1-f0d3e85e8878%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- Romain PELISSE, *"The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it" -- Terry Pratchett* Belaran ins Prussia (blog) <http://blog.wordpress.belaran.eu/> (... finally up and running !) -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE6oEnyo3hLV2RHLNP-4fpEM62_ihhjSw66K1%3D95S2JrAnhggA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.