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:
parent
a47c6155b8
commit
26b908e5e7
@ -25,6 +25,7 @@ profiles::packages::include:
|
|||||||
consul-cni: {}
|
consul-cni: {}
|
||||||
|
|
||||||
profiles::nomad::node::client: true
|
profiles::nomad::node::client: true
|
||||||
|
profiles::nomad::node::node_pool: common
|
||||||
profiles::nomad::node::host_volumes:
|
profiles::nomad::node::host_volumes:
|
||||||
- name: puppetclient_crt
|
- name: puppetclient_crt
|
||||||
path: /etc/puppetlabs/puppet/ssl/certs/%{facts.networking.fqdn}.pem
|
path: /etc/puppetlabs/puppet/ssl/certs/%{facts.networking.fqdn}.pem
|
||||||
|
|||||||
@ -10,6 +10,7 @@ class profiles::nomad::node (
|
|||||||
String $user = 'nomad',
|
String $user = 'nomad',
|
||||||
String $group = 'nomad',
|
String $group = 'nomad',
|
||||||
Array $host_volumes = [],
|
Array $host_volumes = [],
|
||||||
|
String $node_pool = 'default',
|
||||||
){
|
){
|
||||||
|
|
||||||
if $manage_user {
|
if $manage_user {
|
||||||
|
|||||||
@ -21,6 +21,7 @@ server {
|
|||||||
# Manage clients/agents
|
# Manage clients/agents
|
||||||
client {
|
client {
|
||||||
enabled = true
|
enabled = true
|
||||||
|
node_pool = "<%= @node_pool %>"
|
||||||
|
|
||||||
<%- @host_volumes.each do |volume| %>
|
<%- @host_volumes.each do |volume| %>
|
||||||
host_volume "<%= volume['name'] %>" {
|
host_volume "<%= volume['name'] %>" {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user