Name: kitchen-oraclecloud
Owner: Chef Partners
Description: Test Kitchen driver for Oracle Cloud Infrastructure Classic
Created: 2015-10-07 20:24:11.0
Updated: 2018-03-27 08:19:21.0
Pushed: 2018-03-27 08:19:19.0
Size: 22
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A driver to allow Test Kitchen to consume Oracle Cloud Infrastructure Classic resources to perform testing.
Add this line to your application's Gemfile:
'kitchen-oraclecloud'
And then execute:
$ bundle
Or install it yourself as:
$ gem install kitchen-oraclecloud
Or even better, install it via ChefDK:
$ chef gem install kitchen-oraclecloud
After installing the gem as described above, edit your .kitchen.yml file to set the driver to 'oraclecloud' and supply your login credentials:
er:
me: oraclecloud
ername: user@domain.io
ssword: mypassword
entity_domain: oracle12345
i_url: https://api.cloud.oracle.com
rify_ssl: true
Then configure your platforms. A shape and image is required for each platform:
forms:
name: oel64
driver:
shape: oc3
image: /oracle/public/oel_6.4_20GB_x11_RD
name: oel66
driver:
shape: oc3
image: /oracle/public/oel_6.6_20GB_x11_RD
Other options that you can set include:
pool
if you want Oracle Cloud to assign an IP from the default pool, or specify an existing IP Reservation nametrue
if the API endpoint you are using is part of an Oracle Cloud private cloud you are running behind your company's firewall. This is required due to the differences in identity_domain handling between the public and private cloud offerings.All of these settings can be set per-platform, as shown above, or can be set globally in the driver
section of your .kitchen.yml:
er:
me: oraclecloud
hkeys:
- user1@domain.io/key1
- user1@domain.io/key2
- user2@domain.io/user2key
Most Oracle Cloud images use a default username of “opc”. However, Test Kitchen assumes the default user is “root” so you will need to override this in your .kitchen.yml:
sport:
ername: opc
Author:: Chef Partner Engineering (partnereng@chef.io)
Copyright:: Copyright (c) 2015 Chef Software, Inc.
License:: Apache License, Version 2.0
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
We'd love to hear from you if this doesn't work for you. Please log a GitHub issue, or even better, submit a Pull Request with a fix!
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)