feat: add host_volumes to nomad (#315)

- add puppet client certs
- add tls-ca-bundle

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/315
This commit was merged in pull request #315.
This commit is contained in:
2025-06-14 19:37:50 +10:00
parent 60834ced00
commit 1cbc1be808
3 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -9,6 +9,7 @@ class profiles::nomad::node (
Boolean $manage_user = true,
String $user = 'nomad',
String $group = 'nomad',
Array $host_volumes = [],
){
if $manage_user {
@@ -45,7 +46,6 @@ class profiles::nomad::node (
require => Profiles::Ceph::Keyring['nomad'],
}
}
}
file { $data_dir:
@@ -21,6 +21,13 @@ server {
# Manage clients/agents
client {
enabled = true
<%- @host_volumes.each do |volume| %>
host_volume "<%= volume['name'] %>" {
path = "<%= volume['path'] %>"
read_only = <%= volume['read_only'] %>
}
<% end %>
}
plugin "docker" {
config {