- From: Peter Donald <
>
- To:
- Subject: [chef] Re: AWS OpsWorks custom
- Date: Fri, 24 May 2013 11:20:18 +1000
Hi,
We use a variant of the braid tool to do something similar to this.
Braid will merge in a remote git repository into a local git
repository and allow you to periodically update from the source repo.
The original author stopped looking after the product so we use a
variant you can install via "gem install realityforge-braid"
So a sample workflow may be
$ mkdir mycookbooks
$ cd mycookbooks
$ git init
Initialized empty Git repository in .../mycookbooks/.git/
$ vi README
$ git add README
$ git commit -m "My First commit"
[master (root-commit) 407698e] My First commit
0 files changed
create mode 100644 README
$ braid add
https://github.com/opscode-cookbooks/sql_server.git sql_server
Braid: Adding mirror of '
https://github.com/opscode-cookbooks/sql_server.git'.
Braid: Setup: Creating remote for 'sql_server'.
Braid: Added mirror at 'd9702f8'.
$ ls -a
. .. .braids .git README sql_server
And then you can import as many cookbooks as you want, potentially
upgrade them at a later point via
$ braid update sql_server/
Braid: Updating mirror 'sql_server'.
Braid: Mirror 'sql_server' is already up to date.
You can also edit the local cookbook and commit changes. It is easy to
view these changes via
$ braid diff sql_server/
diff --git a/README.md b/README.md
index 34e8973..a9e6356 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,8 @@ Description
Installs and configures Microsoft SQL Server 2008 R2 server and
client. By default the Express edition is installed, but the
`sql_server::server` recipe supports installation of other editions
(see __Usage__ below).
+Look at me - I am local changes
+
Requirements
============
You can see the list of mirrors via something like
$ braid list
Braid: Listing all mirrors.
=======================================================
sql_server (Locally Modified)
HTH
--
Cheers,
Peter Donald
Archive powered by MHonArc 2.6.16.