Comments (5)
Workaround changed:
### Config options
$config_options.each | $name, $options | {
### Workaround because of https://github.com/voxpupuli/puppet-yum/issues/89
if $name == 'exclude' {
if $options['ensure'] != 'absent' {
ini_setting { 'yum_config_exclude':
ensure => present,
path => '/etc/yum.conf',
section => 'main',
setting => 'exclude',
value => "${options['ensure']}",
key_val_separator => '='
}
} else {
ini_setting { 'yum_config_exclude':
ensure => absent,
path => '/etc/yum.conf',
section => 'main',
setting => 'exclude',
key_val_separator => '='
}
}
} else {
yum::config { $name:
* => $options,
}
}
}
from puppet-yum.
Any progress?
We also see this kind of error.
from puppet-yum.
Hey,
i am using the following workaround at this time just for info:
class profile::yum(
Hash $config_options = {},
) {
include yum
### Config options
$config_options.each | $name, $options | {
### Workaround because of https://github.com/voxpupuli/puppet-yum/issues/89
if $name == 'exclude' {
if $options['ensure'] != 'absent' {
file_line { 'yum_config_exclude' :
line => "exclude=${options['ensure']}",
match => 'exclude=.*',
path => '/etc/yum.conf',
}
} else {
file_line { 'yum_config_exclude' :
state => absent,
match => 'exclude=.*',
path => '/etc/yum.conf',
}
}
} else {
yum::config { $name:
* => $options,
}
}
}
}
from puppet-yum.
I think this is an issue with how augeas yum.lns handles exclude. I ended up using versionlock which is suboptimal but close enough for my purposes.
from puppet-yum.
I just found the following bug report:
from puppet-yum.
Related Issues (20)
- Invalid configuration value: failovermethod=priority HOT 1
- How I can achieve puppet only managed repositories? HOT 3
- Package name must be formatted as %{EPOCH}:%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}, not 'String'. HOT 2
- CentOS Stream9 support
- RHEL8, epel-modular is installed with the wrong repo-name
- Use of puppetlabs-yumrepo_core HOT 1
- [RFE] arguments for defined types (versionlock/post_transaction_actions)
- dnf install yum-utils fails on RHEL8 when modifying baseurl and metalink => absent HOT 2
- unnecessary whitespace in gpg key file paths
- GPG key for EPEL repository isn't getting installed before Package resource that requires EPEL repository. HOT 4
- Redhat yum repo certificates have expired
- yum_updates fact: too slow HOT 1
- Revert #258 that added purge_unmanaged_repos
- Exclude versionlocked updates in fact yum_package_updates/yum_has_updates HOT 1
- Add support for Sangoma HOT 1
- Failed to call refresh: '/usr/bin/package-cleanup --oldkernels --count=2 -y' returned 1 instead of one of [0] HOT 4
- `init.pp` does not support `group` param, so `yum::group` in hiera does nothing
- Support dnf module management
- CI tests fail for OracleLinux 7 HOT 1
- The first element of the merge has wrong type, expects a Hash value, got String
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-yum.