cookbook 'catalyst', '= 0.0.31'
catalyst (7) Versions 0.0.31 Follow0
catalyst application resource provider (LWRP)
cookbook 'catalyst', '= 0.0.31', :supermarket
knife supermarket install catalyst
knife supermarket download catalyst
DESCRIPTION
catalyst application resource provider (LWRP)
- start your catalyst application as fast cgi server
Supports OS
- gentoo (tested with Calculate Linux Desktop 9.6)
- ubuntu (tested with 11.10 server amd64)
Requirements
- Catalyst
RESOURCE ACTIONS
-
install
- install catalyst application
RESOURCE ATTRIBUTES
- obligatory attrubutes
-
application_user
- a user name that we should change to before starting application -
application_group
- a group name that we should change to before starting application -
application_home
- a directory where application and all it's prerequsites live -
application_script
- a name of script to start application -
catalyst_config
- a path to catalyst config file
-
- optional attributes
-
perl5lib
- an array of perl5lib pathes -
nproc
- Integer, a number of processes will be launched when application start in fastcgi mode, default value 1 -
envvars
- a hash of environment vars, passed to application environment -
proc_manager
- a perl class, implimenting Fast CGI Process ProcManager, default FCGI::ProcManager -
socket
- a socket, application will be binded to
-
Usage
catalyst_application 'foo' do
application_user 'alex'
application_group 'users'
application_home '/home/alex/catalyst-applications/foo'
application_script 'foo_fastcgi.pl'
catalyst_config '/home/alex/catalyst-applications/foo.conf'
action 'install'
end
Now you may do this:
/etc/init.d/foo start
/etc/init.d/foo stop
/etc/init.d/foo restart
Links
ToDo
- fullfill cucumber tests for ubuntu
Dependent cookbooks
This cookbook has no specified dependencies.