Move the Hello World lua app to its own recipe
Use it in the development environment
This commit is contained in:
parent
96f45b1f63
commit
4e0bd191c3
@ -1,11 +1,16 @@
|
|||||||
name "openresty"
|
name "openresty"
|
||||||
|
|
||||||
|
development_run_list = %w(
|
||||||
|
kosmos_openresty::default
|
||||||
|
kosmos_openresty::hello_world
|
||||||
|
)
|
||||||
|
|
||||||
default_run_list = %w(
|
default_run_list = %w(
|
||||||
kosmos_openresty::default
|
kosmos_openresty::default
|
||||||
)
|
)
|
||||||
|
|
||||||
env_run_lists(
|
env_run_lists(
|
||||||
'_default' => default_run_list,
|
'_default' => default_run_list,
|
||||||
'development' => default_run_list,
|
'development' => development_run_list,
|
||||||
'production' => default_run_list
|
'production' => default_run_list
|
||||||
)
|
)
|
||||||
|
@ -5,8 +5,3 @@
|
|||||||
|
|
||||||
# Install openresty from official packages
|
# Install openresty from official packages
|
||||||
include_recipe 'openresty::apt_package'
|
include_recipe 'openresty::apt_package'
|
||||||
|
|
||||||
openresty_site 'hello_world' do
|
|
||||||
template 'hello_world.conf.erb'
|
|
||||||
action :enable
|
|
||||||
end
|
|
||||||
|
9
site-cookbooks/kosmos_openresty/recipes/hello_world.rb
Normal file
9
site-cookbooks/kosmos_openresty/recipes/hello_world.rb
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#
|
||||||
|
# Cookbook:: kosmos_openresty
|
||||||
|
# Recipe:: hello_world
|
||||||
|
#
|
||||||
|
|
||||||
|
openresty_site 'hello_world' do
|
||||||
|
template 'hello_world.conf.erb'
|
||||||
|
action :enable
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user