Merge lp:~umasv1987/charms/trusty/was-nd/was-ndfix into lp:~ibmcharmers/charms/trusty/was-nd/devel

Proposed by Uma
Status: Merged
Approved by: neha verma
Approved revision: 1
Merged at revision: 2
Proposed branch: lp:~umasv1987/charms/trusty/was-nd/was-ndfix
Merge into: lp:~ibmcharmers/charms/trusty/was-nd/devel
Diff against target: 821 lines (+753/-0)
13 files modified
README.md (+83/-0)
config.yaml (+27/-0)
copyright (+17/-0)
hooks/config-changed (+202/-0)
hooks/install (+48/-0)
hooks/start (+15/-0)
hooks/stop (+12/-0)
icon.svg (+279/-0)
metadata.yaml (+11/-0)
revision (+1/-0)
tests/00-setup (+5/-0)
tests/10-bundles-test.py (+43/-0)
tests/bundles.yaml (+10/-0)
To merge this branch: bzr merge lp:~umasv1987/charms/trusty/was-nd/was-ndfix
Reviewer Review Type Date Requested Status
neha verma Pending
Review via email: mp+255636@code.launchpad.net

Description of the change

WAS ND Charm

To post a comment you must log in.
2. By Uma

Commiting Test suite

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'README.md'
2--- README.md 1970-01-01 00:00:00 +0000
3+++ README.md 2015-04-17 07:59:54 +0000
4@@ -0,0 +1,83 @@
5+# Overview
6+
7+WebSphere Application Server Network Deployment
8+
9+
10+WebSphere Application Server is a proven, high-performance transaction engine that can help build, run, integrate, and manage dynamic web applications.
11+
12+
13+#Creating the repositories
14+Run steps below with admin access
15+
16+Install needed packages
17+ apt-get install dpkg-dev apache2
18+
19+Create the repository on apache server
20+Under your apache repository directory
21+ cd <apache-repository-directory>
22+Configure apache server to allow access to the repository
23+Configure config.yaml with the repository url
24+ was_url: "http://<server-name>/debs/"
25+
26+# Usage
27+Download your licensed IBM Installation Manager software version 1.5 and above and upload to your apache repository
28+
29+Download your licensed IBM Websphere ND software 8.5.5.0 and upload to your apache repository
30+
31+Download your licensed IBM Websphere ND software WAS fixpack version 8.5.5.4 version and upload to your apache repository
32+
33+For WAS 8.5.5.0 Download refer : http://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/welcome_nd.html
34+for WAS 8.5.5.4 fixpack download refer : http://www-01.ibm.com/support/docview.wss?uid=swg24038539 link
35+
36+To download and install the code contained in this charm you must agree to the
37+IBM license. The license file(s) can be found in the product binaries you downloaded.
38+
39+Run the following to deploy this charm:
40+
41+ juju deploy was-base
42+
43+At this point the charm will wait until the user accepts the license. If you
44+agree to the license, run the following command:
45+
46+ juju set was-base accept-ibm-im-license=True
47+ juju set was-base accept-ibm-websphere-license=True
48+
49+
50+You can then browse to http://ip-address:9060 to view WAS Console.
51+
52+# Configuration
53+
54+`was_url`
55+Apache Repository URL where WAS packages are placed
56+
57+`im_install_path`
58+Installation Manager Installation path , This si the path where Installation Manager will get installed'
59+
60+`im_file_name`
61+Downloaded Installation Manager Package Name
62+
63+`accept-ibm-im-license`
64+The IBM Installation Manager software comes with special terms and conditions from IBM.
65+The IBM Installation Manager software can only be used by accepting the terms and
66+conditions found in the IBM-Installation-Manager-license.txt file.
67+
68+Setting this option to True indicates that you have read and accept the
69+IBM Installation Manager terms and conditions found in the license file.
70+The license file(s) can be found in the product binaries you downloaded.
71+
72+`accept-ibm-was-nd-license`
73+Before you can use, extract, or install IBM WebSphere Application Server
74+for Developers V8.5.5, you must accept the terms of International License
75+Agreement for Non-Warranted Programs and additional license information.
76+Please read the license agreement carefully.
77+
78+The license file can be found in the root directory of the charm source
79+in the IBM-WebSphere-license.txt file
80+
81+**The WebSphere software cannot be installed until the terms and
82+contions are accepted. The charm will not function correctly until the
83+this configuration option is set to True.**
84+
85+# Contact Information
86+
87+For issues with this charm, please contact jujusupp@us.ibm.com
88
89=== added file 'config.yaml'
90--- config.yaml 1970-01-01 00:00:00 +0000
91+++ config.yaml 2015-04-17 07:59:54 +0000
92@@ -0,0 +1,27 @@
93+options:
94+ was_nd_url:
95+ type: string
96+ default: ""
97+ description: "Download url for WAS ND packages"
98+ im_install_path:
99+ type: string
100+ default: "/opt/IBM/InstallationManager"
101+ description: "Install Location for Installation Manager.Can be changed if IM needs to be installed at some other place"
102+ im_file_name:
103+ type: string
104+ default: "Install_Mgr_v1.6.2_Lnx_WASv8.5.5.zip"
105+ description: "Installation Manager installable Name"
106+ accept-ibm-was-nd-license:
107+ type: boolean
108+ default: False
109+ description: |
110+ The IBM WebSphere Application ServerNetwork Deployment software comes with special terms and
111+ conditions from IBM. The WebSphere software can only be used by
112+ accepting the license terms and conditions.
113+ accept-ibm-im-license:
114+ type: boolean
115+ default: False
116+ description: |
117+ The IBM Installation Manager software comes with special terms and
118+ conditions from IBM. The Installation Manager software can only be used by
119+ accepting the license terms and conditions.
120
121=== added file 'copyright'
122--- copyright 1970-01-01 00:00:00 +0000
123+++ copyright 2015-04-17 07:59:54 +0000
124@@ -0,0 +1,17 @@
125+Format: http://dep.debian.net/deps/dep5/
126+
127+Files: *
128+Copyright: Copyright 2014, Canonical Ltd., All Rights Reserved.
129+License: GPL-3
130+ This program is free software: you can redistribute it and/or modify
131+ it under the terms of the GNU General Public License as published by
132+ the Free Software Foundation, either version 3 of the License, or
133+ (at your option) any later version.
134+ .
135+ This program is distributed in the hope that it will be useful,
136+ but WITHOUT ANY WARRANTY; without even the implied warranty of
137+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
138+ GNU General Public License for more details.
139+ .
140+ You should have received a copy of the GNU General Public License
141+ along with this program. If not, see <http://www.gnu.org/licenses/>.
142
143=== added directory 'files'
144=== added directory 'files/archives'
145=== added directory 'hooks'
146=== added file 'hooks/config-changed'
147--- hooks/config-changed 1970-01-01 00:00:00 +0000
148+++ hooks/config-changed 2015-04-17 07:59:54 +0000
149@@ -0,0 +1,202 @@
150+#!/bin/bash
151+# config-changed occurs everytime a new configuration value is updated (juju set)
152+
153+set -e
154+
155+WAS_ND_INSTALL_PATH=/root/IBM/WebSphere/AppServer/V85/ND
156+# Check whether IM is installed
157+is_im_installed()
158+{
159+ if [ -f $IM_INSTALL_PATH/eclipse/IBMIM ]; then
160+ echo "True"
161+ else
162+ echo "False"
163+ fi
164+
165+}
166+
167+
168+# Check whether WAS ND is installed
169+is_was_nd_installed()
170+{
171+ if [ -d $WAS_ND_INSTALL_PATH/bin ]; then
172+ echo "True"
173+ else
174+ echo "False"
175+ fi
176+
177+}
178+
179+
180+# Remove was nd, if installed
181+remove_was_nd_software()
182+{
183+
184+ was_nd_installed=`is_was_nd_installed`
185+ if [ $was_nd_installed == True ]; then
186+ juju-log "Removing WAS ND Installation"
187+ # Uninstalling WAS ND
188+ cd $IM_INSTALL_PATH/eclipse/tools
189+ sudo ./imcl uninstall com.ibm.websphere.liberty.ND.v85 -installationDirectory $WAS_ND_INSTALL_PATH
190+ fi
191+ juju-log "Uninstalling WAS ND software completed"
192+}
193+
194+#Remove IM, if installed
195+remove_im_software()
196+{
197+
198+ im_installed=`is_im_installed`
199+ if [ $im_installed == True ]; then
200+ juju-log "Removing IBM WebSphere IM software."
201+ cd /root/var/ibm/InstallationManager/uninstall
202+ #Uninstalling IM
203+ ./uninstall --launcher.ini user-silent-uninstall.ini
204+ fi
205+
206+}
207+
208+# Remove WAS ND if license not accpeted
209+remove_unaccepted_software()
210+{
211+
212+ if [ $1 == False ]; then
213+ juju-log "Removing IBM WebSphere (if installed) as the license agreement is not accepted."
214+ if [ -f $IM_INSTALL_PATH/eclipse/IBMIM ]; then
215+ juju-log "IM exists "
216+ remove_was_nd_software
217+ else
218+ juju-log "IM not exists and hence exiting from WAS unistalling"
219+ exit 0
220+ fi
221+ fi
222+
223+
224+ if [ $2 == False ]; then
225+ juju-log "Removing IBM IM (if installed) as the license agreement is not accepted."
226+
227+ #Check any dependent products exists like WAS
228+
229+ if [ -d $WAS_ND_INSTALL_PATH/bin ]; then
230+ juju-log "Can not uninstall IM as its has WAS product installed"
231+ exit 0
232+ else
233+ juju-log "Uninstall IM software"
234+ remove_im_software
235+ fi
236+ fi
237+
238+}
239+
240+
241+juju-log "Websphere WAS ND: Begin config-change hook"
242+was_nd_license_accepted=`config-get accept-ibm-was-nd-license`
243+im_license_accepted=`config-get accept-ibm-im-license`
244+IM_INSTALL_PATH=`config-get im_install_path`
245+# Remove IM and WAS if license not accepted and exit. Else install it
246+remove_unaccepted_software $was_nd_license_accepted $im_license_accepted
247+if [ $im_license_accepted == False ]; then
248+ juju-log "Websphere IM License not accepted."
249+
250+elif [ $im_license_accepted == True ]; then
251+
252+ juju-log "License accepted"
253+ im_inst=`is_im_installed`
254+ if [ $im_inst == False ]; then
255+ juju-log "IM installation start"
256+ # Check IM package availability
257+ juju-log $CHARM_DIR
258+ if [ -f $CHARM_DIR/files/archives/IM/userinstc ];
259+ then
260+ juju-log "IM Packages available for installation.";
261+ cp $CHARM_DIR/files/archives/IM/install.xml $CHARM_DIR/files/archives/IM/silent_install.xml
262+ sed -i "2 a \<profile kind='self' installLocation='$IM_INSTALL_PATH' id='IBM Installation Manager'>\n <data key='eclipseLocation' value='$IM_INSTALL_PATH' />\n</profile>" $CHARM_DIR/files/archives/IM/silent_install.xml
263+ $CHARM_DIR/files/archives/IM/userinstc -input $CHARM_DIR/files/archives/IM/silent_install.xml -acceptlicense
264+ if [ $? == 0 ]
265+ then
266+ juju-log "IM Is installed successfully"
267+ else
268+ juju-log "Error while installing IM"
269+ exit 1
270+ fi
271+
272+ else
273+ juju-log "IM Packages missing. Please check README file.";
274+ juju-log "Upgrade IM charm after adding the IM packages";
275+ exit 1
276+ fi
277+ fi
278+else
279+ juju-log " Acceptable values for license is 'True' or 'False'"
280+
281+fi
282+
283+if [ $was_nd_license_accepted == False ]; then
284+ juju-log "Websphere ND License not accepted."
285+
286+elif [ $was_nd_license_accepted == True ]; then
287+ juju-log "Check WAS ND package availability"
288+ # check WAS package availability
289+ if [ -d "$CHARM_DIR/files/archives/disk1" ]; then
290+ juju-log "WAS ND Packages available for installation.";
291+ #Check IM installation
292+ im_installed=`is_im_installed`
293+ if [ $im_installed == True ]; then
294+ juju-log "Installing WAS ND "
295+ cd $IM_INSTALL_PATH/eclipse/tools
296+ sudo ./imcl install com.ibm.websphere.ND.v85 -repositories $CHARM_DIR/files/archives/ -installationDirectory $WAS_ND_INSTALL_PATH -sharedResourcesDirectory $IM_INSTALL_PATH/IMShared -acceptLicense -showProgress
297+ if [ $? == 0 ]
298+ then
299+ juju-log " WAS Base is installed successfully"
300+ else
301+ juju-log "Error while installing WAS"
302+ exit 1
303+ fi
304+ else
305+ juju-log "IM is not installaed to install WAS"
306+ exit 0
307+ fi
308+
309+ juju-log "creating a profile"
310+ cd $WAS_ND_INSTALL_PATH/bin
311+ #sh does not work in ubuntu so linking to bash
312+
313+ juju-log "Unlink /bin/sh"
314+ sudo unlink /bin/sh
315+ sudo ln -s /bin/bash /bin/sh
316+ juju-log "creating a profile"
317+
318+ juju-log "updating /etc/hosts with hostname"
319+ # Need to update hostname in /etc/hosts
320+ private_address=`unit-get private-address`
321+ juju-log "private_address : $private_address"
322+ echo "$private_address `hostname`" >> /etc/hosts
323+ if [ $? == 0 ]
324+ then
325+ juju-log "hostname updated"
326+ else
327+ juju-log "Error while updating /etc/hosts"
328+ fi
329+
330+ sudo ./manageprofiles.sh -create -profileName "test" -profilePath "$WAS_ND_INSTALL_PATH/profiles/test" -templatePath "$WAS_ND_INSTALL_PATH/profileTemplates/default/" -nodeName "node1" -cellName "cell1" -serverName "server1" -adminUserName "wasadmin" -adminPassword "wasadmin"
331+ juju-log "Profile creation completed"
332+
333+ #Apply fixpack 8.5.5.4 to upgrade was nd version from 8.5.5.0 to 8.5.5.4
334+
335+ juju-log "Upgrading WAS Base"
336+ cd $IM_INSTALL_PATH/eclipse/tools
337+ sudo ./imcl install com.ibm.websphere.ND.v85_8.5.5004.20141119_1746 -repositories $CHARM_DIR/files/archives/was_fixpack/ -installationDirectory $WAS_ND_INSTALL_PATH -sharedResourcesDirectory $IM_INSTALL_PATH/IMShared -acceptLicense -showProgress
338+ if [ $? == 0 ]
339+ then
340+ juju-log " WAS fixpack installed successfully"
341+ else
342+ juju-log "Error while installing WAS fixpack"
343+ exit 1
344+ fi
345+
346+ else
347+ juju-log "WAS ND Packages are not available "
348+ fi
349+
350+fi
351+
352
353=== added file 'hooks/install'
354--- hooks/install 1970-01-01 00:00:00 +0000
355+++ hooks/install 2015-04-17 07:59:54 +0000
356@@ -0,0 +1,48 @@
357+#!/bin/bash
358+# Here do anything needed to install the service
359+
360+set +e
361+juju-log "Downloading WASND Installable"
362+was_repository=`config-get was_nd_url`
363+im_file_name=`config-get im_file_name`
364+juju-log "repository : $was_repository"
365+if [ -z $was_repository ];then
366+juju-log "Please enter Repository URL in config.yaml"
367+fi
368+
369+juju-log "im_file_name : $im_file_name"
370+if [ -z $im_file_name ];then
371+ juju-log "Please enter IM Installation path or IM package Name"
372+fi
373+juju-log "Downloading and extracting WASND packages"
374+sudo apt-get install unzip
375+ juju-log "downloading and extracting IM packages"
376+ cd $CHARM_DIR/files/archives
377+ mkdir IM
378+ cd IM
379+ wget $was_repository/$im_file_name
380+ unzip $im_file_name
381+
382+cd $CHARM_DIR/files/archives
383+wget $was_repository/WASND_v8.5.5_1of3.zip
384+wget $was_repository/WASND_v8.5.5_2of3.zip
385+wget $was_repository/WASND_v8.5.5_3of3.zip
386+
387+#installing unzip packages
388+unzip WASND_v8.5.5_1of3.zip
389+unzip WASND_v8.5.5_2of3.zip
390+unzip WASND_v8.5.5_3of3.zip
391+
392+
393+juju-log "Downloading and extracting WASND fixpack images"
394+#Downloading was fixpack packages
395+cd $CHARM_DIR/files/archives
396+mkdir was_fixpack
397+cd was_fixpack
398+wget $was_repository/8.5.5-WS-WAS-FP0000004-part1.zip
399+wget $was_repository/8.5.5-WS-WAS-FP0000004-part2.zip
400+
401+#Extracting the packages
402+unzip 8.5.5-WS-WAS-FP0000004-part1.zip
403+unzip 8.5.5-WS-WAS-FP0000004-part2
404+juju-log "WASND Installables download complete"
405
406=== added file 'hooks/start'
407--- hooks/start 1970-01-01 00:00:00 +0000
408+++ hooks/start 2015-04-17 07:59:54 +0000
409@@ -0,0 +1,15 @@
410+#!/bin/bash
411+WAS_ND_INSTALL_PATH=/root/IBM/WebSphere/AppServer/V85/ND
412+
413+#starting the server
414+cd $WAS_ND_INSTALL_PATH/profiles/test/bin/
415+sudo ./startServer.sh server1
416+ if [ "$?" -ne "0" ]; then
417+ juju-log "Error while starting the server"
418+ else
419+ juju-log "Server started successfully"
420+
421+ fi
422+
423+open-port 9060
424+open-port 9443
425
426=== added file 'hooks/stop'
427--- hooks/stop 1970-01-01 00:00:00 +0000
428+++ hooks/stop 2015-04-17 07:59:54 +0000
429@@ -0,0 +1,12 @@
430+#!/bin/bash
431+
432+set -e
433+WAS_ND_INSTALL_PATH=/root/IBM/WebSphere/AppServer/V85/ND
434+
435+cd $WAS_ND_INSTALL_PATH/profiles/test/bin/
436+ sudo ./stopServer.sh server1
437+ if [ "$?" -ne "0" ]; then
438+ juju-log "Error while stoping the server"
439+ else
440+ juju-log "Server stopped successfully"
441+ fi
442
443=== added file 'icon.svg'
444--- icon.svg 1970-01-01 00:00:00 +0000
445+++ icon.svg 2015-04-17 07:59:54 +0000
446@@ -0,0 +1,279 @@
447+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
448+<!-- Created with Inkscape (http://www.inkscape.org/) -->
449+
450+<svg
451+ xmlns:dc="http://purl.org/dc/elements/1.1/"
452+ xmlns:cc="http://creativecommons.org/ns#"
453+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
454+ xmlns:svg="http://www.w3.org/2000/svg"
455+ xmlns="http://www.w3.org/2000/svg"
456+ xmlns:xlink="http://www.w3.org/1999/xlink"
457+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
458+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
459+ width="96"
460+ height="96"
461+ id="svg6517"
462+ version="1.1"
463+ inkscape:version="0.48+devel r12274"
464+ sodipodi:docname="Juju_charm_icon_template.svg">
465+ <defs
466+ id="defs6519">
467+ <linearGradient
468+ inkscape:collect="always"
469+ xlink:href="#Background"
470+ id="linearGradient6461"
471+ gradientUnits="userSpaceOnUse"
472+ x1="0"
473+ y1="970.29498"
474+ x2="144"
475+ y2="970.29498"
476+ gradientTransform="matrix(0,-0.66666669,0.6660448,0,-866.25992,731.29077)" />
477+ <linearGradient
478+ id="Background">
479+ <stop
480+ id="stop4178"
481+ offset="0"
482+ style="stop-color:#b8b8b8;stop-opacity:1" />
483+ <stop
484+ id="stop4180"
485+ offset="1"
486+ style="stop-color:#c9c9c9;stop-opacity:1" />
487+ </linearGradient>
488+ <filter
489+ style="color-interpolation-filters:sRGB;"
490+ inkscape:label="Inner Shadow"
491+ id="filter1121">
492+ <feFlood
493+ flood-opacity="0.59999999999999998"
494+ flood-color="rgb(0,0,0)"
495+ result="flood"
496+ id="feFlood1123" />
497+ <feComposite
498+ in="flood"
499+ in2="SourceGraphic"
500+ operator="out"
501+ result="composite1"
502+ id="feComposite1125" />
503+ <feGaussianBlur
504+ in="composite1"
505+ stdDeviation="1"
506+ result="blur"
507+ id="feGaussianBlur1127" />
508+ <feOffset
509+ dx="0"
510+ dy="2"
511+ result="offset"
512+ id="feOffset1129" />
513+ <feComposite
514+ in="offset"
515+ in2="SourceGraphic"
516+ operator="atop"
517+ result="composite2"
518+ id="feComposite1131" />
519+ </filter>
520+ <filter
521+ style="color-interpolation-filters:sRGB;"
522+ inkscape:label="Drop Shadow"
523+ id="filter950">
524+ <feFlood
525+ flood-opacity="0.25"
526+ flood-color="rgb(0,0,0)"
527+ result="flood"
528+ id="feFlood952" />
529+ <feComposite
530+ in="flood"
531+ in2="SourceGraphic"
532+ operator="in"
533+ result="composite1"
534+ id="feComposite954" />
535+ <feGaussianBlur
536+ in="composite1"
537+ stdDeviation="1"
538+ result="blur"
539+ id="feGaussianBlur956" />
540+ <feOffset
541+ dx="0"
542+ dy="1"
543+ result="offset"
544+ id="feOffset958" />
545+ <feComposite
546+ in="SourceGraphic"
547+ in2="offset"
548+ operator="over"
549+ result="composite2"
550+ id="feComposite960" />
551+ </filter>
552+ <clipPath
553+ clipPathUnits="userSpaceOnUse"
554+ id="clipPath873">
555+ <g
556+ transform="matrix(0,-0.66666667,0.66604479,0,-258.25992,677.00001)"
557+ id="g875"
558+ inkscape:label="Layer 1"
559+ style="fill:#ff00ff;fill-opacity:1;stroke:none;display:inline">
560+ <path
561+ style="fill:#ff00ff;fill-opacity:1;stroke:none;display:inline"
562+ d="m 46.702703,898.22775 50.594594,0 C 138.16216,898.22775 144,904.06497 144,944.92583 l 0,50.73846 c 0,40.86071 -5.83784,46.69791 -46.702703,46.69791 l -50.594594,0 C 5.8378378,1042.3622 0,1036.525 0,995.66429 L 0,944.92583 C 0,904.06497 5.8378378,898.22775 46.702703,898.22775 Z"
563+ id="path877"
564+ inkscape:connector-curvature="0"
565+ sodipodi:nodetypes="sssssssss" />
566+ </g>
567+ </clipPath>
568+ <filter
569+ inkscape:collect="always"
570+ id="filter891"
571+ inkscape:label="Badge Shadow">
572+ <feGaussianBlur
573+ inkscape:collect="always"
574+ stdDeviation="0.71999962"
575+ id="feGaussianBlur893" />
576+ </filter>
577+ </defs>
578+ <sodipodi:namedview
579+ id="base"
580+ pagecolor="#ffffff"
581+ bordercolor="#666666"
582+ borderopacity="1.0"
583+ inkscape:pageopacity="0.0"
584+ inkscape:pageshadow="2"
585+ inkscape:zoom="4.0745362"
586+ inkscape:cx="18.514671"
587+ inkscape:cy="49.018169"
588+ inkscape:document-units="px"
589+ inkscape:current-layer="layer1"
590+ showgrid="true"
591+ fit-margin-top="0"
592+ fit-margin-left="0"
593+ fit-margin-right="0"
594+ fit-margin-bottom="0"
595+ inkscape:window-width="1920"
596+ inkscape:window-height="1029"
597+ inkscape:window-x="0"
598+ inkscape:window-y="24"
599+ inkscape:window-maximized="1"
600+ showborder="true"
601+ showguides="true"
602+ inkscape:guide-bbox="true"
603+ inkscape:showpageshadow="false">
604+ <inkscape:grid
605+ type="xygrid"
606+ id="grid821" />
607+ <sodipodi:guide
608+ orientation="1,0"
609+ position="16,48"
610+ id="guide823" />
611+ <sodipodi:guide
612+ orientation="0,1"
613+ position="64,80"
614+ id="guide825" />
615+ <sodipodi:guide
616+ orientation="1,0"
617+ position="80,40"
618+ id="guide827" />
619+ <sodipodi:guide
620+ orientation="0,1"
621+ position="64,16"
622+ id="guide829" />
623+ </sodipodi:namedview>
624+ <metadata
625+ id="metadata6522">
626+ <rdf:RDF>
627+ <cc:Work
628+ rdf:about="">
629+ <dc:format>image/svg+xml</dc:format>
630+ <dc:type
631+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
632+ <dc:title></dc:title>
633+ </cc:Work>
634+ </rdf:RDF>
635+ </metadata>
636+ <g
637+ inkscape:label="BACKGROUND"
638+ inkscape:groupmode="layer"
639+ id="layer1"
640+ transform="translate(268,-635.29076)"
641+ style="display:inline">
642+ <path
643+ style="fill:url(#linearGradient6461);fill-opacity:1;stroke:none;display:inline;filter:url(#filter1121)"
644+ d="m -268,700.15563 0,-33.72973 c 0,-27.24324 3.88785,-31.13513 31.10302,-31.13513 l 33.79408,0 c 27.21507,0 31.1029,3.89189 31.1029,31.13513 l 0,33.72973 c 0,27.24325 -3.88783,31.13514 -31.1029,31.13514 l -33.79408,0 C -264.11215,731.29077 -268,727.39888 -268,700.15563 Z"
645+ id="path6455"
646+ inkscape:connector-curvature="0"
647+ sodipodi:nodetypes="sssssssss" />
648+ </g>
649+ <g
650+ inkscape:groupmode="layer"
651+ id="layer3"
652+ inkscape:label="PLACE YOUR PICTOGRAM HERE"
653+ style="display:inline" />
654+ <g
655+ inkscape:groupmode="layer"
656+ id="layer2"
657+ inkscape:label="BADGE"
658+ style="display:none"
659+ sodipodi:insensitive="true">
660+ <g
661+ style="display:inline"
662+ transform="translate(-340.00001,-581)"
663+ id="g4394"
664+ clip-path="none">
665+ <g
666+ id="g855">
667+ <g
668+ inkscape:groupmode="maskhelper"
669+ id="g870"
670+ clip-path="url(#clipPath873)"
671+ style="opacity:0.6;filter:url(#filter891)">
672+ <path
673+ transform="matrix(1.4999992,0,0,1.4999992,-29.999795,-237.54282)"
674+ d="m 264,552.36218 a 12,12 0 1 1 -24,0 A 12,12 0 1 1 264,552.36218 Z"
675+ sodipodi:ry="12"
676+ sodipodi:rx="12"
677+ sodipodi:cy="552.36218"
678+ sodipodi:cx="252"
679+ id="path844"
680+ style="color:#000000;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
681+ sodipodi:type="arc" />
682+ </g>
683+ <g
684+ id="g862">
685+ <path
686+ sodipodi:type="arc"
687+ style="color:#000000;fill:#f5f5f5;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
688+ id="path4398"
689+ sodipodi:cx="252"
690+ sodipodi:cy="552.36218"
691+ sodipodi:rx="12"
692+ sodipodi:ry="12"
693+ d="m 264,552.36218 a 12,12 0 1 1 -24,0 A 12,12 0 1 1 264,552.36218 Z"
694+ transform="matrix(1.4999992,0,0,1.4999992,-29.999795,-238.54282)" />
695+ <path
696+ transform="matrix(1.25,0,0,1.25,33,-100.45273)"
697+ d="m 264,552.36218 a 12,12 0 1 1 -24,0 A 12,12 0 1 1 264,552.36218 Z"
698+ sodipodi:ry="12"
699+ sodipodi:rx="12"
700+ sodipodi:cy="552.36218"
701+ sodipodi:cx="252"
702+ id="path4400"
703+ style="color:#000000;fill:#dd4814;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:4;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
704+ sodipodi:type="arc" />
705+ <path
706+ sodipodi:type="star"
707+ style="color:#000000;fill:#f5f5f5;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
708+ id="path4459"
709+ sodipodi:sides="5"
710+ sodipodi:cx="666.19574"
711+ sodipodi:cy="589.50385"
712+ sodipodi:r1="7.2431178"
713+ sodipodi:r2="4.3458705"
714+ sodipodi:arg1="1.0471976"
715+ sodipodi:arg2="1.6755161"
716+ inkscape:flatsided="false"
717+ inkscape:rounded="0.1"
718+ inkscape:randomized="0"
719+ d="m 669.8173,595.77657 c -0.39132,0.22593 -3.62645,-1.90343 -4.07583,-1.95066 -0.44938,-0.0472 -4.05653,1.36297 -4.39232,1.06062 -0.3358,-0.30235 0.68963,-4.03715 0.59569,-4.47913 -0.0939,-0.44198 -2.5498,-3.43681 -2.36602,-3.8496 0.18379,-0.41279 4.05267,-0.59166 4.44398,-0.81759 0.39132,-0.22593 2.48067,-3.48704 2.93005,-3.4398 0.44938,0.0472 1.81505,3.67147 2.15084,3.97382 0.3358,0.30236 4.08294,1.2817 4.17689,1.72369 0.0939,0.44198 -2.9309,2.86076 -3.11469,3.27355 C 669.9821,591.68426 670.20862,595.55064 669.8173,595.77657 Z"
720+ transform="matrix(1.511423,-0.16366377,0.16366377,1.511423,-755.37346,-191.93651)" />
721+ </g>
722+ </g>
723+ </g>
724+ </g>
725+</svg>
726
727=== added file 'metadata.yaml'
728--- metadata.yaml 1970-01-01 00:00:00 +0000
729+++ metadata.yaml 2015-04-17 07:59:54 +0000
730@@ -0,0 +1,11 @@
731+name: was-nd
732+summary: WebSphere Application Server Network Deployment
733+maintainer: jujusupp@us.ibm.com
734+description: |
735+ WebSphere Application Server is a proven, high-performance transaction engine that can help build, run, integrate, and manage dynamic web applications.
736+tags: ["applications"]
737+subordinate: false
738+provides:
739+ website:
740+ interface: http
741+
742
743=== added file 'revision'
744--- revision 1970-01-01 00:00:00 +0000
745+++ revision 2015-04-17 07:59:54 +0000
746@@ -0,0 +1,1 @@
747+1
748
749=== added directory 'tests'
750=== added file 'tests/00-setup'
751--- tests/00-setup 1970-01-01 00:00:00 +0000
752+++ tests/00-setup 2015-04-17 07:59:54 +0000
753@@ -0,0 +1,5 @@
754+#!/bin/bash
755+
756+sudo add-apt-repository ppa:juju/stable -y
757+sudo apt-get update
758+sudo apt-get install amulet python3-requests -y
759
760=== added file 'tests/10-bundles-test.py'
761--- tests/10-bundles-test.py 1970-01-01 00:00:00 +0000
762+++ tests/10-bundles-test.py 2015-04-17 07:59:54 +0000
763@@ -0,0 +1,43 @@
764+#!/usr/bin/env python3
765+
766+# This amulet test deploys the bundles.yaml file in this directory.
767+
768+import os
769+import unittest
770+import yaml
771+import amulet
772+import requests
773+
774+# Lots of prereqs on this charm (eg: java), so give it a large timeout
775+seconds_to_wait = 2400
776+
777+
778+class BundleTest(unittest.TestCase):
779+ """ Create a class for testing the charm in the unit test framework. """
780+ @classmethod
781+ def setUpClass(cls):
782+ """ Set up an amulet deployment using the bundle. """
783+ d = amulet.Deployment()
784+ bundle_path = os.path.join(os.path.dirname(__file__), 'bundles.yaml')
785+ with open(bundle_path, 'r') as bundle_file:
786+ contents = yaml.safe_load(bundle_file)
787+ d.load(contents)
788+
789+ # Software doesn't actually install until you accept the license
790+ d.configure('was-nd', {'accept-ibm-was-nd-license': True, 'accept-ibm-im-license': True })
791+ d.setup(seconds_to_wait)
792+ cls.d = d
793+
794+ def test_deployed(self):
795+ """ Test to see if the bundle deployed successfully. """
796+ self.assertTrue(self.d.deployed)
797+
798+ def test_website(self):
799+ unit = self.d.sentry.unit['was-nd/0']
800+ url = 'http://%s:9060/ibm/console' % unit.info['public-address']
801+ response = requests.get(url)
802+ # Raise an exception if the url was not a valid web page.
803+ response.raise_for_status()
804+
805+if __name__ == '__main__':
806+ unittest.main()
807
808=== added file 'tests/bundles.yaml'
809--- tests/bundles.yaml 1970-01-01 00:00:00 +0000
810+++ tests/bundles.yaml 2015-04-17 07:59:54 +0000
811@@ -0,0 +1,10 @@
812+was-nd-bundle:
813+ services:
814+ "was-nd":
815+ charm: "was-nd"
816+ num_units: 1
817+ annotations:
818+ "gui-x": "300"
819+ "gui-y": "300"
820+ relations: []
821+ series: trusty

Subscribers

People subscribed via source and target branches

to all changes: