-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from dongyuzheng/master
Version 0.4.4 - 2/29/2016
- Loading branch information
Showing
52 changed files
with
1,015 additions
and
630 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
/.buildpath | ||
/.project | ||
/pkg/* | ||
/test-results | ||
/nodes | ||
spec/config.rb | ||
Gemfile.lock | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ chef-provisioning-opennebula | |
|
||
This is the implementation of the OpenNebula driver for chef-provisioning. It also comes with additional chef resources to manage OpenNebula: | ||
|
||
* Template (one_template) | ||
* Template (one_template) | ||
* Image (one_image) | ||
* VNET (one_vnet) | ||
* Lease (one_vnet_lease) | ||
|
@@ -480,17 +480,8 @@ end | |
|
||
## Rspec Integration tests | ||
|
||
Run 'bundle exec rspec ./spec/integration/test_all_integration_spec.rb' in your chef-provisioning-opennebula folder | ||
|
||
Set the following environment variables according to your needs: | ||
|
||
```ruby | ||
ENV['HOME'] - your home directory | ||
ENV['ONE_XMLRPC'] - this is the OpenNebula endpoint url | ||
ENV['ONE_AUTH'] - the path to your one_auth file | ||
ENV['ONE_HTTPBASE'] - the base URL from which files are downloaded eg. chef-client.deb, init.sh, service.gz etc. | ||
ENV['CHEF_REPO_PATH'] - the path to your local chef repo | ||
``` | ||
- Create and configure `spec/config.rb` from `spec/config_sample.rb`, be sure to **read the comments** | ||
- Run `bundle exec rspec ./spec/integration/test_all_integration_spec.rb` from your chef-provisioning-opennebula folder | ||
|
||
## <a name="development"></a> Development | ||
|
||
|
@@ -513,12 +504,11 @@ Created by [Bogdan Buczynski](https://github.com/bbuczynski) (<[email protected]> | |
|
||
## <a name="maintainers"></a> Maintainers | ||
|
||
Maintained by | ||
* [Andrew J. Brown](https://github.com/andrewjamesbrown) (<[email protected]>) | ||
* [Bogdan Buczynski](https://github.com/bbuczynski) (<[email protected]>) | ||
* [Dongyu 'Gary' Zheng](https://github.com/dongyuzheng) (<[email protected]>) | ||
* [Evgeny Yurchenko](https://github.com/EYurchenko) (<[email protected]>) | ||
* [Phil Oliva](https://github.com/poliva83) (<[email protected]>) | ||
* [Andrew J. Brown](https://github.com/andrewjamesbrown) (<[email protected]>) | ||
* [Bogdan Buczynski](https://github.com/bbuczynski) (<[email protected]>) | ||
* [Dongyu 'Gary' Zheng](https://github.com/dongyuzheng) (<[email protected]>) | ||
* [Evgeny Yurchenko](https://github.com/EYurchenko) (<[email protected]>) | ||
* [Phil Oliva](https://github.com/poliva83) (<[email protected]>) | ||
|
||
## <a name="license"></a> License | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
####################################################### | ||
## This is the config file used for the RSpec tests. ## | ||
## Feel free to modify any variables to your needs. ## | ||
####################################################### | ||
|
||
# this is the OpenNebula endpoint url | ||
ONE_XMLRPC = 'http://1.2.3.4:443/api:boggi' | ||
|
||
# the path to your local chef repo, an empty folder would work, if the folder does not exist, one will be automatically created | ||
CHEF_REPO_PATH = '/home/gary/test-repo' | ||
|
||
# required for recipes/OneDriver/create_one_image_spec.rb | ||
DATASTORE_ID = 103 | ||
|
||
VM_TEMPLATE = { | ||
# the base URL from which files are downloaded eg. chef-client.deb, init.sh, service.gz etc. | ||
'HTTPBASE' => 'http://my.server.com', | ||
# it is highly recommended to keep resources low for these tests | ||
'MEMORY' => '256', | ||
'CPU' => '1', | ||
'VCPU' => '1', | ||
'OS' => { | ||
'ARCH' => 'x86_64' | ||
}, | ||
'DISK' => { | ||
'IMAGE' => 'Ubuntu-14.04.1-pre-prod-201411201', | ||
'IMAGE_UNAME' => 'my_user', | ||
'DRIVER' => 'qcow2' | ||
}, | ||
'NIC' => { | ||
'NETWORK' => 'my_network', | ||
'NETWORK_UNAME' => 'my_network_user' | ||
}, | ||
'GRAPHICS' => { | ||
'LISTEN' => '0.0.0.0', | ||
'TYPE' => 'vnc' | ||
}, | ||
'CONTEXT' => { | ||
'NETWORK' => 'YES', | ||
'HOSTNAME' => '$NAME', | ||
'INSTALL_CHEF_CLIENT_COMMAND' => 'dpkg -E -i /mnt/chef-client.deb', | ||
'SSH_USERNAME' => 'local', | ||
'SSH_PUBLIC_KEY' => File.read("#{ENV['HOME']}/.ssh/id_rsa.pub").strip, | ||
'FILES' => '$HTTPBASE/01_chef $HTTPBASE/../chef-client.deb' | ||
} | ||
} | ||
|
||
MACHINE_OPTIONS = { | ||
:ssh_username => 'local', | ||
:ssh_options => { | ||
:keys_only => false, | ||
:forward_agent => true, | ||
:use_agent => true, | ||
:user_known_hosts_file => '/dev/null' | ||
}, | ||
:ssh_execute_options => { | ||
:prefix => 'sudo ' | ||
}, | ||
:cached_installer => true | ||
} |
Oops, something went wrong.