Automatic creation of sudoers fileYAML config with container name, forwarded ports, mapped folders etcCreate user within containerInsertion of developer's ssh key in containerSome support for automatic provisioning'status' commandCreate a gem
- Simple commandline based interface like vagrant
- Use existing tools as far as possible (ssh-add -L for keys, redir for port forwarding, and of course LXD)
- Use lxc commands with --format=json for ease of processing
- Take advantage of snapshots if possible
- Support for distros other than Ubuntu
gem build lxdev.gemspec
gem install lxdev-0.1.0.gem
box:
name: fedorawithssh
user: huba
image: images:fedora/27
folders:
".": "/home/huba/lxdev"
provisioning:
- dnf install -y openssh-server
- systemctl enable sshd.service
- systemctl start sshd.service
box:
name: huba
user: vagrant
image: ubuntu:xenial
ports:
3000: 3000
folders:
".": "/home/vagrant/lxdev"
provisioning:
- dpkg -l | grep -q puppet || (apt-get update && apt-get install -y puppet)
- mkdir -p /tmp/vagrant-puppet && rsync -rtv /home/vagrant/lxdev/manifests /tmp/vagrant-puppet/
- puppet apply /tmp/vagrant-puppet/manifests/lxdev.pp