Skip to content

Instantly share code, notes, and snippets.

@awaxa
Last active August 29, 2015 14:16
Show Gist options
  • Save awaxa/f6c570ee5c4c9fcfa36e to your computer and use it in GitHub Desktop.
Save awaxa/f6c570ee5c4c9fcfa36e to your computer and use it in GitHub Desktop.
file { '/opt/stuff.war':
ensure => file,
source => '/deploy/wars/stuff.war',
} ~>
exec { 'rm -rf /opt/deployed':
refreshonly => true,
} ~>
# exec { 'jar xf /opt/stuff.war':
# cwd => '/opt/deployed',
# } ~>
service { 'tomcat':
ensure => running,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment