Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/test-kitchen/kitchen-opennebula
OpenNebula driver for Test Kitchen
https://github.com/test-kitchen/kitchen-opennebula
hacktoberfest managed-by-terraform ruby ruby-gem test-kitchen testing
Last synced: about 1 month ago
JSON representation
OpenNebula driver for Test Kitchen
- Host: GitHub
- URL: https://github.com/test-kitchen/kitchen-opennebula
- Owner: test-kitchen
- License: other
- Created: 2014-10-23T14:23:59.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2023-12-08T20:51:13.000Z (about 1 year ago)
- Last Synced: 2024-04-14T00:58:33.164Z (9 months ago)
- Topics: hacktoberfest, managed-by-terraform, ruby, ruby-gem, test-kitchen, testing
- Language: Ruby
- Homepage:
- Size: 52.7 KB
- Stars: 5
- Watchers: 14
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
A Test Kitchen Driver for Opennebula.
This driver depends on [fog](https://github.com/fog/fog). Please note possibility that unreleased changes on master
branch may depend on patches that can be found at https://github.com/blackberry/fog until they are merged to upstream.1. Download and install latest [ChefDK](https://downloads.chef.io/chef-dk/).
2. Please add bin locations to your PATH:
* C:\opscode\chefdk\bin;C:\opscode\chefdk\embedded\bin\ (windows)
* /opt/chefdk/bin/:/opt/chefdk/embedded/bin (unix)
3. Reopen console or reload your env PATH
4. Run following command:
gem install kitchen-opennebula --no-user-install --no-ri --no-rdocPlease read the [config_yml_kitchen](https://docs.chef.io/config_yml_kitchen.html) page for more details.
## Virtual Machine Requirements
This driver requires an OpenNebula OS image that conforms to a number of requirements
* The VM puts the ssh key defined in the SSH\_PUBLIC\_KEY context variable into `$HOME/.ssh/authorized_keys`
* The VM ensures the user has passwordless sudo accessURL where the OpenNebula daemon is listening. The default value is taken from the ONE\_XMLRPC environment variable,
or `http://127.0.0.1:2633/RPC2` if unset.Path to the file containing OpenNebula authentication information. It should contain a single line stating
"username:password". The default value is taken from the ONE\_AUTH environment variable, or `$HOME/.one/one_auth` if
unset.Name of the VM definition file (OpenNebula template) registered with OpenNebula. Can be used with `template_uname` or
`template_uid` to further restrict which template to use if multiple users have the same template name. Only one of
`template_name` or `template_id` must be specified in the .kitchen.yml file. The default value is unset, or `nil`.ID of the VM definition file (OpenNebula template) registered with OpenNebula. Only one of `template_name` or
`template_id` must be specified in the .kitchen.yml file. The default value is unset, or `nil`.Username who owns the VM definition file (OpenNebula template). Can be used with `template_name` to address naming
conflicts where multiple users have the same template name. The default value is unset, or `nil`.UID of the user who owns the VM definition file (OpenNebula template). Can be used with `template_name` to address
naming conflicts where multiple users have the same template name. The default value is unset, or `nil`.Hostname to set for the newly created VM. The default value is `driver.instance.name`
Path to SSH public key to pass to the VM, to use to authenticate with `username` when logging in or converging a node.
The default value is `~/.ssh/id_rsa.pub`, `~/.ssh/id_dsa.pub`, `~/.ssh/identity.pub`, or `~/.ssh/id_ecdsa.pub`,
whichever is present on the filesystem.This is the username used for SSH authentication to the new VM. The default value is `local`.
The amount of memory to provision for the new VM. This parameter will override the memory settings provided in the
VM template. The default value is 512MB.A hash of variables to pass into the "user template" section of the VM, to customize the virtual machine. The default
value is `{}`.A hash of variables to pass into the "CONTEXT" section of the VM, to further customize the virtual machine. These
variables override any existing context variables that are provided as part of the specified VM template. The default
value is `{}`.Determines whether or not a Chef [Omnibus package][chef_omnibus_dl] will be
installed. There are several different behaviors available:* `true` - the latest release will be installed. Subsequent converges will skip re-installing if chef is present.
* `latest` - the latest release will be installed. Subsequent converges will always re-install even if chef is present.
* `` (ex: `10.24.0`) - the desired version string will be passed the the install.sh script.
Subsequent converges will skip if the installed version and the desired version match.
* `false` or `nil` - no chef is installed.The default value is unset, or `nil`.
This variable is used to override timeout for Fog's common `wait_for` method which states that it "takes a block and
waits for either the block to return true for the object or for a timeout (defaults to 10 minutes)".To avoid test-kitchen's ssh tcp check in the create phase you can set `no_ssh_tcp_check` to `true` and do single sleep
instead. Sleep period is configured by `no_ssh_tcp_check_sleep`. The default for `no_ssh_tcp_check` is set to `false`.### no\_ssh\_tcp\_check\_sleep
This variable configures a single sleep used when `no_ssh_tcp_check` is set to `true`. The default for `no_ssh_tcp_check`
is 2 minutes.### no\_passwordless\_sudo\_check
To avoid test-kitchen's passwordless sudo check in the create phase you can set `no_passwordless_sudo_check` to `true`
and do single sleep instead. Sleep period is configured by `no_passwordless_sudo_sleep`. The default for
`no_passwordless_sudo_check` is set to `false`.### no\_passwordless\_sudo\_sleep
This variable configures a single sleep used when `no_passwordless_sudo_check` is set to `true`. The default for
`no_passwordless_sudo_sleep` is 2 minutes.### passwordless\_sudo\_timeout
This variable configures the max timeout will wait in the create phase for passwordless sudo to be setup. The variable
is used when `no_passwordless_sudo_check` is set to `false`. The default for `passwordless_sudo_timeout` is 5 minutes.### passwordless\_sudo\_retry\_interval
This variable configures retry interval in the create phase to periodically check that passwordless sudo is setup. It
does this until max timeout (set by `passwordless_sudo_timeout`) is reached. The variable is used when
`no_passwordless_sudo_check` is set to `false`. The default for `passwordless_sudo_retry_interval` is 10 seconds.This variable configures the max timeout Test-Kitchen will wait in the create phase for cloud-init to complete. The
default for `cloud_init_timeout` is 10 minutes.### cloud\_init\_retry\_interval
This variable configures retry interval in the create phase to periodically check that cloud-init fas finished
successfully. It does this until max timeout (set by `cloud_init_timeout`) is reached. The variable is used when
`no_cloud_init_check` is set to `false`. The default for `cloud_init_retry_interval` is 10 seconds.To avoid test-kitchen to check for cloud-init completion in the create phase, you can set `no_cloud_init_check` to `true`
and cloud-init completion check will be ignored. If cloud-init is not used the check is skipped automatically. You could
use this to disable the cloud-init completion check when cloud-init is in use. The default for `no_cloud_init_check`
is set to `false`.* Source hosted at [GitHub][repo]
* Report issues/questions/feature requests on [GitHub Issues][issues]Pull requests are very welcome! Make sure your patches are well tested.
Ideally create a topic branch for every separate change you make. For example:1. Fork the repo
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull RequestApache 2.0 (see [LICENSE][license])
[author]: https://github.com/blackberry/kitchen-opennebula
[maintainer]: https://github.com/blackberry/kitchen-opennebula
[issues]: https://github.com/test-kitchen/kitchen-opennebula/issues
[license]: https://github.com/test-kitchen/kitchen-opennebula/blob/master/LICENSE
[repo]: https://github.com/test-kitchen/kitchen-opennebula
[driver_usage]: http://docs.kitchen-ci.org/drivers/usage
[chef_omnibus_dl]: http://www.getchef.com/chef/install/