Skip to content
This repository was archived by the owner on Aug 25, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Please read the [Driver usage][driver_usage] page for more details.
* **wpar_copy_rootvg** adds the option ' -t' to copy rootvg file systems.
* **isVersioned** create a versioned wpar. Used only with **wpar_mksysb**.
* **isWritable** adds the option ' -l' to have a non-shared, writable /usr file system and /opt file system.
* **resize** Adds the option ' -M' to resize mounts Takes in a list of hashes containing both directory and size keys.
* **share_network_resolution** adds the option ' -r' to share name resolution services (i.e. `/etc/resolv.conf`) with the wpar.
* **sudo** path to `sudo` command in case we need it.
* **ssh_port** Lets you specify the ssh port to use. Default to **22**.
Expand Down
8 changes: 8 additions & 0 deletions lib/kitchen/driver/wpar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ def build_mkwpar_command()
cmd += ' -l'
end

if config[:resize]
config[:resize].each do | resize_instance |
if resize_instance[:directory].nil? || resize_instance[:size].nil?
raise ActionFailed, "Please provide both directory and size to the resize option."
end
cmd += " -M directory=#{resize_instance[:directory]} size=#{resize_instance[:size]}"
end
end

cmd
end
Expand Down
2 changes: 1 addition & 1 deletion lib/kitchen/driver/wpar_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ module Kitchen
module Driver

# Version string for Wpar Kitchen driver
WPAR_VERSION = "0.4.2"
WPAR_VERSION = "0.4.3"
end
end