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

Unable to exclude multiple packages in yum.conf #80

Closed
nmaludy opened this issue Nov 21, 2017 · 2 comments
Closed

Unable to exclude multiple packages in yum.conf #80

nmaludy opened this issue Nov 21, 2017 · 2 comments

Comments

@nmaludy
Copy link
Member

nmaludy commented Nov 21, 2017

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 3.8.7
  • Ruby: ruby 2.0.0p648 (2015-12-16) [x86_64-linux
  • Distribution: Red Hat Enterprise Linux Server release 7.4 (Maipo)
  • Module version: 0.10.0

How to reproduce (e.g Puppet code you use)

I'm trying to exclude multiple packages in /etc/yum.conf. The man page for yum.conf says that this must be a space separated list of values, so i tried the following:

yum::config { 'exclude':
  ensure => 'openmotif* compat-libstdc*'
}

What are you seeing

Only the first element is being put into the config.

[main]
exclude=openmotif*
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

What behaviour did you expect instead

A config file with the full string i specified for exclude:

[main]
exclude=openmotif* compat-libstdc*'
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

Output log

Any additional information you'd like to impart

@joekohlsdorf
Copy link

This was fixed by commit 80af8a4, issue can be closed.

@bastelfreak
Copy link
Member

Thanks for letting us know @joekohlsdorf !

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

No branches or pull requests

3 participants