From 44c942a21f45fea945c2cd2d93b975c3931225e0 Mon Sep 17 00:00:00 2001 From: Chris Lundquist Date: Thu, 19 May 2016 06:09:40 +0000 Subject: [PATCH] [lxc] provide centos 7 example --- website/source/docs/builders/lxc.html.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/website/source/docs/builders/lxc.html.md b/website/source/docs/builders/lxc.html.md index b92033724..2efaaf656 100644 --- a/website/source/docs/builders/lxc.html.md +++ b/website/source/docs/builders/lxc.html.md @@ -51,6 +51,16 @@ Below is a fully functioning example. "template_environment_vars": [ "SUITE=jessie" ] + }, + { + "type": "lxc", + "name": "lxc-centos-7-x64", + "config_file": "/tmp/lxc/config", + "template_name": "centos", + "template_parameters": [ + "-R","7", + "-a","x86_64" + ], } ] } @@ -78,5 +88,5 @@ Below is a fully functioning example. - `init_timeout` (string) - The timeout in seconds to wait for the the container to start. -- `template_parameters` (array of strings) - Environmental variables for running `lxc-create`. +- `template_parameters` (array of strings) - Options to pass to the given `lxc-template` command, usually located in `/usr/share/lxc/templates/lxc-``. Note: This gets passed as ARGV to the template command. Ensure you have an array of strings, as a single string with spaces probably won't work.