-
-
Notifications
You must be signed in to change notification settings - Fork 77
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
Ability to name custom service #75
Comments
@BrandonIngalls yes, I see your issue... I would expect the following to work:
or
This works if we create the filename from https://github.com/crayfishx/puppet-firewalld/blob/master/manifests/custom_service.pp#L58 I've put a PR in for it - I'm not sure how we should treat this one, it's technically a breaking change but I kind of feel this is a bug. PR #76 would break any implementation taken straight from the docs, so Im not sure if we should release that in 3 |
Long term I think the best way to handle a custom service definition would be to name the file firewalld::custom_service { 'mosh':
short => 'Mobile shell that supports roaming and intelligent local echo.',
description => 'Mosh is a remote terminal application that supports intermittent network connectivity, roaming to different IP address without dropping the connection, intelligent local echo and line editing to reduct the effects of "network lag" on high-latency connections.',
port => [
{port => '60000-61000', protocol => 'udp'}
],
} I think that would help cut down on accidental duplicate services in the future. But that change would have to be in 4.0.0, so I would think about adding some sort of deprecation warning if |
Released in 3.1.0 - I'll raise a new ticket for the 4.0.0 spec for this |
While testing the creation of custom services via the
::firewalld
module I came across some behavior that I did not expect -- it is documented and it works exactly as the documentation says it does, but it does not map to what I expected of a custom firewalld service definition.Normal firewalld zone
.xml
fileFirewalld looks in places like
/usr/lib/firewalld/services/
and/etc/firewalld/services/
for service definitions, when one issuesfirewall-cmd [--permanent] --add-service=mosh
firewalld looks formosh.xml
in related folders.CentOS / RHEL do not have a built-in definition for mosh, so I attempted to mimic the Fedora provided xml file via
firewalld::custom_service
.As this module creates a
${short}.xml
service file I ended up with a rather large name.If possible I would like to see the ability to specify the name of a custom service, the short tag is for a small summary of what a service is/does, it should not be the basis for how we reference the custom services we create.
The text was updated successfully, but these errors were encountered: