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
|
# File 'manifests/component/graphql_init.pp', line 4
class complyadm::component::graphql_init (
Complyadm::Config::Comply_graphql_init $config,
) {
$container = $config['container']
$init_env = "/etc/puppetlabs/comply/${container['name']}.env"
file { $init_env:
ensure => file,
owner => 'root',
group => 'root',
seltype => 'container_file_t',
show_diff => false,
content => epp('complyadm/comply_env.epp', { env_vars => $container['env_vars'] }),
notify => Complyadm::Runtime::Run[$container['name']],
}
complyadm::runtime::run { $container['name']:
runtime => $container['runtime'],
install_runtime => $container['install_runtime'],
image => $container['image'],
net => $container['net'],
pull_on_start => false,
env_file => [$init_env],
require => File[$init_env],
extra_parameters => $container['extra_parameters'],
extra_systemd_parameters => $container['extra_systemd_parameters'],
after => $container['after'],
}
}
|