Re: Built in Variable that increments

2016-11-22 Thread Marc O'Brien
Hi Matthieu,

This should be achievable by using  scalr.system.global_variables.format 
.
Example:

app[:configuration] = {"scalr" => {"system" => {
"global_variables" => {
  "format" => {
"SCALR_INSTANCE_FARM_INDEX" => "%03d",
"SCALR_EVENT_INSTANCE_FARM_INDEX" => "%03d"
  }
}
  }
}}

Cheers,
Wm. Marc O'Brien
Scalr Technical Support



On Tuesday, November 22, 2016 at 2:01:32 AM UTC-7, Matthieu Serrepuy wrote:
>
> Is it possible to use SCALR_INSTANCE_FARM_INDEX with a specific number of 
> digit ? ( Example 001 instead of 1 )
>

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Built in Variable that increments

2016-11-22 Thread Matthieu Serrepuy
Is it possible to use SCALR_INSTANCE_FARM_INDEX with a specific number of 
digit ? ( Example 001 instead of 1 )

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Built in Variable that increments

2016-10-12 Thread Jeff Gojkovich
Hello,

I was wondering if there is a built in variable that auto increments so 
that I can use it in the hostname field.

For example the first instance is created, the variable would be 1 or 01. 
 Second instance 02.  Then 01 gets shutdown and a third is launched it 
would be 03, etc.

--
Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to scalr-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.