Skip to content

Commit 8437be9

Browse files
first commit
0 parents  commit 8437be9

File tree

15 files changed

+689
-0
lines changed

15 files changed

+689
-0
lines changed

Diff for: README.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Charm Magnum
2+
3+
4+
Charm to deploy Magnum in a Canonical OpenStack deployment
5+
6+
7+
## Build charm
8+
9+
You will need to have the [trustee](https://github.com/gabriel-samfira/layer-trustee) interface copied in your ```$INTERFACE_PATH```.
10+
11+
12+
```bash
13+
export CHARM_BASE="$HOME/work/charms"
14+
export JUJU_REPOSITORY="$CHARM_BASE/build"
15+
export INTERFACE_PATH="$CHARM_BASE/interfaces"
16+
export LAYER_PATH="$CHARM_BASE/layers"
17+
18+
mkdir -p $JUJU_REPOSITORY
19+
mkdir $INTERFACE_PATH
20+
mkdir $LAYER_PATH
21+
22+
cd charm-magnum
23+
charm build
24+
```
25+
26+
27+
## Deploy charm
28+
29+
```bash
30+
juju deploy ./charm-magnum magnum --config openstack-origin="cloud:xenial-queens"
31+
32+
juju add-relation magnum mysql
33+
juju add-relation magnum rabbitmq-server
34+
juju add-relation magnum:identity-service keystone:identity-service
35+
juju add-relation magnum:trustee-credentials keystone:trustee-credentials
36+
37+
```

Diff for: config.yaml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
options:
2+
openstack-origin:
3+
default: distro
4+
type: string
5+
description: |
6+
Repository from which to install. May be one of the following:
7+
distro (default), ppa:somecustom/ppa, a deb url sources entry,
8+
or a supported Cloud Archive release pocket.
9+
10+
Supported Cloud Archive sources include: cloud:precise-folsom,
11+
cloud:precise-folsom/updates, cloud:precise-folsom/staging,
12+
cloud:precise-folsom/proposed.
13+
14+
Note that updating this setting to a source that is known to
15+
provide a later version of OpenStack will trigger a software
16+
upgrade.
17+
rabbit-user:
18+
default: magnum
19+
type: string
20+
description: Username used to access rabbitmq queue
21+
rabbit-vhost:
22+
default: openstack
23+
type: string
24+
description: Rabbitmq vhost
25+
database-user:
26+
default: magnum
27+
type: string
28+
description: Username for Magnum database access
29+
database:
30+
default: magnum
31+
type: string
32+
description: Database name for Magnum
33+
debug:
34+
default: False
35+
type: boolean
36+
description: Enable debug logging
37+
verbose:
38+
default: False
39+
type: boolean
40+
description: Enable verbose logging
41+
region:
42+
default: RegionOne
43+
type: string
44+
description: OpenStack Region
45+
trustee-domain:
46+
type: string
47+
default: magnum
48+
description: Domain used for COE
49+
trustee-admin:
50+
type: string
51+
default: magnum_domain_admin
52+
description: Domain admin for the trustee-domain

Diff for: icon.svg

+279
Loading

Diff for: layer.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
includes:
2+
- layer:openstack-api
3+
- interface:mysql-shared
4+
- interface:rabbitmq
5+
- interface:keystone
6+
- interface:trustee
7+
repo: https://github.com/cloudbase/charm-magnum
8+
options:
9+
basic:
10+
use_venv: true
11+
include_system_packages: true

Diff for: lib/__init__.py

Whitespace-only changes.

Diff for: lib/charm/__init__.py

Whitespace-only changes.

Diff for: lib/charm/openstack/__init__.py

Whitespace-only changes.

Diff for: lib/charm/openstack/magnum/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)