Capitulo 6 - Erro puppet jenkins

131 views
Skip to first unread message

Willie Cadete

unread,
Dec 13, 2015, 9:57:55 PM12/13/15
to Livro "Devops na Prática"
Olá, estou com um problema que não consigo solucionar de jeito nenhum, no fim do capitulo 6, o livro está muito bom mas.. vamos aprender com os erros rsrs

Primeiro que está dando vários warnings, mas isso não chega a afetar a instalção do jenkins, o problema é na hora das configurações feitas pelo puppet.

$ vagrant provision ci
==> ci: Installing Puppet modules in "librarian" with Librarian-Puppet...
==> ci: Running provisioner: puppet...
==> ci: Running Puppet with ci.pp...
==> ci: stdin: is not a tty
==> ci: Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
==> ci: Warning: Scope(Apt::Source[jenkins]): $include_src is deprecated and will be removed in the next major release, please use $include => { 'src' => false } instead
==> ci: Warning: Scope(Apt::Source[jenkins]): $key_source is deprecated and will be removed in the next major release, please use $key => { 'source' => http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key } instead.
==> ci: Warning: Scope(Jenkins::Plugin[ssh-credentials]): jenkins::plugin::create_user is deprecated and has no effect
==> ci: Warning: Scope(Jenkins::Plugin[credentials]): jenkins::plugin::create_user is deprecated and has no effect
==> ci: Warning: Scope(Jenkins::Plugin[scm-api]): jenkins::plugin::create_user is deprecated and has no effect
==> ci: Warning: Scope(Jenkins::Plugin[git-client]): jenkins::plugin::create_user is deprecated and has no effect
==> ci: Warning: Scope(Jenkins::Plugin[git]): jenkins::plugin::create_user is deprecated and has no effect
==> ci: Warning: Scope(Jenkins::Plugin[maven-plugin]): jenkins::plugin::create_user is deprecated and has no effect
==> ci: Warning: Scope(Jenkins::Plugin[javadoc]): jenkins::plugin::create_user is deprecated and has no effect
==> ci: Warning: Scope(Jenkins::Plugin[mailer]): jenkins::plugin::create_user is deprecated and has no effect
==> ci: Warning: Scope(Jenkins::Plugin[greenballs]): jenkins::plugin::create_user is deprecated and has no effect
==> ci: Warning: Scope(Jenkins::Plugin[ws-cleanup]): jenkins::plugin::create_user is deprecated and has no effect
==> ci: Warning: Scope(Apt::Key[Add key: 150FDE3F7787E7D11EF4E12A9B7D32F2D50582E6 from Apt::Source jenkins]): $key_source is deprecated and will be removed in the next major release. Please use $source instead.

==> ci: Notice: Scope(Archive::Download[ssh-credentials.hpi]): No checksum for this archive
==> ci: Notice: Scope(Archive::Download[credentials.hpi]): No checksum for this archive
==> ci: Notice: Scope(Archive::Download[scm-api.hpi]): No checksum for this archive
==> ci: Notice: Scope(Archive::Download[git-client.hpi]): No checksum for this archive
==> ci: Notice: Scope(Archive::Download[git.hpi]): No checksum for this archive
==> ci: Notice: Scope(Archive::Download[maven-plugin.hpi]): No checksum for this archive
==> ci: Notice: Scope(Archive::Download[javadoc.hpi]): No checksum for this archive
==> ci: Notice: Scope(Archive::Download[mailer.hpi]): No checksum for this archive
==> ci: Notice: Scope(Archive::Download[greenballs.hpi]): No checksum for this archive
==> ci: Notice: Scope(Archive::Download[ws-cleanup.hpi]): No checksum for this archive
==> ci: Notice: Compiled catalog for ip-192-168-33-16.ec2.internal in environment production in 0.77 seconds
==> ci: Error: Cannot alias File[/var/lib/jenkins/jobs/] to ["/var/lib/jenkins/jobs"] at /tmp/vagrant-puppet-2/modules-0/loja_virtual/manifests/ci.pp:56; resource ["File", "/var/lib/jenkins/jobs"] already declared
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Minha configuração no ci.pp

https://gist.github.com/willie-cadete/1cb7d95c7702c55e9f53

Quem puder ajudar agradeço.

Nathanael Costa

unread,
Jun 13, 2016, 9:59:37 AM6/13/16
to Livro "Devops na Prática"
Estou com o mesmo problema. Alguém teve uma solução?

Juliano Cesar

unread,
Jun 13, 2016, 11:35:38 AM6/13/16
to Nathanael Costa, Livro "Devops na Prática"
eu estou com outro problema, ao gerar minha job no jenkins: está dando
erro de plugin hsqldb. alguém já teve este problema?

Em 13/06/16, Nathanael Costa<ncastr...@gmail.com> escreveu:
> Estou com o mesmo problema. Alguém teve uma solução?
>
> --
> Você está recebendo esta mensagem porque se inscreveu no grupo "Livro
> "Devops na Prática"" dos Grupos do Google.
> Para cancelar inscrição nesse grupo e parar de receber e-mails dele, envie
> um e-mail para livro-devops-na-p...@googlegroups.com.
> Para obter mais opções, acesse https://groups.google.com/d/optout.
>

Rodrigo Souza

unread,
Jul 17, 2017, 6:34:09 PM7/17/17
to Livro "Devops na Prática"
Não sei especificar se isto está relacionado ao rtyler/jenkins ou à propria versão do Jenkins, mas o fato é que o folder jobs já vem criado, então se você remover o trecho que cria o diretório jobs, vai funcionar.
Reply all
Reply to author
Forward
0 new messages