Or is there a way if I created a ruby wrapper using something.. like... config = Capistrano::Configuration.new config.role :dbservers, ARGV[0] config.load "capfile" config.logger.level = 3 config.uname_dbservers config.whoami_webserver
On Jun 12, 2:56 pm, shadowbq <[EMAIL PROTECTED]> wrote: > Is there any way to override the role members from the command line? > > ex.. (of course is wrong) > cap uname_dbservers uname_webservers dbservers="10.0.0.1" > > ==== capfile === > [..snip..] > role :dbservers = "10.0.0.2" > role :webservers = "10.0.0.3" > > desc "create rule link on sguild server" > task :uname_dbservers, :roles => :dbservers do > sudo "uname -a" > end > > desc "set dns server" > task :whoami_webserver, :roles => :webservers do > sudo "whoami" > end > > ====== > > I wish that it would leave the webservers role alone and run on the > two servers 10.0.0.1 & 10.0.0.3. > > NOTE: If I use HOSTS="10.0.0.1" it will run the two commands only on > the HOSTS only not the webservers role. > > ======= > > Any dice ??? --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
