aboutsummaryrefslogtreecommitdiff
path: root/manifests/lxc/base.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-29 23:26:49 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-29 23:26:49 -0200
commit4a2e70edeb1d87674156cd8328352582e25d1525 (patch)
tree053fcff3ac4f723e4cfac301ee4f9975744a087c /manifests/lxc/base.pp
parentaf78b156c5418d1e67faed4635019dcef0da9cac (diff)
downloadpuppet-virtual-4a2e70edeb1d87674156cd8328352582e25d1525.tar.gz
puppet-virtual-4a2e70edeb1d87674156cd8328352582e25d1525.tar.bz2
LXC support
Diffstat (limited to 'manifests/lxc/base.pp')
-rw-r--r--manifests/lxc/base.pp33
1 files changed, 33 insertions, 0 deletions
diff --git a/manifests/lxc/base.pp b/manifests/lxc/base.pp
new file mode 100644
index 0000000..c047790
--- /dev/null
+++ b/manifests/lxc/base.pp
@@ -0,0 +1,33 @@
+class virtual::lxc::base {
+ include virtual::networking
+
+ package { [
+ 'lxc',
+ ]:
+ ensure => present,
+ }
+
+ service { 'lxc-net':
+ ensure => running,
+ require => Package['lxc'],
+ }
+
+ file { '/etc/default/lxc-net':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => '0644',
+ #content => "USE_LXC_BRIDGE=\"true\"\n",
+ source => 'puppet:///modules/virtual/lxc/lxc-net',
+ notify => Service['lxc-net'],
+ }
+
+ file { '/etc/lxc/default.conf':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => '0644',
+ source => 'puppet:///modules/virtual/lxc/default.conf',
+ notify => Service['lxc-net'],
+ }
+}