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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
/*
Class: sol
Solaris-specific stuff; not complete yet
@unstable: solaris-all
@na: all
*/
class sol {
/*
Class: sol::network
Solaris networking, including routing
*/
class network {
/*
Class: sol::network::10
Networking on Solaris 10
*/
class 10 {
file { "/etc/inet/static_routes":
owner => root,
group => root,
mode => 644,
source => [ "puppet:///modules/sol/static_routes-${gstlocation}",
"puppet:///modules/sol/static_routes", ],
}
service { "routesetup":
name => $hardwareisa ? {
i386 => "/network/routing-setup",
sparc => "/network/initial",
},
provider => smf,
enable => true,
subscribe => File["/etc/inet/static_routes"],
require => File["/etc/inet/static_routes"],
}
}
/*
Class: sol::network::legacy
Networking on Solaris 8 and 9
*/
class legacy {
file { "/etc/init.d/static_routes":
owner => root,
group => root,
mode => 755,
source => [ "puppet:///modules/sol/S90static_routes-${gstlocation}",
"puppet:///modules/sol/S90static_routes", ],
}
file { "/etc/rc2.d/S90static_routes":
ensure => "/etc/init.d/static_routes",
}
exec { "routesetup":
command => "/etc/init.d/static_routes",
subscribe => File["/etc/init.d/static_routes"],
require => File["/etc/init.d/static_routes"],
refreshonly => true,
}
}
case $operatingsystemrelease {
5.10: {
include sol::network::10
}
5.8,5.9: {
include sol::network::legacy
}
}
file { "/etc/defaultrouter":
owner => root,
group => root,
mode => 644,
source => [ "puppet:///modules/sol/defaultrouter-${gstlocation}",
"puppet:///modules/sol/defaultrouter", ],
}
file { "/etc/netmasks":
owner => root,
group => root,
mode => 644,
source => [ "puppet:///modules/sol/netmasks-${gstlocation}",
"puppet:///modules/sol/netmasks", ],
}
}
}
|