Merge lp:~james-page/charms/trusty/ceph/wily into lp:~openstack-charmers-archive/charms/trusty/ceph/next

Proposed by James Page
Status: Merged
Merged at revision: 118
Proposed branch: lp:~james-page/charms/trusty/ceph/wily
Merge into: lp:~openstack-charmers-archive/charms/trusty/ceph/next
Diff against target: 41 lines (+21/-1)
2 files modified
hooks/hooks.py (+1/-1)
hooks/install (+20/-0)
To merge this branch: bzr merge lp:~james-page/charms/trusty/ceph/wily
Reviewer Review Type Date Requested Status
OpenStack Charmers Pending
Review via email: mp+271984@code.launchpad.net
To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #9635 ceph-next for james-page mp271984
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/9635/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #10445 ceph-next for james-page mp271984
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/10445/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #6591 ceph-next for james-page mp271984
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/6591/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/hooks.py'
2--- hooks/hooks.py 2015-09-04 10:33:49 +0000
3+++ hooks/hooks.py 2015-09-22 14:26:42 +0000
4@@ -76,7 +76,7 @@
5 shutil.copy(x, '/etc/init/')
6
7
8-@hooks.hook('install')
9+@hooks.hook('install.real')
10 def install():
11 execd_preinstall()
12 add_source(config('source'), config('key'))
13
14=== modified symlink 'hooks/install' (properties changed: -x to +x)
15=== target was u'hooks.py'
16--- hooks/install 1970-01-01 00:00:00 +0000
17+++ hooks/install 2015-09-22 14:26:42 +0000
18@@ -0,0 +1,20 @@
19+#!/bin/bash
20+# Wrapper to deal with newer Ubuntu versions that don't have py2 installed
21+# by default.
22+
23+declare -a DEPS=('apt' 'netaddr' 'netifaces' 'pip' 'yaml')
24+
25+check_and_install() {
26+ pkg="${1}-${2}"
27+ if ! dpkg -s ${pkg} 2>&1 > /dev/null; then
28+ apt-get -y install ${pkg}
29+ fi
30+}
31+
32+PYTHON="python"
33+
34+for dep in ${DEPS[@]}; do
35+ check_and_install ${PYTHON} ${dep}
36+done
37+
38+exec ./hooks/install.real
39
40=== added symlink 'hooks/install.real'
41=== target is u'hooks.py'

Subscribers

People subscribed via source and target branches