feat: add node_pools (#317)

- change agentv2 to common node_pool
- set default node_pool to default

Reviewed-on: https://git.query.consul/unkinben/puppet-prod/pulls/317
This commit was merged in pull request #317.
This commit is contained in:
2025-06-15 17:43:19 +10:00
parent a47c6155b8
commit 26b908e5e7
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ class profiles::nomad::node (
String $user = 'nomad',
String $group = 'nomad',
Array $host_volumes = [],
String $node_pool = 'default',
){
if $manage_user {
@@ -21,6 +21,7 @@ server {
# Manage clients/agents
client {
enabled = true
node_pool = "<%= @node_pool %>"
<%- @host_volumes.each do |volume| %>
host_volume "<%= volume['name'] %>" {