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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user