Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSP: wrong documentation for allowed environment name characters (maybe?) #1158

Open
bastelfreak opened this issue Jun 13, 2024 · 5 comments
Labels
triaged This ticket has been accepted to our backlog and migrated internally

Comments

@bastelfreak
Copy link

bastelfreak commented Jun 13, 2024

Describe the Bug

From https://www.puppet.com/docs/puppet/7/environments_creating#env_structure

Note: Environment names can contain lowercase letters, numbers, and underscores. They must match the following regular expression rule: \A[a-z0-9_]+\Z. If you are using Puppet 5, remove the environment_data_provider setting.

I can deploy environments with r10k that contain lowercase and uppercase letters. I also didn't notice any issues while doing a quick test. Also r10k didn't correct my environment FOO to foo. Are uppercase letters supported and just the docs aren't up2date?

Expected Behavior

Support lower- and uppercase letters in environment names.

Steps to Reproduce

  • deploy an environment named FOO
  • run puppet agent -t --environment FOO

Environment

  • Puppet 8.6.0
  • Ubuntu 20.04

Additional Context

There is also https://www.puppet.com/docs/puppet/7/lang_reserved.html#environment-names

@lisarobertson lisarobertson added the triaged This ticket has been accepted to our backlog and migrated internally label Jun 14, 2024
Copy link

Migrated issue to PUPDOC-5661

@joshcooper
Copy link
Contributor

@bastelfreak The behavior may depend on whether your filesystem is case-insensitive, but case-preserving as is the default on macOS

@bastelfreak
Copy link
Author

bastelfreak commented Jul 31, 2024

Does that mean that Puppet/puppetserver itself don't have those restrictions, only maybe the used filesystem?

I also did some testing with PE 2021 and PE 2023 and code-manager and classifier seem to work totally fine with uppercase letters.

@bastelfreak
Copy link
Author

Hey,
I need to validate branch names for a larger PE installation. Is there any chance someone can take a look soonish?

@lisarobertson lisarobertson changed the title wrong documentation for allowed environment name characters (maybe?) OSP: wrong documentation for allowed environment name characters (maybe?) Sep 6, 2024
@bastelfreak
Copy link
Author

Hello, could someone please take a look here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged This ticket has been accepted to our backlog and migrated internally
Projects
None yet
Development

No branches or pull requests

3 participants