Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing sudo access

  • Loading branch information...
commit 33ec23c78e05beebfe5ce3ea99c7654cac3115b8 1 parent 28c797e
@warnergodfrey authored
Showing with 13 additions and 2 deletions.
  1. +2 −0  metadata.rb
  2. +11 −2 recipes/default.rb
View
2  metadata.rb
@@ -4,3 +4,5 @@
description "Installs rails environment"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.0.1"
+
+depends "sudo"
View
13 recipes/default.rb
@@ -11,8 +11,13 @@
action :create
end
-group "admin" do
- members [ node[:railsready][:install][:user] ]
+include_recipe "sudo"
+
+sudo "railsready" do
+ user "railsready"
+ commands ["/home/#{node[:railsready][:install][:user]}/railsready.sh"]
+ host "ALL"
+ nopasswd true
end
directory "/home/#{node[:railsready][:install][:user]}" do
@@ -44,3 +49,7 @@
action :delete
recursive true
end
+
+file "/etc/sudoers.d/railsready" do
+ action :delete
+end
Please sign in to comment.
Something went wrong with that request. Please try again.