[mirror] Solved PRD-232 (do not download source files if they have been already downloaded)

This commit is contained in:
Vladimir Kozhukalov 2012-12-27 18:38:39 +04:00 committed by default
parent 9bbf3d1ccf
commit 37d753db5e
12 changed files with 5 additions and 68 deletions

View File

@ -238,11 +238,13 @@ else
SRC_URLS:=$(shell grep -v ^\\s*\# requirements-src.txt | sed "s=.*/\(.*\)=$(MIRROR_URL)/src/\1=")
endif
$/src.done:
@mkdir -p $/src
wget --no-use-server-timestamps -c -P $/src $(SRC_URLS)
$/src.done: | $(addprefix $/src/, $(notdir $(SRC_URLS)))
$(ACTION.TOUCH)
$(addprefix $/src/, $(notdir $(SRC_URLS))):
@mkdir -p $/src
wget --no-use-server-timestamps -c -P $/src $@
$/gems-bundle.done: $/gems-bundle-gemfile.done
( cd $/gems-bundle && bundle install --path ./ && bundle package )
( cd $/gems-bundle/vendor/cache/ && gem fetch -v 1.2.1 bundler )

View File

@ -1,2 +0,0 @@
default[:head_key][:nested_key] = "value"
default[:service][:password] = "password" # Let's use this for password generation check

View File

@ -1,9 +0,0 @@
maintainer "Mirantis, Inc."
maintainer_email "product@mirantis.com"
license "Apache 2.0"
description "Cookbook for testing purposes"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.3.0"
name "sample-cook"
#depends "apt"

View File

@ -1,2 +0,0 @@
# depends: "sample-cook::default@0.3.0"
File.open('/tmp/chef_success', 'a') {|f| f.puts("compute") }

View File

@ -1,2 +0,0 @@
# depends: "sample-cook::monitor@0.3.0"
File.open('/tmp/chef_success', 'a') {|f| f.puts("default") }

View File

@ -1 +0,0 @@
File.open('/tmp/chef_success', 'a') {|f| f.puts("monitor") }

View File

@ -1,22 +0,0 @@
{
"name": "Sample release",
"version": "1.0.0",
"description": "Description for Release",
"networks_metadata": [
{"name": "floating", "access": "public"},
{"name": "management", "access": "private10"},
{"name": "storage", "access": "private172"}
],
"attributes_metadata": {
"editable": {
"keystone": {
"admin_tenant": "admin"
}
},
"generated": {
"mysql": {
"root_password": ""
}
}
}
}

View File

@ -1,7 +0,0 @@
{
"recipes": [ "nailgun::deps", "devops::deps" ],
"mysql": {
"server_root_password": "ololo"
}
}

View File

@ -1,9 +0,0 @@
# To run chef-solo from this folder use the following command:
# sudo chef-solo -l debug -c solo.rb -j solo.json
#require 'syslog_logger'
#log_location SyslogLogger.new("chef-solo")
log_location open("| logger -t chef-solo", "w")
file_cache_path "/tmp/chef"
cookbook_path File.expand_path(File.join(File.dirname(__FILE__), '../../vagrant/cookbooks'))

View File

@ -1,11 +0,0 @@
{
"name": "OpenStack Essex Release",
"version": "0.1.0",
"description": "Alpha release",
"networks_metadata": [
{"name": "floating", "access": "public"},
{"name": "public", "access": "public"},
{"name": "management", "access": "private10"},
{"name": "storage", "access": "private172"}
]
}