Skip to content
Chef cookbook for Canonical's LXD container "hypervisor"
Ruby Shell HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
attributes
recipes
templates/default
test/integration
.gitignore
.kitchen.yml
.rubocop.yml
.travis.yml
Berksfile
CHANGELOG.md
Gemfile
LICENSE
README.md
Rakefile
Thorfile
Vagrantfile
chefignore
metadata.rb

README.md

lxd-cookbook

CK Version Travis Gitter chat

DESCRIPTION

Installs and runs LXD API daemon, LXC and LXD CLI tool.

Supported Platforms

  • Ubuntu 14.04

Should work perfectly with upper Ubuntu releases.

May work with other OS when building from sources, PR are welcome !

Attributes

Key Description Default
['lxd']['install_method'] Install method (source/package) 'package'
['lxd']['repo'] ppa target (package install) 'ppa:ubuntu-lxc/lxd-daily'
['lxd']['lxc-repo'] ppa target for lxc, use 'nil' for OS pkg 'ppa:ubuntu-lxc/lxc-stable'
['lxd']['tcp_ip'] API bind IP (source install) '127.0.0.1'
['lxd']['tcp_port'] API bind port (source install) '8443'
['lxd']['logdir'] log directory (source install) '/var/log/lxd'
['lxd']['logdays'] log retention in days (source install) 31

Recipes

  • lxd::default

    • Installs lxd following node['lxd']['install_method'] method.
  • lxd::client

    • Install lxd client tools following node['lxd']['install_method'] method.
  • lxd::lxc

    • Setup lxc repo using node['lxd']['lxc-repo'].

Install methods

Package

Install lxd from packages:

node['lxd']['install_method'] = 'package' # Not necessary because it's the default
include_recipe 'lxd'
# Or
include_recipe 'lxd::lxd_from_package'

Source

Install node from sources:

node['lxd']['install_method'] = 'source'
include_recipe 'lxd'
# Or
include_recipe 'lxd::lxd_from_source'

License and Authors

Licensed under the Apache License, Version 2.0.

Authors :

You can’t perform that action at this time.