Puppet Class: tungsten::tungsten::update

Inherits:
tungsten::params
Defined in:
manifests/tungsten/update.pp

Overview



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'manifests/tungsten/update.pp', line 17

class tungsten::tungsten::update (
) inherits tungsten::params {
  # Run /opt/continuent/tungsten/tools/tpm update if there is a change to tungsten.ini
	exec { "tungsten::tungsten::update::opt_continuent":
		path => ["/bin", "/usr/bin"],
		command => "sudo -i -u $tungsten::prereq::systemUserName /opt/continuent/tungsten/tools/tpm update --tty > /opt/continuent/service_logs/puppet-update.output 2>&1",
		subscribe => File["/etc/tungsten/tungsten.ini"],
		onlyif => "test -e /opt/continuent/tungsten",
		refreshonly => true
	}
	
	# Run /opt/replicator/tungsten/tools/tpm update if there is a change to tungsten.ini
	exec { "tungsten::tungsten::update::opt_replicator":
		path => ["/bin", "/usr/bin"],
		command => "sudo -i -u $tungsten::prereq::systemUserName /opt/replicator/tungsten/tools/tpm update --tty > /opt/replicator/service_logs/puppet-update.output 2>&1",
		subscribe => File["/etc/tungsten/tungsten.ini"],
		onlyif => "test -e /opt/replicator/tungsten",
		refreshonly => true
	}
}