control-repo/site-modules/controlm/manifests/controlm_agent/packages.pp
Henry Wang 4e06b1eb56 E37467
2019-12-19 10:17:49 +08:00

17 lines
507 B
Puppet

class controlm::controlm_agent::packages inherits controlm::controlm_agent {
package { 'ctmagent_core_clean' :
ensure => "$software_version",
require => User['ctmagent'],
}
# the RPM does permissions, this is a backup
exec {'software permissions' :
command => '/bin/chown -R ctmagent:controlm /apps/bmc/software/version_9',
onlyif => '/usr/bin/test $(/bin/find /apps/bmc/software/version_9/CheckReq -uid 0 | w
c -l) -gt 0',
require => Package['ctmagent_core_clean'],
}
}