Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

Option to immediately persist to file #5

Closed
@mal

Description

We're currently facing an issue where we update the value of net.core.somaxconn and then try to run an application (3rd party) that checks that value is greater than 1024.

Because the values aren't persisted until the end of the chef run, the application sees the old value as it starts up and errors out and causes the entire chef run to fail.

sysctl_param('net.core.somaxconn') do
  value 4096
end

Chef::Log.warn `sysctl net.core.somaxconn` #=>  default system value

I suggest having the values persisted in two cases;

  1. When all values set via the params attribute have been updated
  2. During an LWRP call when a new resource variable is set immediate true for example

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions