diff --git a/devops-service/workers/stack_bootstrap/chef_node_name_builder.rb b/devops-service/workers/stack_bootstrap/chef_node_name_builder.rb index 0be1073..4b59781 100644 --- a/devops-service/workers/stack_bootstrap/chef_node_name_builder.rb +++ b/devops-service/workers/stack_bootstrap/chef_node_name_builder.rb @@ -4,11 +4,12 @@ # Variables meanings: # - +:project+ is replaced with project name (given in constructor) # - +:env+ is replaced with env name (given in constructor) +# - +:time+ is replaced with current timestamp # - +:instanceid+ is replaced with provider instance id (fetched from server info) # - +:instancename+ is replaced with value of Name tag (fetched from server info) # - +:increment-groupname:+ is replaced with incremented number tied to group name. There could be several groups in one stack. -# P.S. Colons are used instead of dollar signs, because it's convinient to set nodename mask tag to AWS stack and not in template -# (you set tag once and it propagates to all instances), but stacks don't support dollar signs in tags (unlike EC2 instances). +# P.S. Colons are used instead of dollar signs, because stacks don't support dollar signs in tags (unlike EC2 instances), +# but it's convenient to set mask tag directly to a stack (not in template): you set tag once and it propagates to all instances. class ChefNodeNameBuilder DEFAULT_MASK = ':project-:instancename-:env'