Skip to content

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

Open
akomakom wants to merge 1 commit intoJacobHenner:masterfrom
akomakom:upgrade-versions
Open

Upgrade to latest vsts linux installer and add validation for bad chars#15
akomakom wants to merge 1 commit intoJacobHenner:masterfrom
akomakom:upgrade-versions

Conversation

@akomakom
Copy link
Copy Markdown

@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