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

Add the ability to set deamon command line options #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lamawithonel
Copy link
Contributor

This adds the parameter smartd_opts to set the command line options for smartd(8) using an Augeas resource and the boolean parameter manage_smartd_opts to toggle the behavior. By default smartd_opts contains options that will save disk state and attributes to /var/lib/smartmontool, except where SELinux restricts write access. To maintain backwards compatibility, however, manage_smartd_opts is set to false by default.

This is based off PR #51, so it includes all those other commits. The only difference is 4298dd1. Other than the tests, It could probably be rebased, if needed.

New parameters:

  • smartd_opts
  • manage_smartd_opts

New resources:

  • Augeas['smartd_opts']
  • File['/var/lib/smartmontools']

@lamawithonel lamawithonel force-pushed the smartd_opts branch 4 times, most recently from 46f168e to 10c55ef Compare March 30, 2016 18:34
@lamawithonel lamawithonel mentioned this pull request Mar 31, 2016
@jhoblitt
Copy link
Owner

@lamawithonel Sorry for the slow maintenance activity. Could you rebase on current master?

@lamawithonel
Copy link
Contributor Author

Do you want any of the spec_cleanup changes?

@sammcj
Copy link

sammcj commented Jun 4, 2018

I'm looking at using this module but it seems like it hasn't been maintained for some time.

@lamawithonel is this still an issue?

This adds the parameter `smartd_opts` to set the command line options
for `smartd(8)` using an Augeas resource, and the boolean parameter
`manage_smartd_opts` to toggle this behavior.  By default `smartd_opts`
contains options that will save disk state and attributes to
`/var/lib/smartmontool`, except where SELinux restricts this behavior.
To maintain backwards compatability, however, `manage_smartd_opts` is
set to `false` by default.

New parameters:
 * `smartd_opts`
 * `manage_smartd_opts`

New resources:
 * Augeas['smartd_opts']
 * File['/var/lib/smartmontools']
@lamawithonel
Copy link
Contributor Author

I've rebased the manifest changes onto the current master branch, but the spec tests were a conflict nightmare and pretty much need to be rewritten. I had to force-push due to the conflicts, but the original spec tests are available at 4298dd1 if anyone wants to tackle that. It's not a priority for me right now.

@sammcj
Copy link

sammcj commented Jun 4, 2018 via email

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.

3 participants