Puppet Class: tungsten::tungsten::ini

Inherits:
tungsten::tungsten
Defined in:
manifests/tungsten/ini.pp

Overview

Parameters:

  • installRedoReaderSoftware (Any) (defaults to: false)
  • redoReaderTopology (Any) (defaults to: false)


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

class tungsten::tungsten::ini ( $installRedoReaderSoftware=false, $redoReaderTopology=false
) inherits tungsten::tungsten {
	include tungsten::prereq

	if $installRedoReaderSoftware != false {

		#Check the topoloy is valid
		$validTopologies=['OracleToOracle','MySQLToOracle','OracleToMySQL']
		validate_re($redoReaderTopology,$validTopologies)

		$iniTemplate="tungsten_$redoReaderTopology.erb"
	} else {
		$iniTemplate='tungsten.erb'
	}

	Class["tungsten::prereq"] ->
	file { "tungsten.ini":
		path		=> "/etc/tungsten/tungsten.ini",
		owner => $tungsten::prereq::systemUserName,
		group => "root",
		mode => 644,
		content => template("tungsten/$iniTemplate"),
	}
}