Code Monkey home page Code Monkey logo

Comments (14)

sheijmans avatar sheijmans commented on June 25, 2024

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

#50

from puppet-augeasproviders.

domcleal avatar domcleal commented on June 25, 2024

@sheijmans do you mean it's broken on the current version, but working on an older one?

from puppet-augeasproviders.

sheijmans avatar sheijmans commented on June 25, 2024

@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.

domcleal avatar domcleal commented on June 25, 2024

Thanks for confirming. Which OS is this?

from puppet-augeasproviders.

sheijmans avatar sheijmans commented on June 25, 2024

This was on RHEL64, I will also check it on RHEL59.

from puppet-augeasproviders.

sheijmans avatar sheijmans commented on June 25, 2024

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.

kitchen avatar kitchen commented on June 25, 2024

I'm running into this same issue on ubuntu 12.04 with v1.0.0. It does not clear itself up.

from puppet-augeasproviders.

kitchen avatar kitchen commented on June 25, 2024
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.

domcleal avatar domcleal commented on June 25, 2024

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.

kitchen avatar kitchen commented on June 25, 2024

Ok, I'll make a PR for this as it's affecting me right now :)

give me a few minutes!

from puppet-augeasproviders.

razorsedge avatar razorsedge commented on June 25, 2024

+1

from puppet-augeasproviders.

treydock avatar treydock commented on June 25, 2024

+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.

jeffNagra avatar jeffNagra commented on June 25, 2024

+1

from puppet-augeasproviders.

domcleal avatar domcleal commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.