-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Debian(-ish) split sysconfig and systemd support #156
base: master
Are you sure you want to change the base?
Conversation
fa1ef17
to
12f9a59
Compare
4d82eda
to
b4798d6
Compare
Hey @vStone, the PR looks pretty good! I just made some little inline comments. |
Looks like I'll have to refactor the daemon options too. systemd does not like snmp*d without the |
0fce9ab
to
a5f3a1c
Compare
@bastelfreak since the parameter (and alignments) were a horrible mess (imho), i reordered/re-aligned the lot of them. Made it into a separate commit so the other diffs are not too big |
@vStone personally I'm in favor of dropping alignments. Without data types they were annoying but with data types they do more harm than good IMHO. |
a5f3a1c
to
6857b05
Compare
Could we postpone further changes to the alignment of the parameters to a separate pull request? :) I already feel bad for including this big alignment change in this one |
IMHO yes since I don't care about alignment so don't put too much effort into it :) |
6857b05
to
41b8986
Compare
41b8986
to
718efb9
Compare
Its getting worse. Ubuntu requires the pid to be in fixed value with its mixed init/systemd scripts wheep |
@bastelfreak @ekohl @Dan33l: I finally got this working on all debian/ubuntu flavors. I created some acceptance tests too because it was a horrible nightmare to figure out how sh*t works on each os. Please re-review ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We usually also run beaker tests on Travis if we can. Think we can do so here as well?
2e91cf1
to
7d1a32f
Compare
I removed the acceptance test things and I'll make a pr for them later on. Need to figure out the beaker hostgenerator part :) other remarks should be fixed. |
7d1a32f
to
09d714e
Compare
…ckage Ubuntu 14.04 is the only os left that uses the weird single /etc/default/snmpd config to control wether or not to start snmpd and/or snmptrapd with *RUN variables. By removing support for this abomination, the module logic can be greatly reduced. On a side note: Ubuntu 14.04 will be EOL 2019/04.
snmpd and snmptrapd now each have their own package and own config file in /etc/default.
Most systemd systems allow using a sysconfig style environments file, but not debian. If we do not want to adjust daemon options, we need to use an systemd drop-in service file.
Remove and re-order the old tests for the combined sysconfig file. Add tests for the systemd configuration.
Attempt to group parameters that belong together. Add data types to a couple of parameters (Booleans)
09d714e
to
82164e2
Compare
@@ -139,6 +139,11 @@ | |||
# @param package_name | |||
# Name of the package. Only set this if your platform is not supported or you know what you are doing. | |||
# | |||
# @param snmptrapd_package_name | |||
# Name of the snmptrapd package, if there is one. | |||
# Only set thi sif your platform is not supported or you know what you are doing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo /thi sif/this if
Dear @vStone, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
1 similar comment
Dear @vStone, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Dear @vStone, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Dear @vStone, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Dear @vStone, thanks for the PR! This is Vox Pupuli Tasks, your friendly Vox Pupuli Github Bot. I noticed that your pull request has CI failures. Can you please have a look at the failing CI jobs? |
This is not needed anymore since Puppet 6. voxpupuli/puppet-systemd#171
Drop systemd daemon-reload for snmp services
Remove support for systems that still use one sysconfig file for both daemons.
Systemd support for debian systems.
Tests cleanup / reorder.
Reorder parameters