A Test Kitchen Driver for Zone.
There are no software requirements for this driver. That being said, this driver is very opinionated about the hardware setup you are connecting to.
Please read the Driver usage page for more details.
It is assumed that you are running a physical Solaris 10/11 system that has the appropriate patch level (and all the required packages) to support zones.
For Solaris 10 It is assumed that the sudo package is installed.
There are a number of configuration options that are required in your .kitchen.yml
.
global_zone_hostname
- hostname/IP of the global zone physical machine.global_zone_username
- username of the global zone physical machine. (defaultroot
)global_zone_password
- password for the global zone physical machine.global_zone_port
- ssh port for global zone physical machine. (default22
)test_zone_ip
- ip address of the zone where tests will run.test_zone_password
- test zone password (defaulttulips!tulips
)
If the global zone is running on Solaris 10, the following three are required as well
master_zone_name
- name of the 'master' zone that other zones will be cloned off of (this is essentially a template). (defaultmaster
)master_zone_ip
- ip address of the template zone. this is required during initial setup and must be valid.master_zone_password
- template zone password (defaultllama!llama
)
In addition to these changes, you will need to override the sudo_command
in both the provisioner
and verifier
sections of the .kitchen.yml
.
For Solaris 10:
provisioner:
sudo_command: '/usr/local/bin/sudo -E'
verifier:
sudo_command: '/usr/local/bin/sudo -E'
For Solaris 11:
provisioner:
sudo_command: 'sudo -E'
verifier:
sudo_command: 'sudo -E'
driver:
name: zone
provisioner:
name: chef_zero
platforms:
- name: solaris-10-sun4v
provisioner:
sudo_command: '/usr/local/bin/sudo -E'
verifier:
sudo_command: '/usr/local/bin/sudo -E'
driver:
global_zone_hostname: 'sol-zone-host01.mysite.co'
global_zone_user: 'root'
global_zone_password: 'supersecret'
master_zone_name: kitchen-master
master_zone_ip: '192.168.1.100'
test_zone_ip: '192.168.1.110'
- name: solaris-11-i86pc
provisioner:
sudo_command: 'sudo -E'
verifier:
sudo_command: 'sudo -E'
driver:
global_zone_hostname: 'sol-zone-host02.mysite.co'
global_zone_user: 'root'
global_zone_password: 'supersecret'
master_zone_name: kitchen-master
master_zone_ip: '192.168.2.100'
test_zone_ip: '192.168.2.110'
suites:
< the usual >
- Source hosted at GitHub
- Report issues/questions/feature requests on GitHub 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:
- Fork the repo
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Created and maintained by Scott Hain ([email protected])
Apache 2.0 (see LICENSE)