Permalink
Browse files

Make builds volume size configurable via node attributes

  • Loading branch information...
1 parent e716188 commit 72715ba2e63c7782eaa8c5b0d9e14550b5c82189 @michaelklishin michaelklishin committed Jul 30, 2011
@@ -1,2 +1,2 @@
-default[:travis_build_environment][:path] = "/tmp/travis"
-default[:travis_build_environment][:hosts] = Hash.new
+default[:travis_build_environment][:hosts] = Hash.new
+default[:travis_build_environment][:builds_volume_size] = "350m"
@@ -21,14 +21,6 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
-directory node[:travis_build_environment][:path] do
- owner "vagrant"
- group "vagrant"
- mode 0755
- action :create
-end
-
-
include_recipe "travis_build_environment::root"
include_recipe "travis_build_environment::vagrant"
@@ -55,10 +55,11 @@
action :create
end
+
mount "/home/vagrant/builds" do
fstype "tmpfs"
device "/dev/null" # http://tickets.opscode.com/browse/CHEF-1657, doesn't seem to be included in 0.10.0
- options "defaults,size=350m,noatime"
+ options "defaults,size=#{node[:travis_build_environment][:builds_volume_size]},noatime"
action [:mount, :enable]
end

0 comments on commit 72715ba

Please sign in to comment.