-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathlogical_enclosure.pp
91 lines (81 loc) · 2.86 KB
/
logical_enclosure.pp
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
################################################################################
# (C) Copyright 2016-2020 Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
#Create a Logical Enclosure. Supported in Synergy only
# oneview_logical_enclosure{'logical_enc0':
# ensure => 'present',
# data => {
# name => 'one_enclosure_le',
# enclosureUris => ['/rest/enclosures/0000000000A66101', '/rest/enclosures/0000000000A66102', '/rest/enclosures/0000000000A66103'],
# enclosureGroupUri => '/rest/enclosure-groups/110e4326-e42f-457a-baca-50e16c590f49',
# firmwareBaselineUri => 'null',
# forceInstallFirmware => 'false',
# }
# }
#Reapply configuration of Logical Enclosure
oneview_logical_enclosure{'logical_enc1':
ensure => 'reapply_configuration',
data => {
name => 'Puppet_Test_Enclosure',
}
}
#Get configuration script of LE. Supported in C7000 only.
oneview_logical_enclosure{'logical_enc2':
ensure => 'get_script',
data => {
name => 'Puppet_Test_Enclosure',
}
}
#Set configuration script for Logical Enclosure. Supported in C7000 only.
oneview_logical_enclosure{'logical_enc3':
ensure => 'set_script',
data => {
name => 'Puppet_Test_Enclosure',
script => 'This is a script example',
}
}
#Get configuration script of LE. Supported in C7000 only.
oneview_logical_enclosure{'logical_enc4':
ensure => 'get_script',
data => {
name => 'Puppet_Test_Enclosure',
}
}
#Logical Enclosure - Update from Group
oneview_logical_enclosure{'logical_enc5':
ensure => 'updated_from_group',
data => {
name => 'Puppet_Test_Enclosure',
}
}
#Generate support dump of Logical Enclosure.
oneview_logical_enclosure{'logical_enc6':
ensure => 'generate_support_dump',
data => {
name => 'Puppet_Test_Enclosure',
dump =>
{
errorCode => 'Mydump',
excludeApplianceDump => false
}
}
}
# Delete the Logical Enclsoure. Supported in Synergy only.
#oneview_logical_enclosure{ 'destroy' :
# ensure => 'absent',
# data => {
# name => 'one_enclosure_le'
# }
#}