Puppet Class: fujitsusvagents::primequest

Inherits:
fujitsusvagents
Defined in:
manifests/primequest.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'manifests/primequest.pp', line 1

class fujitsusvagents::primequest inherits fujitsusvagents {


service { ['y10SVmco', 'y30SVmco', 'y40SVmco'] :
        ensure => 'running',
        enable => 'true',
#       require => Package["SVmco*"],
}

if ( $primequest_partition_mgmt_ip != undef ){

#augeas { "Partition Management IP":
# 	 notify  => Service[y30SVmco],
#  	context => "/files/etc/fujitsu/SVmco/usr/ipsetup.conf",
#  	changes => [
#    		"set ManagementIP $primequest_partition_mgmt_ip",
#  		];
#}


file_line { "Partition Management IP":
	ensure => present,
	path => "/etc/fujitsu/SVmco/usr/ipsetup.conf",  
  	line => "ManagementIP=$primequest_partition_mgmt_ip",
	match   => "^ManagementIP=.*$",
	notify => [ Exec['mgmtip_change_eec'], Service['y30SVmco'] ],
}

exec { "mgmtip_change_eec": 
	command => "/usr/sbin/eecdcp -c oc=E002 oe=000C \\'$primequest_partition_mgmt_ip\\'",
	refreshonly => true,
}


}


if ( $primequest_partition_id != undef ){
	$primequest_partition_psa_ip = sprintf('172.30.0.%d',$primequest_partition_id+2)

	file_line { "PSA-to-MMB IP":
        ensure => present,
        path => "/etc/fujitsu/SVmco/usr/tommbipsetup.conf",
        line => "TOMMBIP=$primequest_partition_psa_ip",
        match   => "^TOMMBIP=.*$",
	notify => Service['y30SVmco'],
	}


}else{
	notify {"no partition id configured":}
}



}