aboutsummaryrefslogtreecommitdiffstats
path: root/charms/trusty/keepalived/hooks/install
blob: 7004e0ac08bd39dc1937ca14ed44c5ff207263a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python

import setup
setup.pre_install()

from charmhelpers.core import hookenv
from charmhelpers.fetch import apt_upgrade, apt_install


def install():
    hookenv.log('Installing keepalived')

    apt_upgrade(fatal=True, dist=True)
    apt_install('keepalived', fatal=True)


if __name__ == "__main__":
    install()