3
0
Arne Teuke
2025-10-23 22:14:42 +02:00
parent b8b26d120d
commit a21b42823f
4 changed files with 6 additions and 13 deletions

View File

@@ -42,6 +42,7 @@ class puppet_cd::r10k::webhook (
seltype => etc_t,
seluser => system_u,
content => template($pt_r10k_hook_config_erb),
notify => Service['webhook'],
}
# create service config
@@ -54,15 +55,15 @@ class puppet_cd::r10k::webhook (
seltype => systemd_unit_file_t,
seluser => system_u,
content => template($pt_r10k_hook_service_erb),
notify => Service['webhook'],
}
# manage service
service { 'r10k-webhook':
service { 'webhook':
ensure => 'running',
hasstatus => true,
hasrestart => true,
enable => true,
subscribe => File[$pt_r10k_hook_service_file],
}
}
}