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"
|
||||
|
||||
development_run_list = %w(
|
||||
kosmos_openresty::default
|
||||
kosmos_openresty::hello_world
|
||||
)
|
||||
|
||||
default_run_list = %w(
|
||||
kosmos_openresty::default
|
||||
)
|
||||
|
||||
env_run_lists(
|
||||
'_default' => default_run_list,
|
||||
'development' => default_run_list,
|
||||
'development' => development_run_list,
|
||||
'production' => default_run_list
|
||||
)
|
||||
|
|
|
@ -5,8 +5,3 @@
|
|||
|
||||
# Install openresty from official packages
|
||||
include_recipe 'openresty::apt_package'
|
||||
|
||||
openresty_site 'hello_world' do
|
||||
template 'hello_world.conf.erb'
|
||||
action :enable
|
||||
end
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#
|
||||
# Cookbook:: kosmos_openresty
|
||||
# Recipe:: hello_world
|
||||
#
|
||||
|
||||
openresty_site 'hello_world' do
|
||||
template 'hello_world.conf.erb'
|
||||
action :enable
|
||||
end
|
Loading…
Reference in New Issue