Skip to content

Instantly share code, notes, and snippets.

@lordofthejars
Created March 29, 2013 20:30
Show Gist options
  • Save lordofthejars/5273422 to your computer and use it in GitHub Desktop.
Save lordofthejars/5273422 to your computer and use it in GitHub Desktop.
class tomee {
file {"/opt/tomee-1.5.1":
ensure => directory,
recurse => true,
} ->
exec { "download-tomee" :
command => "/usr/bin/wget http://apache.rediris.es/openejb/openejb-4.5.1/apache-tomee-1.5.1-webprofile.tar.gz -O
/tmp/tomee-1.5.1.tar.gz",
creates => "/tmp/tomee-1.5.1.tar.gz",
} ->
exec { "unpack-tomee" :
command => "/bin/tar -xzf /tmp/tomee-1.5.1.tar.gz -C /opt/tomee-1.5.1 --strip-components=1",
creates => "/opt/tomee-1.5.1/bin",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment