Commit 9e2a1e6
Changed files (2)
recipes
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]