1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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'],
}
}
|