~openstack-charm-testers/openstack-charm-testing/ceph-rados-gateway-testing

« back to all changes in this revision

Viewing changes to README-bundle-render.md

  • Committer: Ryan Beisner
  • Date: 2016-08-10 18:40:25 UTC
  • mfrom: (234.1.8 openstack-charm-testing)
  • Revision ID: ryan.beisner@canonical.com-20160810184025-kihu6psf6z3aa53f
[1chb1n, r=coreycb] Implement bundle rendering and render ppc64 as an example
 - Allows rendering of inheritance bundles to 1.0+2.0-compliant bundles, each with single deploy targets.
 - Add Makefile targets: `make render` for the win.
 - Non-ppc64 bundles still need cs: edits and make targets enabled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
render2.sh
 
2
===========================================================================
 
3
Renders one or more Juju 1+2 bundles from an old-style multiple-inheritance
 
4
bundle.  The source bundle must use "charm: cs:foo" (not branch: foo).
 
5
 
 
6
New or updated bundles will be written to a "rendered" subdir,
 
7
overwriting any existing files.  The rendered bundle files should not
 
8
be hand-edited, as those changes may be lost by future renders.  Any
 
9
necessary changes should be maintained in the classic source bundle.
 
10
 
 
11
### Example: Render the default set of Ubuntu-OpenStack targets
 
12
```
 
13
./tools/render2.sh bundles/ppc64/ppc64el-next.yaml
 
14
```
 
15
 
 
16
### Example: Render the default set of targets from all source bundles in a dir
 
17
```
 
18
./tools/render2.sh bundles/ppc64/*.yaml
 
19
```
 
20
 
 
21
### Example: Render specific targets from a single source bundle
 
22
```
 
23
./tools/render2.sh -t "trusty-kilo xenial-mitaka" bundles/ppc64/ppc64el-next.yaml
 
24
```
 
25
 
 
26
### Example: Render specific targets from all source bundles in a dir
 
27
```
 
28
./tools/render2.sh -t "trusty-kilo xenial-mitaka" bundles/ppc64/*.yaml
 
29
```