Permalink
Browse files

Add ufw config and make munin & ufw configs run.

  • Loading branch information...
1 parent 2df3a2c commit 1bd865cdd6fcd2adb0d0ed50d22c3bf062adb0de @ericholscher committed Nov 11, 2010
Showing with 19 additions and 1 deletion.
  1. +18 −0 cookbooks/main/recipes/security.rb
  2. +1 −1 node.json
@@ -0,0 +1,18 @@
+package "ufw"
+
+service "ufw" do
+ enabled true
+ running true
+ supports :status => true, :restart => true, :reload => true
+ action [:enable, :start]
+end
+
+
+bash "Enable UFW" do
+user "root"
+ code <<-EOH
+ ufw allow 22 #SSH
+ ufw allow 80 #Nginx
+ ufw allow 4949 #Munin
+ EOH
+end
View
@@ -1,5 +1,5 @@
{
- "run_list": [ "main::default", "main::python", "main::readthedocs", "main::memcached", "main::nginx"],
+ "run_list": [ "main::default", "main::python", "main::readthedocs", "main::memcached", "main::nginx", "main::munin", "main::security"],
"base_packages": ["git-core", "bash-completion", "nmap", "telnet"],
"ubuntu_python_packages": ["python-setuptools", "python-pip", "python-dev", "libpq-dev"],
"pip_python_packages": {"virtualenv": "1.5.1", "mercurial": "1.7"},

0 comments on commit 1bd865c

Please sign in to comment.