Ao criar a sessão file no manifesto web.app para copiar o pacote war para o puppet fazer o deploy, o puppet retorna a seguinte mensagem:
sudo puppet apply /vagrant/manifests/web.pp
Notice: Compiled catalog for ubuntu-bionic in environment production in 0.49 seconds
Error: Parameter mode failed on File[/var/lib/tomcat8/webapps/vraptor-musicjungle.war]: The file mode specification must be a string, not 'Integer' (file: /vagrant/manifests/web.pp, line: 17)
Conteúdo do arquivo web.pp
exec { "apt-update":
command => "/usr/bin/apt-get update"
}
package { ["openjdk-8-jre", "tomcat8"]:
ensure => installed,
require => Exec["apt-update"]
}
service { "tomcat8":
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
require => Package["tomcat8"]
}
file { "/var/lib/tomcat8/webapps/vraptor-musicjungle.war":
source => "/vagrant/webapp/vraptor-musicjungle.war",
owner => tomcat8,
group => tomcat8,
mode => 0644,
require => Package["tomcat8"],
notify => Service["tomcat8"]
}