Vagrant - vagrant-librarian - pag 125

47 views
Skip to first unread message

Leandro Basilio

unread,
Sep 1, 2016, 10:58:07 AM9/1/16
to Livro "Devops na Prática"
Bom dia, após tentar levanta a maquina db estou recebendo o erro abaixo.

leandro-sony leandro # vagrant up db
Bringing machine 'db' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

puppet provisioner:
* The configured module path doesn't exist: /home/leandro/librarian/modules

Ja instalei o ruby 1.9
Ja instalei puppet
Ja fiz estes passos
{ Após isso, instalei as gems do puppet e do librarian-puppet.

$ sudo gem install puppet
$ sudo gem install librarian-puppet

$ cd librarian
$ librarian-puppet install

E o erro persiste.

Quando rodo o comando librarian-puppet install recebo a seguinte mensagem:

/home/leandro/librarian/Puppetfile:1:in `run': undefined method `forget' for #<Librarian::Puppet::Dsl::Receiver:0x00000000f75ee0> (NoMethodError)
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/dsl/receiver.rb:33:in `instance_eval'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/dsl/receiver.rb:33:in `run'
from /var/lib/gems/1.9.1/gems/librarian-puppet-2.2.3/lib/librarian/puppet/dsl.rb:47:in `run'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/dsl.rb:95:in `block in run'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/dsl.rb:85:in `tap'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/dsl.rb:85:in `run'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/dsl.rb:17:in `run'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/environment.rb:148:in `dsl'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/specfile.rb:15:in `read'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/action/resolve.rb:13:in `run'
from /var/lib/gems/1.9.1/gems/librarian-puppet-2.2.3/lib/librarian/puppet/action/resolve.rb:10:in `run'
from /var/lib/gems/1.9.1/gems/librarian-puppet-2.2.3/lib/librarian/puppet/cli.rb:104:in `resolve!'
from /var/lib/gems/1.9.1/gems/librarian-puppet-2.2.3/lib/librarian/puppet/cli.rb:68:in `install'
from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/cli.rb:26:in `block (2 levels) in bin!'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/cli.rb:31:in `returning_status'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/cli.rb:26:in `block in bin!'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/cli.rb:47:in `with_environment'
from /var/lib/gems/1.9.1/gems/librarianp-0.6.3/lib/librarian/cli.rb:26:in `bin!'
from /var/lib/gems/1.9.1/gems/librarian-puppet-2.2.3/bin/librarian-puppet:7:in `<top (required)>'
from /usr/local/bin/librarian-puppet:23:in `load'
from /usr/local/bin/librarian-puppet:23:in `<main>'


Poderiam ajudar ?


Daniel Reis

unread,
Sep 2, 2016, 9:40:25 AM9/2/16
to Livro "Devops na Prática"
Boa noite!
Acredito que seja o seguinte, no seu Vagrantfile vc deveria o caminho dos módulos librarian, porém ele está informando que não existe esse path. 

o erro: 
* The configured module path doesn't exist: /home/leandro/librarian/modules 

Confira se o caminho está correto. 

sobre o segundo problema, não sei dizer, mas sugestão resolver o primeiro e depois ver o que irá acontecer.

Att
Daniel

Leandro Basilio

unread,
Sep 4, 2016, 6:28:32 PM9/4/16
to Livro "Devops na Prática"
Bom dia Daniel. Obrigado pelo retorno.
Meu problema era dentro do arquivo Puppetfile, estava forgeT "http://forge.puppetlabs.com" quando o certo seria forge "http://forge.puppetlabs.com"
Reply all
Reply to author
Forward
0 new messages