-
Notifications
You must be signed in to change notification settings - Fork 2
/
init.pp
46 lines (36 loc) · 851 Bytes
/
init.pp
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
34
35
36
37
38
39
40
41
42
43
44
45
46
class application {
include docker
hiera_include('classes')
sudo::conf { 'vagrant':
priority => 30,
content => 'vagrant ALL=(ALL) NOPASSWD:ALL',
}
file { '/etc/update-motd.d':
purge => true
}
ufw::allow { 'allow-ssh-from-all':
port => 22,
ip => 'any',
}
ufw::allow { 'allow-http-from-all':
port => 5004,
ip => 'any',
}
$application_directory = '/opt/vnext'
file { $application_directory:
ensure => directory,
source => 'puppet:///modules/application/vnext',
recurse => true,
force => true,
}
::docker::image { 'vnext':
docker_dir => $application_directory,
require => File[$application_directory],
}
::docker::run { 'vnext':
image => 'vnext',
tty => true,
ports => ['5004:5004'],
require => Docker::Image['vnext'],
}
}