Puppet setup firewall rules task failed

@andrescaroc thank you very much mate. I managed to solve the task without
class { ‘firewalld’: }

but I had to reload the firewall list port with firewall-cmd --reload
thanks a lot @andrescaroc and @gustavos86

Thanks @andrescaroc, that’s exactly what I was looking for.

Hi All,
Could you please check and advise here.
image
as per the above error message, one of the blogs mentioned I have to include the below code snippet in my code.


I have added that towards the end of my code. is that correct? or should I include it in the beginning or at a different place?
also, class { ‘firewalld’: } am I supposed to declare it three times, or declaring it once is sufficient?
#separate pp file for firewall rules

separate pp file for node specification

image
I have attached my codes here. Please advise.
thanks

@andrzej @Inderpreet @andrescaroc @antonysavio1111
please check and advise.

Hi All,
one of you please check and advise.

Thank you!
@Inderpreet @gustavos86 @Tej-Singh-Rana @nashwan @ramnamy @andrescaroc @andrzej @Devops @antonysavio1111 @mouador


blog.pp

data.pp

as per this note.


should I also use Hiera example too in my blog.pp?

@swaroopcs88

blog.pp has some errors.
Hint: remove class { 'firewalld': }

And include it in data.pp

hey @Devops
getting this message now.


data.pp
image
media.pp

any hints here?

@swaroopcs88

You did it in Wrong way. Module firewalld is already installed and you need to include it.

hey sorry, not understanding how to implement that change.
thanks

hi all, please check and advise.
thanks

not sure how to include these changes to my code.
please advise. thank you

@swaroopcs88, please make sure to check puppet services on both master and agent if running. Please make sure to install puppet firewall module puppet/firewalld. As per your screenshot please remove the highlighted code.

Really struggling on my task, everything works on my side but can’t get the task validated :

Here is the test :