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

Removing dependencies for sysklogd #124

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@
$default_syslogd_options = '-m 0'
$default_mod_imjournal = false
$default_manage_devlog = false
}
# ensures that sysklogd is absent, which is needed on EL5
require '::sysklogd'
Copy link
Owner

Choose a reason for hiding this comment

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

+1 - this should only be applied to EL5 and not other platforms

}
/^6\.*/: {
$default_pid_file = '/var/run/syslogd.pid'
$sysconfig_erb = 'sysconfig.rhel6.erb'
Expand All @@ -206,8 +208,6 @@
fail("rsyslog supports RedHat like systems with major release of 5, 6 and 7 and you have ${::operatingsystemrelease}")
}
}
# ensures that sysklogd is absent, which is needed on EL5
require '::sysklogd'
}
'Debian': {
$default_logrotate_present = true
Expand Down
1 change: 0 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
}
],
"dependencies": [
{"name":"ghoneycutt/sysklogd","version_requirement":">= 1.0.0 < 2.0.0"},
Copy link
Owner

Choose a reason for hiding this comment

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

It is still a soft dependency and this is needed for the spec tests to work so it should stay. Also doesn't hurt anything by it being there, so I don't understand the motivation to remove it.

Copy link
Author

Choose a reason for hiding this comment

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

It was to avoid an unecessary pull from the puppet forge. But if your need it for tests, it's a good reason to keep it

Copy link
Owner

Choose a reason for hiding this comment

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

Can you please remove the change to metadata.json from your pull request and squash/rebase. The other change to only require sysklodg inside the EL5 case statement is still needed.

Copy link
Author

Choose a reason for hiding this comment

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

Done (I think, I'm not used to github)

{"name":"ghoneycutt/common","version_requirement":">= 1.6.0 < 2.0.0"},
{"name":"puppetlabs/stdlib","version_requirement":">= 4.6.0 < 6.0.0"}
]
Expand Down