Releases: bradenwright/kitchen-lxd_cli
v2.0.2
v2.0.1 Unique names
Added unique names in, and container names will be unique by default. To make them unique I added epoch time onto the end.
v2.0.0
Updated to work with LXD 2.x. Tested on Ubuntu 16.04, LXD 2.0.2, with ubuntu containers only.
Thanks to @schrodinger for the help
v0.1.5
- Added ability to mount a local directory in the container. Basically uses this command: LXD bind mount directory
- Refactored profiles, ability to pass string or hash of profiles to use. Options get passed to lxc init -p
- Refactored config, Options get passed to lxc init -c
- Added ability to publish image before destroying, and use the image for future kitchen runs. This is nice for speeding up installs by installing chef, verifier (see verifier_path) and publishing the image. Also gives ability to make incremental save points, for instance while developing cookbook waiting for build-essentials to repeated install (even from the proxy) took extra time that wasn't needed (at least while developing).
- Added "verifier_path" option, enables ability to preserve verifier install between restarts, or ability to publish image with it installed for reuse
- Added option "wait_for_ssh_login". I noticed after publishing if I left the /root/.ssh folder (instead of deleting it), often on
kitchen converge
ssh login would try before the container was really ready and time out multiple times and fail. Enabling this option takes longer, but ensures that ssh is ready before kitchen create completes, this ensures ssh will be ready for kitchen converge. Personally for development I've been deleting the /root/.ssh folder, and haven't enabled the option. Hoping to eventually write a transport which wouldn't need ssh, and hopefully solve this issue. - NOTE: LXD 0.21, 0.22 networking options are being blocked, I commented on an open ticket requesting they be allowed again. But details here LXD Github Issue
v0.1.3
Biggest changes are:
- Added ability to pass hash of config options, so multiple can be applied.
- Proxy options should be working to install polipo proxy, via driver options. There are multiple options here lxd_proxy_install and lxd_proxy_destroy are well tested. As expected after the first run using lxd_proxy_install significantly speeds up runs.
Smaller Changes: - Moved property from stop_instead_of_destroy to never_destroy
- Redirect input to /dev/null for wait_for_path method. Messages/Errors were showing up when running via rake so this hides them.
- Moved delete message so it only displays if machine is being deleted.
v0.1.2
Added progress of lxd-image import command to be shown in console/logs
Fixed error related to running resolvconf -u command before all files were in place
v0.1.1
A lot of changes went in since the last release. Basically I've tried lots of different ways of configuring and setting up the network. I currently settled/figured out how to get it working using raw.lxc.network config options but this may or may not be supported moving forward. lxc/incus#1259 Hopefully it will be left in as its definitely the preferred method I've tested/been able to come up with.
I also tried to clean up code, logging, etc. Specifically I found that after the container starts and bash returns 0, it takes a few seconds (or less) for certain files/directories, an ip address to become available (maybe a little longer for a dhcp address).
v0.1.0.beta
First release, basics are working. If LXD & this gem are installed then it should just work. See README for more details