Merge lp:~nextrevision/charms/precise/puppet/updated-charm-readme into lp:charms/puppet

Proposed by John Patterson
Status: Merged
Merged at revision: 14
Proposed branch: lp:~nextrevision/charms/precise/puppet/updated-charm-readme
Merge into: lp:charms/puppet
Diff against target: 96 lines (+56/-34)
1 file modified
README.md (+56/-34)
To merge this branch: bzr merge lp:~nextrevision/charms/precise/puppet/updated-charm-readme
Reviewer Review Type Date Requested Status
Marco Ceppi (community) Approve
Review via email: mp+165279@code.launchpad.net

This proposal supersedes a proposal from 2013-05-23.

Description of the change

Renamed the README file to README.md; added Markdown syntax; added project description; added a bit more description to various sections.

To post a comment you must log in.
Revision history for this message
Marco Ceppi (marcoceppi) wrote : Posted in a previous version of this proposal

Hi John, thanks for fixing up the readme, however it looks like this merge proposal is a little backwards. No big deal you'll just want to resubmit it proposing your branch to be merged in to lp:charms/puppet.

review: Needs Resubmitting
Revision history for this message
John Patterson (nextrevision) wrote :

Doh! Thanks for pointing that out, I thought something looked off. It has been resubmitted.

Revision history for this message
Marco Ceppi (marcoceppi) wrote :

LGTM +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== renamed file 'README' => 'README.md'
2--- README 2012-04-16 17:10:00 +0000
3+++ README.md 2013-05-23 01:35:35 +0000
4@@ -1,36 +1,58 @@
5+# Overview
6+
7 This subordinate charm can be used to apply system level policy on top
8-of any juju charms deployed, using puppet.
9-
10-In order to deploy on top of the wordpress+mysql example:
11-
12-# This should give you wordpress:
13-
14-juju deploy wordpress
15-juju deploy mysql
16-juju add-relation mysql wordpress
17-
18-# Now add puppet to wordpress and mysql
19-
20-juju deploy puppet
21-juju add-relation puppet wordpress
22-juju add-relation puppet mysql
23-
24-#If you have an external puppet master, note that you will have to use
25-#some method to classify nodes automatically. The yaml from 'juju status'
26-#should be parsable into an external node classifier.
27-
28-juju set puppet external-puppetmaster=puppet.yourdomain.com
29-
30-# If you need puppet set up:
31-
32-juju deploy puppetmaster
33-# ... setup puppet classes 'mysql' and 'wordpress'
34-juju ssh puppetmaster/0
35-# This next command will result in all nodes being put into a class
36-# that is named after their primary service, so the example will have,
37-# as suggested, two classes, mysql and wordpress.
38-juju add-relation puppetmaster:puppetmaster puppet:puppetmaster
39-
40-That should end up with puppet agent running on the wordpress and
41-mysql nodes, pointed at either your external puppetmaster, or the
42+of any Juju charms deployed, using Puppet. As described by the project
43+[website](https://puppetlabs.com/):
44+
45+> Puppet Open Source is a flexible, customizable framework available under
46+> the Apache 2.0 license designed to help system administrators automate the
47+> many repetitive tasks they regularly perform. As a declarative, model-based
48+> approach to IT automation, it lets you define the desired state - or the
49+> "what" - of your infrastructure using the Puppet configuration language.
50+
51+# Usage
52+
53+This example will show how to deploy puppet on top of the WordPress+MySQL example.
54+
55+## Installing WordPress and MySQL
56+
57+ juju deploy wordpress
58+ juju deploy mysql
59+ juju add-relation mysql wordpress
60+
61+## Adding Puppet to WordPress and MySQL
62+
63+ juju deploy puppet
64+ juju add-relation puppet wordpress
65+ juju add-relation puppet mysql
66+
67+## Specifying an external puppetmaster
68+
69+If you have an external puppetmaster, note that you will have to use
70+some method to classify nodes automatically. The yaml from 'juju status'
71+should be parsable into an external node classifier.
72+
73+ juju set puppet external-puppetmaster=puppet.yourdomain.com
74+
75+# Setting up and configuring a puppetmaster
76+
77+For environments without an existing puppetmaster, first deploy a new one:
78+
79+ juju deploy puppetmaster
80+
81+Next, you will need to setup Puppet classes 'mysql' and 'wordpress':
82+
83+ juju ssh puppetmaster/0
84+
85+This next command will result in all nodes being put into a class
86+that is named after their primary service, so the example will have,
87+as suggested, two classes, 'mysql' and 'wordpress'.
88+
89+ juju add-relation puppetmaster:puppetmaster puppet:puppetmaster
90+
91+# Conclusion
92+
93+That should end up with puppet agent running on the WordPress and
94+MySQL nodes, pointed at either your external puppetmaster, or the
95 newly deployed puppetmaster.
96+

Subscribers

People subscribed via source and target branches

to all changes: