~barryprice/juju-deployer/LP1892423

« back to all changes in this revision

Viewing changes to README

  • Committer: Adam Gandelman
  • Date: 2013-09-03 20:44:14 UTC
  • mfrom: (69.3.45 darwin)
  • Revision ID: adamg@canonical.com-20130903204414-xsqqz2gp83dp5d2o
MergeĀ lp:juju-deployer/darwin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
1. Juju deployer
 
1
Juju Deployer
 
2
-------------
 
3
 
 
4
A deployment tool for juju that allows stack-like configurations of complex
 
5
deployments.
 
6
 
 
7
It supports configuration in yaml or json.
 
8
 
 
9
Installation
 
10
------------
 
11
 
 
12
  $ virtualenv --system-site-packages deployer
 
13
  $ ./deployer/bin/easy_install juju-deployer
 
14
  $ ./deployer/bin/juju-deployer -h
 
15
 
 
16
 
 
17
Usage
 
18
-----
 
19
 
 
20
 
 
21
Stack Definitions
 
22
-----------------
 
23
 
 
24
High level view::
 
25
 
 
26
  blog:
 
27
     series: precise
 
28
     services:
 
29
        blog:
 
30
          charm: wordpress
 
31
          branch: lp:charms/precise/wordpress
 
32
        db:
 
33
          charm: mysql
 
34
          branch: lp:charms/precise/mysql
 
35
     relations:
 
36
        - [db, blog]
 
37
 
 
38
  blog-prod:
 
39
     inherits: blog
 
40
     services:
 
41
        blog:
 
42
          num_units: 3
 
43
          constraints: instance-type=m1.medium
 
44
          options:
 
45
            wp-content: include-file://content-branch.txt
 
46
        db:
 
47
          constraints: instance-type=m1.large
 
48
          options:
 
49
            tuning: include-base64://db-tuning.txt
 
50
        cachelb:
 
51
          charm: varnish
 
52
          branch: lp:charms/precise/varnish
 
53
     relations:
 
54
        - [cachelb, blog]
 
55
 
 
56
 
 
57
 We've got two deployment stacks here, blog, and blog-prod. The blog stack defines
 
58
 a simple wordpress deploy with mysql and two relations. In this case its
 
59
 
 
60
 
 
61
Development
 
62
-----------
 
63
 
 
64
 Obtain source
 
65
 
 
66
   $ bzr branch lp:juju-deployer/darwin deployer
 
67
   $ cd deployer
 
68
 
 
69
 
 
70
   # Test runner
 
71
   $ python setup.py test
 
72
 
 
73
 
 
74
Background
 
75
----------
2
76
 
3
77
This is a wrapper for Juju that allows stack-like configurations of complex
4
78
deployments.  It was created to deploy Openstack but should be able to deploy