Matt,

I don't remember the technical details on why it exists, but it does. No, there aren't any plans to relax it that I'm aware of...

Yeah, we use git branches as environments, and we essentially do 's/[^A-Za-z0-9_]/_/g' on the branch names to get environment names.

-Jason

On 02/19/2014 05:52 AM, Matthew Burgess wrote:
Hi,

Our infrastructure design has the environment that a server lives in embedded in its FQDN:

hostname.seccomp-environment.local

Where seccomp is the 'security compartment' (i.e. the kind of data it houses) and env is the environment name.

I set my puppet.conf up so that 'environment = sc-env1' and got the following error back from the master:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: The environment must be purely alphanumeric, not 'sc-env1'

I can kind of understand there being some limitations around allowed characters (e.g. $, #, %), but I'd have thought that a hyphen would be a) pretty safe and b) quite a common use case. Reading the fine manual (http://docs.puppetlabs.com/guides/environment.html#naming-environments) that actually mentions that underscores are allowed too; It's a shame the error message doesn't allude to that (see PUP-1395). So, for the time being I'll translate our hyphens to underscores to workaround the limitation.

Does anyone know why this restriction exists, and if there are any plans to relax the restrictions?

Kind Regards,

Matt.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAKUTv3JneenHvUE7EKj%3DmHRNioGNa5cwrrOfJg0n%3D1Ps4oOVCw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5304B4B4.1070503%40jasonantman.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to