Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide the option to only update the live value #15

Merged

Conversation

trevor-vaughan
Copy link
Contributor

There are some sysctl values which, when set in /etc/sysctl.conf, may
cause operational harm to a system.

This patch provides the ability to only update the live value and make
the disk persistence optional.

Additionally:

  • Now use prefetching to get the sysctl values
  • Updated self.instances to obtain information about all sysctl values
    which provides a more accurate representation of the system when using
    puppet resource
  • Fail if the user attempts to set a value that is not valid on the
    system unless silent is set.
  • Updated all tests

Closes #14

There are some sysctl values which, when set in /etc/sysctl.conf, may
cause operational harm to a system.

This patch provides the ability to only update the live value and make
the disk persistence optional.

Additionally:
- Now use prefetching to get the sysctl values
- Updated self.instances to obtain information about all sysctl values
  which provides a more accurate representation of the system when using
  `puppet resource`
- Fail if the user attempts to set a value that is not valid on the
  system unless `silent` is set.
- Updated all tests

Closes voxpupuli#14
@trevor-vaughan trevor-vaughan self-assigned this May 12, 2017
@coveralls
Copy link

coveralls commented May 12, 2017

Coverage Status

Coverage decreased (-3.2%) to 89.535% when pulling 5729f13 on trevor-vaughan:optional_disk_persistence into 1795545 on hercules-team:master.

@coveralls
Copy link

coveralls commented May 12, 2017

Coverage Status

Coverage decreased (-4.4%) to 88.304% when pulling 6c69100 on trevor-vaughan:optional_disk_persistence into 1795545 on hercules-team:master.

Nodesets are complete
@coveralls
Copy link

Coverage Status

Coverage decreased (-4.4%) to 88.304% when pulling ec7e152 on trevor-vaughan:optional_disk_persistence into 1795545 on hercules-team:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-4.4%) to 88.304% when pulling ec7e152 on trevor-vaughan:optional_disk_persistence into 1795545 on hercules-team:master.

@coveralls
Copy link

coveralls commented May 22, 2017

Coverage Status

Coverage decreased (-4.4%) to 88.304% when pulling f343b62 on trevor-vaughan:optional_disk_persistence into 1795545 on hercules-team:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-4.4%) to 88.304% when pulling f343b62 on trevor-vaughan:optional_disk_persistence into 1795545 on hercules-team:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.4%) to 88.304% when pulling f343b62 on trevor-vaughan:optional_disk_persistence into 1795545 on hercules-team:master.

Copy link
Contributor

@nick-markowski nick-markowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcomed functionality updates and good tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants