prevent installation of docker from upstream

This commit is contained in:
Rye Terrell 2017-04-19 14:24:14 -05:00
parent 4524579c0e
commit 20c36e9c93
2 changed files with 7 additions and 1 deletions

View File

@ -12,6 +12,9 @@ includes:
- 'interface:kubernetes-cni'
- 'interface:kube-dns'
- 'interface:kube-control'
config:
deletes:
- install_from_upstream
options:
basic:
packages:

View File

@ -38,7 +38,6 @@ from charmhelpers.core import hookenv, unitdata
from charmhelpers.core.host import service_stop, service_restart
from charmhelpers.contrib.charmsupport import nrpe
# Override the default nagios shortname regex to allow periods, which we
# need because our bin names contain them (e.g. 'snap.foo.daemon'). The
# default regex in charmhelpers doesn't allow periods, but nagios itself does.
@ -53,6 +52,10 @@ db = unitdata.kv()
@hook('upgrade-charm')
def upgrade_charm():
# Trigger removal of PPA docker installation if it was previously set.
set_state('config.changed.install_from_upstream')
hookenv.atexit(remove_state, 'config.changed.install_from_upstream')
cleanup_pre_snap_services()
check_resources_for_upgrade_needed()