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

Upgrade to latest vsts linux installer and add validation for bad chars #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

akomakom
Copy link

@akomakom akomakom commented May 8, 2020

Latest linux installer adds escaping of the systemd unit filename via systemd-escape --path which screws things up for the optimistic service naming. This PR ensures that the issue is caught early.

Alternatives:

  • Perform the \x2 escaping for dashes and hope that backslashes will work consistently in puppet's service resource (I'd rather not)
  • Do not validate agent_name. Instead, always do regsubst($agent_name, '-', '_', 'G'). (possibly disruptive)

TBH I haven't considered other possible bad chars, but I figured that dashes would be fairly common.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant