Skip to content

Instantly share code, notes, and snippets.

@overnin
Created October 3, 2012 10:18
Show Gist options
  • Save overnin/3826248 to your computer and use it in GitHub Desktop.
Save overnin/3826248 to your computer and use it in GitHub Desktop.
Looking for a workaround to install ve for vumi without the problematique riak-pb
Looking for a workaround to install ve for vumi without the problematique riak-pb
## puppet/manifest/vusion.pp (part only)
....
file { "/var/vusion/backend/requirements.py":
ensure => present,
source => "puppet:///config/requirements.pip",
require => [User['supervisordUser'],
Exec['checkout-vusion']],
before => Exec['install-virtualenv']
}
exec { "install-virtualenv":
command => "bash supervisord.vusion install",
cwd => "/var/vusion/backend",
refreshonly => true,
timeout => '0',
}
...
## the specific requirements.pip that is copied from puppet:///config/requirements.pip
# Vumi freezed configuration
Twisted==12.2.0
zope.interface==4.0.1
txAMQP==0.6.1
PyYAML==3.10
iso8601==0.1.4
supervisor==3.0a12
pyOpenSSL==0.11
python-ssmi==0.0.4
wokkel==0.7.0
redis==2.6.2
python-smpp==0.1
pytz==2012d
https://github.com/basho/riak-python-client/tarball/1.5.0#egg=riak
#https://github.com/basho/riak_pb/tarball/1.2.0#egg=riak-pb
#https://github.com/calston/riakasaurus.git#egg=riakasaurus
https://bitbucket.org/calston/txriak/get/tip.zip#egg=txriak-0.3.4
https://github.com/dustin/twitty-twister/tarball/master#egg=twittytwister-0.1.1
# Vusion specific
-e git://github.com/praekelt/vumi.git@ca3ca42a36488137b52280a8125a28615217f7b7#egg=vumi
pymongo==2.2
junitxml
## the bash script that will install the requirements.pip "bash supervisord.vusion install"
...
install)
if ROOT
then
su - ${S_USER} -p -c "cd $DIR && virtualenv ve && . $DIR/ve/bin/activate && pip install -r requirements.pip"
else
cd $DIR && virtualenv ve && . $DIR/ve/bin/activate && pip install -r requirements.pip
fi
;;
esac
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment