Home:ALL Converter>how to instruct saltstack to reload firewalld?

how to instruct saltstack to reload firewalld?

Ask Time:2016-04-11T21:07:13         Author:SWTM

Json Formatter

I'm trying to configure firewalld via saltstack state file (on Centos7). I can add services just fine to permanent configuration, but that indeed goes into 'permanent' configuration, not in the running one. So, either a reload is needed or (less optional) add same services to running configuration too.

What I've used to add the service:

public: firewalld.present: - name: public - services: - http That works, but just to permanent.

I've tried to add a "watch", but that won't work at all:

firewalld: service.running: - watch: - file: /etc/firewalld/zones/public.xml Error is:

Comment: The following requisites were not found: watch: file: /etc/firewalld/zones/public.xml

So, what can be done? How can I instruct a service reload via a state file?

Author:SWTM,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/36549615/how-to-instruct-saltstack-to-reload-firewalld
yy