These are chat archives for crayfishx/puppet-firewalld

9th
May 2016
allen00se
@allen00se
May 09 2016 15:06
@crayfishx you around?
Craig Dunn
@crayfishx
May 09 2016 15:06
Yep
allen00se
@allen00se
May 09 2016 15:07
Just testing this module, added a service and the config file shows up as expected in /etc/firewalld/services/ however I have to manually run a "firewall-cmd --permanent --add-service=nagios_nrpe" in order for it to actually work
am i missing something?
Craig Dunn
@crayfishx
May 09 2016 15:12
The module should do exactly that.
Maybe a restarting issue? although I thought that had been resolved now
allen00se
@allen00se
May 09 2016 15:13
I can do a reload or restart the service and it doesnt take affect, only after I run firewall-cmd --permanent --add-service=nagios_nrpe does it work
Craig Dunn
@crayfishx
May 09 2016 15:13
Can you gist your code?
allen00se
@allen00se
May 09 2016 15:13
sure, you want to see the init.pp?
Craig Dunn
@crayfishx
May 09 2016 15:14
the code you are using to generate your firewalld::custom_service resource
allen00se
@allen00se
May 09 2016 15:15
<script src="https://gist.github.com/allen00se/7d1319b92d9211697d77f5c27e122582.js"></script>
Craig Dunn
@crayfishx
May 09 2016 15:17
firewalld::service?
dont you mean firewalld::custom_service?
what is that class?
It's not the firewalld module
allen00se
@allen00se
May 09 2016 15:18
interesting
lemme double chek
is what this one is.
allen00se
@allen00se
May 09 2016 15:20
ya that is the one i thought I was using
Craig Dunn
@crayfishx
May 09 2016 15:20
You seem to have a class managing the package and service and declaring a defined resource type that doesnt exist (in this module)
allen00se
@allen00se
May 09 2016 15:20
might explain why some things were not lining up
Craig Dunn
@crayfishx
May 09 2016 15:21
include firewalld.... should manage that stuff
allen00se
@allen00se
May 09 2016 15:26
ok, booted that other one and got yours installed... hopefully I will have better luck now
Craig Dunn
@crayfishx
May 09 2016 15:27
haha hopefully :-)
You probably want a 'profile::firewalld' class as a wrapper
ie: you shouldn't actually edit any of the classes within the firewalld module itself.
allen00se
@allen00se
May 09 2016 15:28
ok, ill see if I can figure that out
allen00se
@allen00se
May 09 2016 16:10
ha, so i googled puppet profiles and the first video linked is you... lol