updated Rakefile

- changed all task to single
(to match with multi)
- fixed bug changes instance to instances
This commit is contained in:
Dan Bode
2011-06-30 16:29:14 -07:00
parent 44dfe179f5
commit fa44b15772
3 changed files with 34 additions and 5 deletions

29
README
View File

@@ -69,6 +69,34 @@ Usage
$ euca-describe-instances $ euca-describe-instances
Installing With Vagrant
------------------------
These examples assume that you have a suitable image that you can
use for testing.
1. Export the environment variable:
Step one is to export an environment variable of the vagrant box.
All of my testing has been done using a Natty image.
2. Download glance images for testing:
$ mkdir images
$ cd images
$ curl -g -o ttylinux-uec-i686-12.1_2.6.35-22_1.tar.gz http://smoser.brickies.net/ubuntu/ttylinux-uec/ttylinux-uec-i686-12.1_2.6.35-22_1.tar.gz
2. Testing single node installation:
This will install all of the currently supported openstack components into a single node.
run the rake task:
$ rake build:all
$
Author Author
------ ------
@@ -92,3 +120,4 @@ License
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.

View File

@@ -17,13 +17,13 @@ instances = [
namespace :build do namespace :build do
desc 'build out 5 node openstack cluster' desc 'build out 5 node openstack cluster'
task :multi do task :multi do
instance.each do |instance| instances.each do |instance|
build(instance, env) build(instance, env)
end end
end end
desc 'build out openstack on one node' desc 'build out openstack on one node'
task :all do task :single do
build(:all, env) build(:single, env)
end end
end end
@@ -57,7 +57,7 @@ namespace :test do
end end
end end
desc 'test single node installation' desc 'test single node installation'
task :all do task :single do
test(:all, ['sudo /vagrant/ext/glance.sh', 'sudo /vagrant/ext/nova.sh'], env) test(:all, ['sudo /vagrant/ext/glance.sh', 'sudo /vagrant/ext/nova.sh'], env)
end end
end end