-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Augeas errors arise when applying yum settings on Cent OS 6 clients #47
Comments
|
Hi @weijianwen, thanks for the issue. Can you provide us the error message you get? |
|
@bastelfreak thank you for your quick response. I accidentally clicked the "Send" button in the middle of typing. Now more information is added. Please tell me if anything else if required. |
|
Can you run the agent with |
|
Sure. I'll replace the logs with |
|
Log updated. I am not sure what |
|
It refers to these lines in the debug output: Debug: Augeas[yum.conf_main_exactarch](provider=augeas): /augeas/files/etc/yum.conf/error = parse_failed Debug: Augeas[yum.conf_main_exactarch](provider=augeas): /augeas/files/etc/yum.conf/error/pos = 7 Debug: Augeas[yum.conf_main_exactarch](provider=augeas): /augeas/files/etc/yum.conf/error/line = 2 Debug: Augeas[yum.conf_main_exactarch](provider=augeas): /augeas/files/etc/yum.conf/error/char = 0 Debug: Augeas[yum.conf_main_exactarch](provider=augeas): /augeas/files/etc/yum.conf/error/lens = /opt/puppetlabs/puppet/share/augeas/lenses/dist/yum.aug:49.13-.41: Debug: Augeas[yum.conf_main_exactarch](provider=augeas): /augeas/files/etc/yum.conf/error/message = Get did not match entire input There's an issue with line two of the /etc/yum.conf file. Either:
|
|
@domcleal I empty my |
|
What is the new error message precisely? It can't be exactly the same, as the previous error was about line two. I didn't mean to say that just updating Augeas will fix it, just that if it were a bug fixed between those versions that it may start working. |
|
I figured out why. It is my fault. I tried to modify WRONG configuration: Correct configuration: |
|
|
|
More likely that the file can't be parsed by Augeas after being modified, perhaps the modification is creating invalid syntax or it's unable to parse whatever syntax is given. Can you attach the resulting file that fails? |
|
Sure. The generated |
|
If that's the entire file then it's missing a |
|
Thank you, @domcleal . I'll close this issue. |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Install
puppet-yum:Assign
yummodule to all nodes insite.ppon puppetserver:Apply yum setting on the client node:
What are you seeing
What behaviour did you expect instead
Yum settings should be applied on to the client node.
Output log
Any additional information you'd like to impart
The same configuration works well for Cent OS 7 clients.
The text was updated successfully, but these errors were encountered: