-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
refresh-mcollective-metadata cron job broken syntax #360
Comments
Would you be able to put a PR together to fix this? |
This seems to have been handled in 8050f53, I'm just confused as to which version I need I guess to get this fix, or more to the point how it got into the version tag I am using. Some of our installations using the same versions still contain the old cron job, using |
So my apologies, but I'm not sure I understand where this needs to be pulled into as yet. |
Github points on in that commit that it's included in the v3.1.0 git tag. That would be my first try. |
Well, I don't have an issue finding the fix; the problem is that puppet on Ubuntu is pulling this in via apt, and yaml.pp has changed in a previous tag (2.10.6). Once the version is tagged, it shouldn't change, should it? That version used to use |
Line 31 of yaml.pp installs a cron job with broken syntax since switching from
facter
topuppet facts
. The command is fine when run manually, but is broken in cron thanks to the use of the%
character as a delimiter in the sed expression.From
man 5 crontab
:Using @ instead should work fine.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Apply yaml.pp, wait 15 minutes, see error emailed by cron.
What are you seeing
/bin/sh: 1: Syntax error: Unterminated quoted string
What behaviour did you expect instead
Successful command execution and population of facts.yaml
Output log
Any additional information you'd like to impart
The text was updated successfully, but these errors were encountered: