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 is contained in:
Ben Vincent 2025-06-15 17:43:19 +10:00
parent a47c6155b8
commit 26b908e5e7
3 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ profiles::packages::include:
consul-cni: {}
profiles::nomad::node::client: true
profiles::nomad::node::node_pool: common
profiles::nomad::node::host_volumes:
- name: puppetclient_crt
path: /etc/puppetlabs/puppet/ssl/certs/%{facts.networking.fqdn}.pem

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 {

View File

@ -21,6 +21,7 @@ server {
# Manage clients/agents
client {
enabled = true
node_pool = "<%= @node_pool %>"
<%- @host_volumes.each do |volume| %>
host_volume "<%= volume['name'] %>" {