Capistrano is great for deploying configs.
Beware advice to invest in puppet or chef for such a simple task. They take
more than 2 days to learn and some care to maintain. Puppet people still
tend to use Capistrano.
It's probably quite out of date but perhaps have a look at how deprec does
it:
, 2011 at 4:28 PM, Lee Hambley lee.hamb...@gmail.com wrote:
Mike, I maintain it - looks like it forwards to a page that tells you
exactly where to get the documentation?
On 23 May 2011 04:06, Mike Bailey m...@bailey.net.au wrote:
I was explaining Capistrano to someone who was confused
Like sysadmins, maintainers only tend to hear from people when things go
wrong.
The fact 24K people downloaded the latest version and that releases haven't
been breaking functionality says to me that Capistrano is in great hands.
On Mon, May 23, 2011 at 6:13 PM, Lee Hambley lee.hamb...@gmail.com
I was explaining Capistrano to someone who was confused at the lack of
documentation.
Does anyone have a copy of the old Capify site we could throw up somewhere?
capify.org redirects to a page that is not entirely helpful
thanks,
Mike
--
* You received this message because you are subscribed
task :web_servers do
role :app, *[%w(foo bar car), %w(ma la ba)].flatten
puts roles[:app].servers
end
On Fri, May 20, 2011 at 11:17 PM, tim timuc...@gmail.com wrote:
I want to be able to do this.
prod_app_servers = [prod_app1, prod_app2, prod_app3, ...]
staging_app_server =
task
You *could* set your account to not require a password for sudo.
# /etc/sudoers
mbailey ALL = NOPASSWD: ALL
There are some security implications - any command run using your account
effectively has root.
- Mike
On Fri, May 13, 2011 at 9:02 PM, Tim Uckun timuc...@gmail.com wrote:
On Fri, May
My apologies for the bad typing there! I'll try again.
What did you change to enable you to ssh to localhost on your EC2 instance?
On Sat, Mar 5, 2011 at 5:17 PM, Mike Bailey m...@bailey.net.au wrote:
That doesn't make sense to me. Why did you change to anable you to ssh to
localhost on your
On Mon, May 17, 2010 at 7:16 PM, Mathias Meyer pomonra...@googlemail.comwrote:
On Mon, May 17, 2010 at 9:12 AM, Sideshow gan...@gmail.com wrote:
Hi,
i'm doing an analyse about Capistrano and i would like to know wich OS
are supported ?
Thanks for the answers.
The
I just bit by the same problem connecting to Ubuntu 9.10 (Karmic
Koala).
I think this is going to affect all Capistrano users who use sudo in
recipes.
Capistrano supports sudo with passwords and ubuntu has always granted
a pty when you ssh to it.
Any idea what may have changed in last weeks
sudo is necessary in some circumstances (such as creating a user or
installing a package)
I've been having a look into this and found that the password prompt for
sudo doesn't seem to be working on a host I've been using since 2006.
maculike:~ mbailey$ cap test_sudo HOSTS=sh01
triggering
- deploy:migrate has gone, it's in an extension you load in the capfile
now
When an existing user tries and fails to run deploy:migrate, what will they
see and how will they know what to do?
How does leaving it in affect people deploying non-rails projects?
I'm always reluctant to
You're asking the same questions on multiple lists and then abandoning the
thread.
http://groups.google.com/group/deprec-users/browse_thread/thread/2da0fbb694bbb709
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/4ee5166137ceb05b/e1e1a620b573ddb7#e1e1a620b573ddb7
Perhaps do
Hi Gerhardus,
I manage lots of servers (50) and keep all the config files under
version control. That way deploying is a snap. I don't know if this is
of interest to you but here's how I do it with deprec.
I generate config files for services using templates in deprec[1].
These ERB templates
I might have some availability.
- Mike
On Wed, Mar 4, 2009 at 8:48 AM, Nate P mist...@gmail.com wrote:
Dear Capistrano experts,
I'm trying to find a firm or freelancer who would be interested in
helping my company setup Capistrano to deploy php applications on our
server setup and maybe
I've also built a plugin that turns on some police lights when our
code build fails. It turns on a string of Christmas lights on a
sucessful deploy.
Great idea! Do you trigger real Christmas lights or display them
onscreen? I'd love to know how to hook up real Christmas lights!
- Mike
The following task successfully creates namespaces with generic names
like :web, :app and :db.
Each contain the recipes for the users choice for that server type.
This allows deprec to use generic commands internally.
top.deprec.web.restart instead of top.deprec.apache.restart
://pastie.org/371967
Don't pull me on my shoddy coding ;) but that's how the default methods
work.
You can put a default at any level of a nested namespace.
= Lee
2009/1/27 Mike Bailey m...@bailey.net.au
It just occurred to me that it would be handy to specify a default role for
a namespace
I think Puppet and Capistrano are both great tools for service installation
and configuration.
I don't know of anything Puppet does that I can't do with Capistrano. I
install and configure all services on my servers using deprec[1], a rubygem
with Capistrano recipes. There are many other gems out
Always exit with 0. Errors are ugly. Just puts 'fail' instead.
You can put the retry logic into the wget command.
- Mike
maculike2:~ mbailey$ if wget --tries=1 --wait=1 --connect-timeout=1
--timeout=1 --quiet http://localhost:8080/; then echo 'success'; else echo
'fail'; fi;
fail
maculike2:~
For 60 retries use:
if wget --tries=60 --wait=1 --connect-timeout=1 --timeout=1 --quiet
http://localhost:8080/; then echo 'success'; else echo 'fail'; fi; exit 0
I don't understand why you suggest not to fail with exit 1. The task
has failed. The plan is that I want to later on implement
Hi guys,
I'll respond to this on the deprec list:
http://groups.google.com/group/deprec-users
- Mike
On Mon, Aug 18, 2008 at 3:26 PM, No BS [EMAIL PROTECTED] wrote:
I'm having the exact same problem. Actually, mine was working fine to
begin with. Then I went to capify another app and set it
Hi all,
some projects require that little bit of extra love to get them deployed.
A task like :after_update in deploy.rb can be just the thing.
But this will stomp on a task with the same name in a plugin (like 'deprec')
Can anyone think of a way I can use before_ and after_ filters in deprec
Let's get the discussion going to work out how we can all get our add-ons
to play nicely together.
I guess the first step is to namespace your tasks. To prevent clashes
perhaps namespace them using the same name as your gem?
- Mike
On 5/3/07, Scott Barber [EMAIL PROTECTED] wrote:
ahem the
Chris Carl,
could you post your rsync solutions to the list? I'm sure we're not the only
ones interested in this. :-)
- Mike
On 5/1/07, Carl Lerche [EMAIL PROTECTED] wrote:
I would be interested in your rsync solution. I am currently working
on my own rsync solution and it would be nice to
I've just read the capify site from start to finish. Great documentation!
- Mike
On 4/25/07, Jamis Buck [EMAIL PROTECTED] wrote:
It is with a great deal of excitement and anticipation that I
announce the first preview release of Capistrano 2.0. This is _not_
an official release, but simply
.
Also, if anyone has design chops and wants to take a stab at making
the site look less like a three-year-old designed it, I wouldn't
refuse your help. :)
- Jamis
On Apr 25, 2007, at 11:24 AM, Mike Bailey wrote:
I've just read the capify site from start to finish. Great
Hi Ehud,
there's a new deprec google
grouphttp://groups.google.com/group/deprec-userswhich might be more
appropriate for this question.
Deprec sets up apache's mod_proxy_balancer to do load balancing between
multiple
mongrel processes. Ubuntu 6.06 ships with an earlier release of apache that
PHP 5 via deprec here:
http://forum.slicehost.com/comments.php?DiscussionID=249page=1#Item_5
- J
On Apr 23, 10:26 pm, Mike Bailey [EMAIL PROTECTED] wrote:
Hi Ehud,
there's a new deprec google
grouphttp://groups.google.com/group/deprec-userswhich might be more
appropriate
Capistrano stops if it see's a non-zero return code. I'd like to be
able to perform conditional
actions on remote hosts by running tests on them and checking the
results from within
my deploy task. Something like:
if run uname -a | grep amd64
deprec.update_user_crontab(:mongrel,
Does Capistrano have a trac setup? I've only found the main RoR one.
Is there someone else I should send bugs?
- Mike
--- lib/capistrano/recipes/standard.rb (revision 6007)
+++ lib/capistrano/recipes/standard.rb (working copy)
@@ -66,7 +66,7 @@
Sets group permissions on checkout. Useful for
I tracked down the source of a problem today related to overriding :restart in .caprc.As of Capistrano 1.3.0 you cannot override standard tasks from .caprc because it isloaded before the standard tasks (see lines 262 and 265)The expected behaviour for dotfiles is to override program defaults. I
Thanks so much Neil.
sudo complained that JAVA_HOME=/blah is not a program so I put the
following in to appease it.
Gem::GEM_INSTALL='sleep 0 JAVA_HOME=/usr/lib/jvm/java-1.5.0-
sun-1.5.0.06 sudo ' + Gem::GEM_INSTALL
This is a a kludge but it means my install task in deploy.rb does
On 16/01/2007, at 2:24 AM, [EMAIL PROTECTED] wrote:
I'd like to use Capistrano to deploy some non-Rails apps that I use.
Let me tell you, Capistrano is very well suited for this however it
may require some
coding by you to achieve this as the default recipes are aimed at
Rails
Someone submitted a ticket to deprec's trac pointing out that by
requiring termios I locked Windows users out of installing the gem.
Termios doesn't install on Windows so I'm going to remove the
dependency from deprec.
Although deprec doesn't call termios directly I made it a dependency
yes, check out deprec. i made it for ubuntu it would be very easy to
extend to support centos.
let me know how you go. always happy to receive patches.
http://codemode.blogspot.com/2006/11/deprec-install-rails-stack-and-
deploy.html
BTW, I got a 3ware 9550 card today and am going to try
I don't use it and would be happy to see this restriction go away.
- Mike
On 11/01/2007, at 3:08 AM, Jamis Buck wrote:
How many of you use the revisions.log file that capistrano updates on
every checkout? The idea was originally that it would provide a kind
of audit trail for deployments,
36 matches
Mail list logo