example42/puppi

Trying to use Puppi

Freeaqingme opened this issue · 1 comments

Hi @example42 ,

I'm trying to introduce Puppi. I've got some problems setting it up though.
I put this inside my manifest: class { 'puppi': version => '2', }

Furthermore, I have defined this entry:

  puppi::project::git { 'webistrano':
    source      => 'git://github.com/Enrise/webistrano.git',
    deploy_root => '/srv/http/enrise/production/hosts/webistrano.enrise.com/',
    user        => 'enrise',
  }

However, when I try to run a deployment action I get this output:

root@ruby01:~# puppi deploy webistrano
You MUST specify an action
Use -h, --help for usage.
root@ruby01:~# gem query --remote | grep puppi
puppi (0.0.3)
root@ruby01:~# 
  1. Do you know what I'm doing wrong? I had expected to run a deployment action using the first command.
  2. I'm a Ruby noob ;) What's the best way to perform the steps outlined here (esp the bundle install and db:migrate action), via a custom postdeploy script? https://github.com/Enrise/webistrano/blob/master/README.md

Thanks!

1- The code seems ok, but you should not use version 2 of Puppi (is pretty incomplete). Just "include puppi"
2- With the postdeploy_customcommand you can execute any command after the deployment. Read the documentation of the puppi::project::git define for more options.

Reopen the ticket if you still have problems with puppi version 1