Skip to content

Commit ba6cf33

Browse files
committed
Add class to deploy foreman_proxy certificates
1 parent 17ae497 commit ba6cf33

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

manifests/deploy.pp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Handles deploying certificates
2+
#
3+
# === Parameters:
4+
#
5+
# $foreman_proxy:: Deploy certificates needed by Foreman Proxy
6+
#
7+
class certs::deploy (
8+
Boolean $foreman_proxy = false,
9+
) {
10+
class { 'certs::foreman_proxy':
11+
generate => false,
12+
deploy => $foreman_proxy,
13+
}
14+
15+
if $foreman_proxy {
16+
Class['certs::foreman_proxy'] ~> Service['foreman-proxy']
17+
}
18+
}

0 commit comments

Comments
 (0)