Ask Your Question
0

If I change a file in a module on my master, will nodes see the change and notify the service?

asked 2014-04-22 14:32:32 -0500

kwhite gravatar image

I'm working on deploying a new WAR to tomcat application server across many physical servers.

When the developers produce a new "latest" version I'd like to push this out to my nodes. On my master if I was to remove the current WAR and then move a new WAR into that location, will that notify the service of that file changing? The war would pull straight from the module I built as a source => puppet://module/applicationname.war. When I remove/change that war on the master is it going to notice this?

For instances if I'm using the general package -> file ~> service type notification, I have the applicationname.war file as the file that will change and notify the service to restart on the node. If I change this on the master will this notification happen?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-04-22 17:21:51 -0500

lavaman gravatar image

If you are in fact using subscribe and/or notify and not just require and before, then puppet will update the war file when it changes on the master and it will restart the service as a result.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-04-22 14:32:32 -0500

Seen: 114 times

Last updated: Apr 22 '14