【文件属性】:
文件名称:itamae-plugin-resource-firewalld:Itamae资源插件来管理firewalld
文件大小:15KB
文件格式:ZIP
更新时间:2021-05-05 10:20:07
Ruby
板前::插件::资源::防火墙
资源插件,用于管理 。
用法
service 'firewalld' do
action [ :start , :enable ]
end
firewalld_zone 'external' do
interfaces %w( enp0s8 enp0s9 )
services %w( ssh )
masquerade true
notifies :restart , 'service[firewalld]'
end
firewalld_zone 'public' do
interfaces %w( enp0s3 )
services %w( ssh https mysql )
ports %w( 8080/tcp 4243/udp )
default_zone true
notifies :rest
【文件预览】:
itamae-plugin-resource-firewalld-master
----.gitignore(108B)
----.travis.yml(127B)
----itamae-plugin-resource-firewalld.gemspec(1KB)
----LICENSE.txt(1KB)
----examples()
--------recipe.rb(805B)
--------Vagrantfile(148B)
--------README.md(2KB)
----README.md(3KB)
----lib()
--------itamae()
----Gemfile(117B)
----Rakefile(163B)
----test()
--------helper.rb(419B)
--------itamae()