help deciding which plug-in based on current setup

Neil Martinsen-Burrell nmb at wartburg.edu
Tue Oct 13 20:34:24 BST 2009


On 2009-10-13 12:52 , lance raymond wrote:
> My initial thread was answered 1/2 way, so figured I would start a new.
> I do have the new 2.x installed with some help, but now part 2 is the
> 'auto-update' as I will put it.
>
> We have 8 webservers, all identical hardware, all have bzr 2.x
> installed.  I have a few folders (branches) I wish to create, some are
> pretty static like apache virtual host ones, others are a little more
> frequently updated like web code.  The apache ones I will modify and
> update and wish the changes to goto all 8 webservers, others like the
> webcode, can people check-out the branch, work remotely, then commit, or
> must they work on a development copy then just commit?  I am looking at
> the plugins page under publishing and not sure if I want to use;
> automirror
> push and update
> repo-push
> upload
>
> The webservers are not publically available, but users can access a
> development server which has all the data.  So they can connect to that,
> (not sure if they can checkout locally) but then update and then commit
> which then I want the changes to all goto all the webservers.  I can
> setup sftp if need be, ssh is already allowed and the development server
> can (under the http user) ssh directly in with ssh-keys to the public
> webservers, so I am trying to see what plugin to use.  There is not a
> lot of docs on the plugins so figured there are users using these in
> this list who can say which will accomplish what is needed or best for
> these tasks.

I went ahead and added multiple mirror support to the automirror plugin. 
  Separating multiple branch URLs with commas will update all of those 
URLs on every commit.  So, on the development server where you would 
like commits to be immediately mirrored, you should put

post_commit_mirror=bzr+ssh://http@server1/remote_branch_path,bzr+ssh://http@server2/different_remote_path

in the branch.conf file within the .bzr/branch directory.  Note that 
when committing to the development server using bzr+ssh, the bzr process 
runs on the development server as the user who is making the commit. 
This user (on the development server) would then need to have SSH 
public-key access to the "http" user on the webservers in order for the 
updating to happen without a password.  I understand that this may be a 
deal-breaker security-wise, but I don't have any good ideas for how to 
get around this in a distributed VCS.  If you do, please let me know.

-Neil



More information about the bazaar mailing list