Move the Hello World lua app to its own recipe

Use it in the development environment
This commit is contained in:
Greg 2023-07-17 18:04:35 +02:00
parent 96f45b1f63
commit 4e0bd191c3
3 changed files with 15 additions and 6 deletions

View File

@ -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
)

View File

@ -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

View File

@ -0,0 +1,9 @@
#
# Cookbook:: kosmos_openresty
# Recipe:: hello_world
#
openresty_site 'hello_world' do
template 'hello_world.conf.erb'
action :enable
end