Comments (14)
Just tested with version 0.7.0 and it works fine, perhaps to be related with;
* sysctl: ignore whitespace inside values during comparisons, fixes #50
from puppet-augeasproviders.
@sheijmans do you mean it's broken on the current version, but working on an older one?
from puppet-augeasproviders.
@domcleal yes it is broken in the current version (v1.0.0) for the above manifest, it works in v0.7.0.
from puppet-augeasproviders.
Thanks for confirming. Which OS is this?
from puppet-augeasproviders.
This was on RHEL64, I will also check it on RHEL59.
from puppet-augeasproviders.
On RHEL59 it also works with v0.7.0 and with v1.0.0 the same message as on RHEL64 but the second time you run it, it doesn't work as it does on RHEL64.
from puppet-augeasproviders.
I'm running into this same issue on ubuntu 12.04 with v1.0.0. It does not clear itself up.
from puppet-augeasproviders.
Error: Execution of '/sbin/sysctl -w kernel.shmall="4194304"' returned 255: error: "Invalid argument" setting key "kernel.shmall"
Error: /Stage[main]/Profile::Nbuild::Postgresql::Server/Sysctl[kernel.shmall]/value: change from 4194304 to 4194304 failed: Execution of '/sbin/sysctl -w kernel.shmall="4194304"' returned 255: error: "Invalid argument" setting key "kernel.shmall"
Error: Execution of '/sbin/sysctl -w kernel.shmmax="17179869184"' returned 255: error: "Invalid argument" setting key "kernel.shmmax"
Error: /Stage[main]/Profile::Nbuild::Postgresql::Server/Sysctl[kernel.shmmax]/value: change from 17179869184 to 17179869184 failed: Execution of '/sbin/sysctl -w kernel.shmmax="17179869184"' returned 255: error: "Invalid argument" setting key "kernel.shmmax"
from puppet-augeasproviders.
Ah, this works in a shell because the shell will parse the quotes and remove them when executing the command. In Puppet, it's running the command directly and passing the quotes straight into the arguments.
from puppet-augeasproviders.
Ok, I'll make a PR for this as it's affecting me right now :)
give me a few minutes!
from puppet-augeasproviders.
+1
from puppet-augeasproviders.
+1
One workaround I've found is setting apply => false
and notify => Exec['reload sysctl']
and defining an Exec to apply sysctl.conf
exec { 'reload sysctl':
command => 'sysctl -p',
refreshonly => true,
path => '/sbin/:/usr/sbin/:/usr/bin/:/bin/',
}
from puppet-augeasproviders.
+1
from puppet-augeasproviders.
Thanks for all the reports, and to @kitchen for fixing the bug. Sorry it took me ages to release.
I've just put out v1.0.1, but hit an error uploading to the Forge, so in the meantime, grab it from GitHub releases here:
https://github.com/hercules-team/augeasproviders/releases/tag/v1.0.1
https://github.com/hercules-team/augeasproviders/releases/download/v1.0.1/domcleal-augeasproviders-1.0.1.tar.gz
from puppet-augeasproviders.
Related Issues (20)
- Create type/provider for resolv.conf edits
- Clarify herculesteam-augeasproviders vs domcleal-augeasproviders ? HOT 3
- Not possible to add multiple kernel parameters with the same name. HOT 2
- Please add Spacevars.lns provider
- Error: Could not prefetch mailalias provider 'augeas': Augeas didn't load /etc/aliases with Aliases.lns from /var/lib/puppet/lib/augeas/lenses: Iterated lens matched less than it should (line:6, character:0) HOT 8
- Rsyslog.conf parsing failed in Ubuntu 16 with Rainerscript HOT 3
- Create a type provider for systemd
- puppet 4 ? HOT 1
- augeasproviders_syslog: should provide meaningful error message for missing `action_type`
- allow "-" to prepend pam type value.
- spaces in group names breaks augeasproviders_ssh HOT 1
- XML types
- Create a provider for multipath HOT 1
- README.md link to "Puppet/Augeas pre-requisites" broken HOT 1
- Renewing Puppet Forge Approved Status
- Incorrect dependency for augeasproviders_grub HOT 1
- Current release tarball (2.2.1) contains .git directory HOT 2
- Dependency Issue with Librarian HOT 1
- Sysctl lense fails for keys that contain colons (":") HOT 1
- Puppet7 support
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-augeasproviders.