You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ The LWRPs provided by this cookbook are not meant to be used by themselves; make
29
29
java_webapp
30
30
-----------
31
31
32
-
The `java_webapp` sub-resource LWRP deals with deploying Java webapps delivered as WAR files which will be retrieved from a remote URL.
32
+
The `java_webapp` sub-resource LWRP deals with deploying Java webapps delivered as WAR files which will either be retrieved from a remote URL or fetched by some other method and referenced locally.
33
33
34
34
NOTICE: the `application` cookbook was designed around frameworks running on interpreted languages that are deployed in source code, checked out of an SCM using the `deploy_revision` resource. While this cookbook tries to map those concepts to a binary distribution mechanism, it may not map exactly.
35
35
@@ -60,6 +60,19 @@ tomcat
60
60
61
61
The `tomcat` sub-resource LWRP configures Tomcat to run the application by creating a symbolic link to the context file.
62
62
63
+
Attributes
64
+
==========
65
+
66
+
strategy: required to be one of
67
+
:java_remote_file allows downloading from a remote http url
68
+
:java_local_file allows using a package on the filesystem
69
+
path: the target location for the application distribution. This should be outside of the tomcat deployment tree.
70
+
repository:
71
+
- java_remote_file uses repository as the remote URL
72
+
- java_local_file uses repository as the source file location on the disk
73
+
revision: name of the war file on disk, should change with each new version
74
+
75
+
63
76
Usage
64
77
=====
65
78
@@ -69,6 +82,7 @@ A sample application that needs a database connection:
69
82
path "/usr/local/my-app"
70
83
repository "..."
71
84
revision "..."
85
+
strategy :java_local_file
72
86
73
87
java_webapp do
74
88
database_master_role "database_master"
@@ -96,6 +110,7 @@ context file for other reasons), you can specify your own template:
0 commit comments