Sha256: 6474ea0315d10cc45c46b62060bb05d627238f41781a4c01751e3e7f334d5efe
Contents?: true
Size: 889 Bytes
Versions: 1
Compression:
Stored size: 889 Bytes
Contents
# # Cookbook Name:: testapp # Recipe:: deploy # # Copyright 2014, ThirdWave Insights # # directory "/home/vagrant/ypo" do owner "vagrant" group "vagrant" mode 00750 action :create end cookbook_file "/home/vagrant/ypo/server.js" do source 'server.js' end cookbook_file "/home/vagrant/ypo/package.json" do source 'package.json' end cookbook_file "/home/vagrant/ypo/index.html" do source 'index.html' end execute 'install_ypo' do cwd "/home/vagrant/ypo" user "vagrant" command "npm install" end template "ypo.upstart.conf" do path "/etc/init/ypo.conf" source 'nodejs.upstart.conf.erb' mode '0644' variables( :user => 'vagrant', :node_dir => '/usr', :app_dir => '/home/vagrant', :entry => 'ypo' ) end service 'ypo' do provider Chef::Provider::Service::Upstart supports :restart => true, :start => true, :stop => true action [:restart] end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knife-topo-0.0.3 | test-repo/cookbooks/testapp/recipes/deploy.rb |