Skip to content
Merged
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 examples/add_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def main():

# deploy charm to the lxd container
application = await model.deploy(
'ubuntu-10',
'cs:ubuntu-10',
application_name='ubuntu',
series='xenial',
channel='stable',
Expand Down
2 changes: 1 addition & 1 deletion examples/add_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def main():

print('Deploying ubuntu')
application = await model.deploy(
'ubuntu-10',
'cs:ubuntu-10',
application_name='ubuntu',
series='trusty',
channel='stable',
Expand Down
674 changes: 674 additions & 0 deletions examples/charms/ubuntu/LICENSE

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions examples/charms/ubuntu/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Overview

Just an Ubuntu image with not much else running.

# Usage

juju deploy ubuntu-lite

## Known Limitations and Issues

It doesn't do much, but it does get you a machine you can play with, as quickly
as I could make it.

# Configuration

None
1 change: 1 addition & 0 deletions examples/charms/ubuntu/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
options: {}
3 changes: 3 additions & 0 deletions examples/charms/ubuntu/hooks/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
status-set active ready
application-version-set $(grep DISTRIB_RELEASE /etc/lsb-release | cut -d= -sf2)
2 changes: 2 additions & 0 deletions examples/charms/ubuntu/hooks/update-status
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
status-set active "$(uptime | grep -oe 'average: .*' | sed -e 's/average:/load:/')"
279 changes: 279 additions & 0 deletions examples/charms/ubuntu/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions examples/charms/ubuntu/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: ubuntu-lite
summary: The smallest charm I could come up with that still looks nice.
maintainer: John Arbash Meinel <john@arbash-meinel.com>
description: |
Run an Ubuntu system, but don't do a whole lot else.
series: ["xenial", "bionic", "trusty"]
provides:
ubuntu:
interface: ubuntu
extra-bindings:
another:
tags:
# https://jujucharms.com/docs/stable/authors-charm-metadata
- misc
- application_development
subordinate: false
1 change: 1 addition & 0 deletions examples/charms/ubuntu/revision
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
2 changes: 1 addition & 1 deletion examples/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def main():
await model.connect()

ubuntu_app = await model.deploy(
'mysql',
'cs:mysql',
application_name='mysql',
series='trusty',
channel='stable',
Expand Down
2 changes: 1 addition & 1 deletion examples/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async def main():
'aws-tim',
)
await model.deploy(
'ubuntu-0',
'cs:ubuntu-0',
application_name='ubuntu',
series='trusty',
channel='stable',
Expand Down
2 changes: 1 addition & 1 deletion examples/credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def main(cloud_name, credential_name):

# verify we can deploy
print('Deploying ubuntu')
app = await model.deploy('ubuntu-10')
app = await model.deploy('cs:ubuntu-10')

print('Waiting for active')
await model.block_until(
Expand Down
2 changes: 1 addition & 1 deletion examples/crossmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def main():

print('Deploying mysql')
application = await offering_model.deploy(
'mysql',
'cs:mysql',
application_name='mysql',
series='trusty',
channel='stable',
Expand Down
2 changes: 1 addition & 1 deletion examples/crossmodel_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def main():

print('Deploying mysql')
application = await offering_model.deploy(
'mysql',
'cs:mysql',
application_name='mysql',
series='trusty',
channel='stable',
Expand Down
2 changes: 1 addition & 1 deletion examples/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async def main():
try:
print('Deploying ubuntu')
application = await model.deploy(
'ubuntu-10',
'cs:ubuntu-10',
application_name='ubuntu',
series='trusty',
channel='stable',
Expand Down
Loading