use stdlib ensure_packages

This commit is contained in:
JD
2023-07-14 16:56:04 +01:00
parent 3efe9c5fb0
commit d57cdf58a0

View File

@@ -1,18 +1,9 @@
# Installer process
class security_shepherd::install {
include stdlib
Exec { path => ['/bin', '/usr/bin', '/usr/local/bin', '/sbin', '/usr/sbin'] }
package { 'install-tomcat':
ensure => installed,
name => 'tomcat9',
}
-> package { 'install-mariadb':
ensure => installed,
name => 'mariadb-server',
} -> package { 'install-jdk11':
ensure => installed,
name => 'openjdk-11-jdk',
}
ensure_packages(['tomcat9', 'mariadb-server', 'openjdk-11-jdk'], {ensure => installed})
exec { 'remove-default-site':
command => 'rm -rf /var/lib/tomcat9/webapps/*',