Skip to content

Instantly share code, notes, and snippets.

@ccaum
Created September 11, 2013 16:26
Show Gist options
  • Select an option

  • Save ccaum/6526153 to your computer and use it in GitHub Desktop.

Select an option

Save ccaum/6526153 to your computer and use it in GitHub Desktop.
file { 'C:/tomcat/webapps/app.war':
ensure => file,
source => 'puppet:///modules/myapp/app.war',
notify => Service['myapp'],
}
service { 'myapp':
ensure => running,
enable => true,
}
file { 'c:/tomcat7/webapps/file.properties',
ensure => file,
source => 'puppet:///modules/myapp/file.properties',
require => Service['myapp'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment