/usr/lib/python2.7/dist-packages/charmtools/templates/python_services/files/hooks/install is in charm-tools 2.1.2-0ubuntu4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/usr/bin/python
import setup
setup.pre_install()
from charmhelpers.core import hookenv
def install():
hookenv.log('Installing $metadata.package')
# add steps for installing dependencies and packages here
# e.g.: from charmhelpers import fetch
# fetch.apt_install(fetch.filter_installed_packages(['nginx']))
if __name__ == "__main__":
install()
|