Matthew Burgess
2014-Feb-19 10:52 UTC
[Puppet Users] Why is the environment setting limited to alphanumeric characters only?
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+unsubscribe@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.