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
34
35
36
37
38
39
40
|
# File 'manifests/install_docker.pp', line 2
class weave::install_docker (
$ensure = $weave::params::ensure,
$docker = $weave::params::docker,
) inherits weave::params {
# package { [ 'ethtool',
# 'conntrack' ]:
# ensure => $ensure,
# }
# file { '/root/lib/sh/purge_docker_firewall_rules.sh':
# source => 'puppet:///modules/weave/root/lib/sh/purge_docker_firewall_rules.sh',
# owner => 'root',
# group => 'root',
# mode => '0740',
# }
# file { '/root/lib/sh/purge_weave_firewall_rules.sh':
# source => 'puppet:///modules/weave/root/lib/sh/purge_weave_firewall_rules.sh',
# owner => 'root',
# group => 'root',
# mode => '0740',
# }
# exec { 'purge_docker_weave_firewall_rules':
# command => '/root/lib/sh/purge_docker_firewall_rules.sh && /root/lib/sh/purge_weave_firewall_rules.sh',
# unless => '/usr/bin/docker version | /bin/grep -q "Server version:"',
# before => Class['docker'],
# }
exec { 'purge_firewall_rules':
command => '/root/lib/sh/flush_iptable_rules.sh',
unless => '/usr/bin/docker version | /bin/grep -q "Server version:"',
before => Class['docker'],
}
include docker
}
|