-
Notifications
You must be signed in to change notification settings - Fork 15
added yum_params for RHEL 5 & 6 only #9
base: master
Are you sure you want to change the base?
Conversation
Now the tests work at least. I dont get it to work in RHEL 7? |
fixed space in yum_params added " " inside if. dirty, should probably be added around the hole config block instead of using \ |
If it's a repo option you need to create a A list of all available options is available in the man page for If what you want is to disable a repo it would actually be wide to create a new class parameter called |
Also
this way we can support all platforms equally. |
could it be used like this the?
What I want to achieve is to disable all repos and only use one or two. |
disablerepo/enablerepo are a particular case because they belong to the [repo] section of the config file, and not the main section. That means you have to use the
For all other parameters the syntax I explained is the way to go. And the module should absolutely support all RHEL versions :) |
Hi, I have tried this in many different ways now but I don't get repos to work with centos 7. i have added this to the /etc/yum/yum-cron.conf_dailyupdate
|
Hi, I have tested some other yum.conf options added in yum-cron.conf but it doesn't seem to work. This makes me think that setting yum parameters is not supported in latest yum-cron. |
It works for me, as long as I use params from the [base] section. $ man yum.conf |
Could you give me a working example? I have tried on latest centos7 to add:
and
All in the base section. But yum-cron still used the fastestmirror plugin and installed updates from the updates repo? |
Ah, I thought you meant base parameters. Repo parameters won't work indeed, that was a wrong assumption so we'll have to use I will start working on it probably by the end of the week. |
Still haven't taken the time to look into it yet, sorry for the delay. |
c32fea5
to
2d60ea1
Compare
4a4fe49
to
2f4f8ca
Compare
ef1e13d
to
e9acfec
Compare
yum-cron in RHEL 7 and Fedora don't support this.
This makes it possible to set any yum parameter for RHEL 5 and 6
@antoineco I am no good at the rspec stuff, do I need to do something there?