1. Stefan Saasen
  2. stash-vagrant

Commits

Stefan Saasen  committed 231e38e

Make the version configurable

  • Participants
  • Parent commits ebf5970
  • Branches master

Comments (0)

Files changed (2)

File manifests/default.pp

View file
  • Ignore whitespace
   include apt
   apt::ppa { "ppa:webupd8team/java": }
 
+  $stash_version = "2.6.0"
+
   exec { 'apt-get update':
     command => '/usr/bin/apt-get update',
     before => Apt::Ppa["ppa:webupd8team/java"],
 
   exec {
     "download_stash":
-    command => "curl -L http://www.atlassian.com/software/stash/downloads/binary/atlassian-stash-2.5.2.tar.gz | tar zx",
+    command => "curl -L http://www.atlassian.com/software/stash/downloads/binary/atlassian-stash-$stash_version.tar.gz | tar zx",
     cwd => "/home/vagrant",
     user => "vagrant",
     path    => "/usr/bin/:/bin/",
     logoutput => true,
     require => [ Package["curl"] ],
-    creates => "/home/vagrant/atlassian-stash-2.5.2",
+    creates => "/home/vagrant/atlassian-stash-$stash_version",
   }
 
   exec {

File templates/stash-init.erb

View file
  • Ignore whitespace
 RUNUSER=vagrant
 
 # STASH_INSTALLDIR: The path to the Stash installation directory
-STASH_INSTALLDIR="/home/vagrant/atlassian-stash-2.5.2"
+STASH_INSTALLDIR="/home/vagrant/atlassian-stash-<%= @stash_version %>"
 
 # STASH_HOME: Path to the Stash home directory
 STASH_HOME="/home/vagrant/stash/stash-home"