Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layer.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
includes: ['layer:basic'] # if you use any interfaces, add them here
includes: ['layer:basic', 'layer:apt'] # if you use any interfaces, add them here
12 changes: 9 additions & 3 deletions reactive/simple_react.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from charmhelpers.core.hookenv import status_set
from charmhelpers.core.hookenv import log
import charms.apt


@when_not('simple-react.installed')
Expand All @@ -17,7 +18,12 @@ def install_simple_react():
# * https://jujucharms.com/docs/devel/developer-getting-started
# * https://github.com/juju-solutions/layer-basic#overview
#
print("I hope this is logged!")
status_set('waiting', 'Waiting for intallation of unzip')
charms.apt.queue_install(['unzip'])
set_state('simple-react.installed')
status_set("active", "Ready")
log("Installation complete")
log('Application ready')

@when('apt.installed.unzip')
def install_unzip():
status_set('active', 'Ready')
log('Package unzip installed.')