Ask Your Question
0

configure firewall module from UI?

asked 2014-10-14 09:01:25 -0500

yaplej gravatar image

Hello,

Im just getting started with PE and want to configure the firewall module. The directions start saying that the site.pp has to be modified. With PE can this be done with the UI only?

Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-10-14 13:22:32 -0500

cbarbour gravatar image

updated 2014-10-14 13:22:53 -0500

You cannot create firewall rules directly through the console. The console can declare and set parameters for classes; it cannot declare and parameterize defined types or native Puppet resource types.

You could however, write a class that sets some firewall rules, and manage that through the Puppet console.

Best practices is to use roles and profiles. Inside your profile, you would include other services add the correct firewall rules for your application.

edit flag offensive delete link more

Comments

Thank you. I was confused if I should be trying to set everything in the PE UI or if I should stick to setting things in the config file. So it seems like the config file would be the most consistent way of doing it.

yaplej gravatar imageyaplej ( 2014-10-14 14:58:53 -0500 )edit

No problem. In general, it's best not to do too much through the PE UI; it has some major limitations compared to declaring classes in code. For example, arrays are not supported by the PE console, and you can't declare ordering or conditional logic there.

cbarbour gravatar imagecbarbour ( 2014-10-17 14:47:06 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-10-14 09:01:25 -0500

Seen: 30 times

Last updated: Oct 14 '14