Commit 9e2a1e6

mo khan <mo@mokhan.ca>
2015-05-03 17:12:16
update nginx receipe to include apt recipe.
1 parent 00e8e45
Changed files (2)
recipes/default.rb
@@ -1,5 +0,0 @@
-execute "apt-get-update" do
-  command "apt-get update"
-  ignore_failure true
-  action :nothing
-end
recipes/nginx.rb
@@ -1,4 +1,15 @@
-package 'nginx'
+include_recipe "apt"
+apt_repository "nginx-stable" do
+  uri "http://ppa.launchpad.net/nginx/stable/ubuntu"
+  distribution node['lsb']['codename']
+  components ["main"]
+  keyserver "keyserver.ubuntu.com"
+  key "C300EE8C"
+end
+
+package 'nginx' do
+  action :install
+end
 package 'logrotate'
 
 configuration = node[:nginx]