- From: Liam Kirsher <
>
- To:
- Subject: [chef] Re: Re: AWS OpsWorks custom
- Date: Fri, 24 May 2013 12:58:23 -0700
- Openpgp: id=7011F7B7; url=http://liam.numenet.com/pgp/
Thanks, Peter! That looks like what was looking for.
Is the mirror a mirror of the master branch, or can you specify
different branches?
The repo is not a fork, I gather.
I may give this a try, although someone else made a comment that
OpsWorks version of Chef is old and does not support many of the opscode
community cookbooks.
So, I may have to come up with a different plan.
Liam
On 05/23/2013 06:20 PM, Peter Donald wrote:
>
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
>
--
Liam Kirsher
PGP:
http://liam.numenet.com/pgp/
Archive powered by MHonArc 2.6.16.