~adam-collard/charms/trusty/ceph/trunk

« back to all changes in this revision

Viewing changes to hooks/hooks.py

  • Committer: Marco Ceppi
  • Date: 2013-11-17 22:24:42 UTC
  • mfrom: (65.2.1 ceph)
  • Revision ID: marco@ceppi.net-20131117222442-zmwuhkmjhazleqxs
[gnuoy] Add preinstall hook

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    umount
33
33
)
34
34
from charmhelpers.fetch import add_source
 
35
from charmhelpers.payload.execd import execd_preinstall
35
36
 
36
37
from utils import (
37
38
    render_template,
51
52
@hooks.hook('install')
52
53
def install():
53
54
    log('Begin install hook.')
 
55
    execd_preinstall()
54
56
    add_source(config('source'), config('key'))
55
57
    apt_update(fatal=True)
56
58
    apt_install(packages=ceph.PACKAGES, fatal=True)