0
respostas

Error para copiar arquivos

Puppet aponta que há um erro para copiar os arquivos, porem já procurei e não acho o ponto de falha, obs: utilizando ubuntu focal64,java jdk 11,tomcat9 ( os disponiveis do curso estão muito desatualizados e dificil - pelomenos para mim que não sou bom em linux de instalar-)

#ESSE SCRIPT EH CHAMADO DE DENTRO DA VM

#sudo puppet apply /vagrant/manifests/web.pp

exec { "apt-update": command => "/usr/bin/apt-get update" }

package {["default-jdk", "tomcat9"]: ensure => installed, require => Exec["apt-update"] }

DEFININDO APLICAÇÃO TOM CAT COMO SERVIÇOS

service {"tomcat9": ensure => running, enable => true, hasstatus => true, hasrestart => true, require => Package["tomcat9"] }

#MOVENDO ARQUIVO WAR file { "/var/lib/tomcat9/webapps/vraptor-musicjungle.war": ensure => directory, recurse => true, source => "/home/reis/Documentos/Vagrant/musicjungle/manifests/", owner => "tomcat9", group => "tomcat9", mode => "0644", require => Package["tomcat9"], notify => Service["tomcat9"] }

ERROR: vagrant@ubuntu-focal:$ sudo puppet apply /vagrant/manifests/web.pp /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:315: warning: deprecated Object#= is called on Puppet::Transaction::Report; it always returns nil /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete Notice: Compiled catalog for ubuntu-focal in environment production in 0.25 seconds /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/type/file/source.rb:108: warning: URI.unescape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:315: warning: deprecated Object#=~ is called on Puppet::Transaction::Report; it always returns nil Notice: /Stage[main]/Main/Exec[apt-update]/returns: executed successfully /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:357: warning: URI.unescape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:461: warning: URI.escape is obsolete /usr/lib/ruby/vendor_ruby/puppet/util.rb:357: warning: URI.unescape is obsolete

Error: /Stage[main]/Main/File[/var/lib/tomcat9/webapps/vraptor-musicjungle.war]: Could not evaluate: Could not retrieve information from environment production source(s) file:///home/reis/Documentos/Vagrant/musicjungle/manifests

Notice: /Stage[main]/Main/Service[tomcat9]: Dependency File[/var/lib/tomcat9/webapps/vraptor-musicjungle.war] has failures: true Warning: /Stage[main]/Main/Service[tomcat9]: Skipping because of failed dependencies /usr/lib/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:126: warning: $SAFE will become a normal global variable in Ruby 3.0 Notice: Applied catalog in 18.07 seconds /usr/lib/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:126: warning: $SAFE will become a normal global variable in Ruby 3.0 /usr/lib/ruby/vendor_ruby/puppet/util.rb:315: warning: deprecated Object#=~ is called on Puppet::Transaction::Report; it always returns nil /usr/lib/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:126: warning: $SAFE will become a normal global variable in Ruby 3.0 /usr/lib/ruby/vendor_ruby/puppet/file_system/uniquefile.rb:126: warning: $SAFE will become a normal global variable in Ruby 3.0

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software