locomote / gusteau

A tasteful Chef Solo wrapper and configuration manager
http://gusteau.gs
BSD 2-Clause "Simplified" License
66 stars 18 forks source link

provision example doesnt work #19

Closed johntdyer closed 11 years ago

johntdyer commented 11 years ago

So two things I noticed here

1 ) The examples in the docs say "node-name" but its actually example if your following the readme, this took me a few minutes to figure out

2) Even after sorting out node-name vs example I was still unable to actually provision

jdyer@dyer:~/Dropbox/Projects/chef/site-cookbooks/rayo/project-name(master⚡) » gusteau example provision                                                                                                                                                                                                           1 ↵
*** [2013-05-15T00:00:30] GUSTEAU: 33.33.33.20> sudo -- sh -c 'rm -rf /etc/chef && mkdir /etc/chef && mkdir -p /tmp/chef'
*** [2013-05-15T00:00:30] GUSTEAU:   #setting up ssh connection vagrant@33.33.33.20, {:port=>22, :password=>"vagrant"})
/Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.6.7/lib/net/ssh/transport/session.rb:67:in `initialize': Operation timed out - connect(2) (Errno::ETIMEDOUT)
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.6.7/lib/net/ssh/transport/session.rb:67:in `open'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.6.7/lib/net/ssh/transport/session.rb:67:in `block in initialize'
    from /Users/jdyer/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/timeout.rb:54:in `timeout'
    from /Users/jdyer/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/timeout.rb:99:in `timeout'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.6.7/lib/net/ssh/transport/session.rb:67:in `initialize'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.6.7/lib/net/ssh.rb:192:in `new'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/net-ssh-2.6.7/lib/net/ssh.rb:192:in `start'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/lib/gusteau/ssh.rb:14:in `block in conn'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/lib/gusteau/log.rb:28:in `log'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/lib/gusteau/ssh.rb:13:in `conn'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/lib/gusteau/ssh.rb:21:in `send_command'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/lib/gusteau/server.rb:29:in `block (2 levels) in run'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/lib/gusteau/log.rb:28:in `log'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/lib/gusteau/server.rb:28:in `block in run'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/lib/gusteau/server.rb:27:in `each'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/lib/gusteau/server.rb:27:in `run'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/lib/gusteau/chef.rb:10:in `run'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/lib/gusteau/node.rb:23:in `provision'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/bin/gusteau:18:in `provision'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/optitron-0.3.3/lib/optitron/class_dsl.rb:112:in `dispatch'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/gems/gusteau-0.4.3/bin/gusteau:56:in `<top (required)>'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/bin/gusteau:23:in `load'
    from /Users/jdyer/.rvm/gems/ruby-1.9.3-p327/bin/gusteau:23:in `<main>'

my node.yml

json:
  net:
    IP: 33.33.33.10
  cowsay:
    greeting: Good job, jdyer!
  users:
   - jdyer

roles:
  - platform
recipes:
  - cowsay

server:
  user: vagrant
  host: 33.33.33.20
  platform: ubuntu
  password: vagrant

BTW, This tool looks very cool !

ghost commented 11 years ago

Are you sure that the vagrant instance is running? Did you do vagrant up first?

johntdyer commented 11 years ago

Yep, i did

On Wednesday, May 15, 2013, Vasily Mikhaylichenko notifications@github.com wrote:

Are you sure that the vagrant instance is running? Did you do vagrant up first?

— Reply to this email directly or view it on GitHub.

johntdyer commented 11 years ago

I am running Vagrant 1.2.2, if that matters… Based on the gem file I gather you work w/ the gem version ( 1.0.7 ) ?

On Wednesday, May 15, 2013, John Dyer johntdyer@gmail.com wrote:

Yep, i did

On Wednesday, May 15, 2013, Vasily Mikhaylichenko < notifications@github.com> wrote:

Are you sure that the vagrant instance is running? Did you do vagrant up first?

— Reply to this email directly or view it on GitHub.

ghost commented 11 years ago

I haven't tested it with Vagrant >=1.1 to be honest. I'm using 1.0.7 at the moment.

anicholson commented 11 years ago

@johntdyer the answer's in your node YAML: the two IP addresses don't match...

ghost commented 11 years ago

@anicholson thanks for pointing this out! @johntdyer the server/host IP address in your example.yml node file should match the one in Vagrantfile.