Charm needed: Status.net

Bug #897746 reported by Jorge Castro
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juju Charms Collection
Fix Released
Undecided
Nathan Osman

Bug Description

People will want to deploy internal microblogging for their companies, etc.

http://status.net/

Tags: new-charm
Jorge Castro (jorge)
Changed in charm:
assignee: nobody → George Edison (george-edison55)
Revision history for this message
Nathan Osman (george-edison55) wrote :

I have just finished testing this charm and I believe it is now ready as well. There are 3 required configuration options that must be set before the application will finish installation and finish setting everything up: 'nickname', 'password', and 'email'. These correspond to the username, password, and email address of the administrator respectively.

Please let me know if you have any questions / comments / problems running the charm.

Mark Mims (mark-mims)
tags: added: new-charm
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Hi George! Thanks for the submission.

*****Blockers:*****

[1]
$ charm proof statusnet
W: relation website has no hooks

This is a broken relation. The interface requires that on join, you do 'relation-set hostname=`unit-get private-address` port=80'. This is so that a load balancer or some other proxy can sit in front of your server.

[2]
/copyright
George, how come you have assigned copyright to Nathan Osman? Was that intentional? It seems rather odd that you would write a charm but give copyright to someone else without explaining that fact.

*****End Blockers *****

*****Bugs (not blockers, need to be fixed shortly or opened as bugs in the charm):*****

/hooks/install

juju-log "Downloading StatusNet"
cd /tmp
wget -q http://status.net/statusnet-1.0.1.tar.gz

juju-log "Verifying archive integrity"
HASH=`md5sum statusnet-1.0.1.tar.gz`
if [[ $HASH != '727a7cfe7e9531b732739dabd295bcb9 statusnet-1.0.1.tar.gz' ]] ; then
    echo "Hash verification failed!"
    exit 1
fi

We have a set of tools for automating common tasks like this. You can install them like this in your install hook:

add-apt-repository ppa:charmers/charm-helpers
apt-get update
apt-get -y install charm-helper-bash

Then you can replace the block above with

. /usr/share/charm-helpers/sh/net.sh
ch_file_get http://status.net/statusnet-1.0.1.tar.gz 727a7cfe7e9531b732739dabd295bcb9

/hooks/config-changed

As I understand it, the service isn't usable until you have an admin username/password/email. You should add an 'else' clause to the big if there that logs a warning..

juju-log -l WARNING "Admin nickname/password/email must be set before site will be configured"

*****

Next steps: fix the two blockers, they should be relatively quick, then re-add the 'new-charm' tag to this bug and we'll import it into the charm repo! THANKS AGAIN!!

tags: removed: new-charm
Revision history for this message
Nathan Osman (george-edison55) wrote :

Okay, I have made the requested modifications:

[1]: I have added that line to the installer.

[2]: Nathan Osman is actually my real name - although I use the name 'George Edison' as my username, I always use my real name for copyrighting code, etc. After talking to Jorge Castro, I discovered that I can change my display name on Launchpad, so I just did that :)

As for the bugs:

hooks/install: I added the code that takes advantage of the charm helper scripts as you suggested.

hooks/config-changed: I have added the warning.

tags: added: new-charm
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Cool thanks Nathan aka George. ;)

The website relation is still broken, the relation-set needs to be in a *hook* script, not install, specifically hooks/website-relation-joined

Not a blocker, but in install, you need to add the 'add-apt-repository ppa:charmers/charm-helpers' and subsequent apt-get update for the charmers PPA, as charm-helper-sh is not yet guaranteed by juju to be available. The only reason that will work now is because you happen to be using the PPA version of Juju.

Revision history for this message
Nathan Osman (george-edison55) wrote :

I have corrected these two issues now.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Awesome Nathan, looks good! I have imported this as the "official" statusnet charm.

Next Steps:

I would recommend you go here:

https://launchpad.net/charm/+source/statusnet

And click

Subscribe to bug mail.

You can continue to maintain your personal branch of this charm, and when you want to update the official one, propose a merge. A member of charmers will sponsor it into the official charm promptly.

THANKS!

Changed in charm:
status: New → Fix Released
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.