Charm Needed: SchoolTool

Bug #1077951 reported by Gediminas Paulauskas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Charms Collection
Expired
Undecided
Unassigned

Bug Description

SchoolTool is a student information system for schools.

Create a charm that installs schooltool with default plugins.

Revision history for this message
Gediminas Paulauskas (menesis) wrote :

Here is a basic charm that installs a schooltool server and exposes it through apache2.

Changed in charms:
status: New → In Progress
assignee: nobody → Gediminas Paulauskas (menesis)
assignee: Gediminas Paulauskas (menesis) → nobody
Revision history for this message
Juan L. Negron (negronjl) wrote :

Reviewing this now.

-Juan

Revision history for this message
Juan L. Negron (negronjl) wrote :

Hi Gediminas:

Thank you for the charm submission.

README:
The readme should be a more verbose:
It should have not only a description of the software but, also how the charm works and an example on how to use it.

install/config-changed:
I believe you forgot to open the necessary ports to the app. When I run juju expose schooltool, no ports are opened. You forgot to include open-port 80/TCP ( I assume that it runs on port 80 ).
I would recommend splitting the current install hook into install and config-changed hooks thus leaving only the actual package installation in the install hook and moving the application configuration to config-changed.

start:
Normally, the start hook would ensure that the service is running. In this case, it could look something like:
service schooltool status || service schooltool start
You should also probably do the same for apachew ( service apache2 status || service apache2 start )

stop:
It would be better ( IMHO ) to use: service schooltool stop instead of the full path of the service

website-relation-joined:
This hook is missing . In this hook we would do something like:
relation-set host=`unit-get public-address` port=80 # This is just an example

website-relation-changed:
This hook is empty. Given the application, I don't much see the need for this hook so you can take it out.

At this point, I am marking this Incomplete as there are issues that need addressing. I would be glad to review the charm again once you have addressed the issues detailed above.

There is a whole community of people that can help you if I am not available. We are usually in #juju on freenode.

Thanks,

Juan

Changed in charms:
status: In Progress → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Juju Charms Collection because there has been no activity for 60 days.]

Changed in charms:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.