-
-
Save vil1/c5a5ec048e99e24d331f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script "install" do | |
interpreter "bash" | |
user "root" | |
code <<-EOH | |
curl #{node['eventstore']['download_url']} | tar xz -C /opt | |
EOH | |
end | |
package "daemonize" do | |
action :install | |
end | |
directory "/var/data" do | |
owner 'root' | |
group 'root' | |
action :create | |
end | |
directory "/var/data/db" do | |
owner 'root' | |
group 'root' | |
action :create | |
end | |
directory "/var/data/logs" do | |
owner 'root' | |
group 'root' | |
action :create | |
end |
I'm sure you saw this other chef cookbook for ES but I've tried porting many things from "real" chef to OpsWorks - https://github.com/seif/eventstore-cookbook/blob/master/recipes/install.rb
This looks like it is actually mis-implemented as the created user name is hard-coded to "eventstore", but the other things are paramaterized.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm curious if you have to do all of this as root. Do you know if it would be possible (advisable) to run ES as a less-privileged user?