This message was deleted.
# puppet
s
This message was deleted.
b
why do you want to move it
tomcat7 and tomcat8 are already didferent names
n
Sorry not move take a copy using cp command
Both have same directory name ie for tomact 7 path is /opt/tomcat and for tomcat 8 path is /opt/tomcat .
b
why do you need to copy it?
n
Because both have same path as mentioned above
It's an inplace upgrade
b
I would try to build a proper rpm/debian package
n
Incase of anything wrong in upgrade i can revert back
$tomcat_directory = '/path/to/tomcat' $backup_directory = '/path/to/backup' file { $backup_directory: ensure => directory, } file { "${backup_directory}/tomcat_backup": ensure => directory, recurse => true, source => $tomcat_directory, }
Will it work @bastelfreak
b
mhm not sure
again, I recommend building a proper package
n
Okay.can you show a sample if possible
b
the package manager is built to handle upgrades and downgrades
n
Or any reference doc i can read on
b
there are reference docs from each operating system
an fpm is a nice generic tool for building packages for different platforms
❤️ 1
n
Can you share any link if you don't mind
b
n
Thanks buddy .will go through it