Skip to content

Commit

Permalink
Merge 65c72e8 into 8ec85ec
Browse files Browse the repository at this point in the history
  • Loading branch information
sijeesh committed Feb 24, 2020
2 parents 8ec85ec + 65c72e8 commit 3358f6b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- Server hardware type
- Server profile
- Server profile template
- Storage pool
- Uplink set

# v2.3.0 (2018-06-26)
Expand Down
7 changes: 7 additions & 0 deletions endpoints-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@
|<sub>/rest/server-profiles/{id}/new-profile-template</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/server-profiles/{id}/messages</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |
|<sub>/rest/server-profiles/{id}/transformation</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |
| **Storage Pools** |
|<sub>/rest/storage-pools</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-pools</sub> | POST | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |
|<sub>/rest/storage-pools/reachable-storage-pools</sub> | GET | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-pools/{id}</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-pools/{id}</sub> | PUT | :heavy_minus_sign: | :heavy_minus_sign: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/storage-pools/{id}</sub> | DELETE | :white_check_mark: | :white_check_mark: | :heavy_minus_sign: | :heavy_minus_sign: | :heavy_minus_sign: |:heavy_minus_sign: |:heavy_minus_sign: |
| **Uplink Sets** |
|<sub>/rest/uplink-sets</sub> | GET | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
|<sub>/rest/uplink-sets</sub> | POST | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |:white_check_mark: |:white_check_mark: |:white_check_mark: |
Expand Down
26 changes: 14 additions & 12 deletions examples/storage_pool.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
################################################################################
# (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
# (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.
Expand All @@ -23,35 +23,36 @@
ensure => 'present',
data => {
poolName => 'CPG-SSD-AO',
storageSystemUri => 'ThreePAR7200-9055'
storageSystemUri => 'ThreePAR-2'
# storageSystemUri => '/rest/storage-systems/TXQ1000307'
}
}

oneview_storage_pool{'storage_pool_2':
ensure => 'found',
# require => Oneview_storage_pool['storage_pool_1'],
# This resource accepts a data hash to filter out results or no data hash to display all
# data => {
# poolName => 'CPG-SSD-AO',
# }
ensure => 'found',
require => Oneview_storage_pool['storage_pool_1'],
#This resource accepts a data hash to filter out results or no data hash to display all
data => {
poolName => 'CPG-SSD-AO',
}
}

# Method available from API500 and above
oneview_storage_pool{'storage_pool_4':
ensure => 'manage',
data => {
name => 'cpg_growth-warning-100GiB',
name => 'cpg-growth-limit-1TiB',
isManaged => true,
storageSystemUri => '/rest/storage-systems/TXQ1000307'
storageSystemUri => '/rest/storage-systems/TXQ1010307'
}
}

# Method available from API500 and above
oneview_storage_pool{'storage_pool_5':
ensure => 'reachable',
data => {
uri => '/rest/storage-pools/C2ECD708-4F97-4DC2-925A-A8D90065D7D2',
uri => '/rest/storage-pools/85DEFE8C-939C-4E40-B886-AB6B00DBCB05',
storageSystemUri => '/rest/storage-systems/TXQ1010307'
}
}

Expand All @@ -60,6 +61,7 @@
ensure => 'absent',
require => Oneview_storage_pool['storage_pool_2'],
data => {
poolName => 'CPG-SSD-AO',
poolName => 'cpg-growth-limit-1TiB',
storageSystemUri => '/rest/storage-systems/TXQ1010307'
}
}
2 changes: 1 addition & 1 deletion lib/puppet/provider/oneview_storage_pool/c7000.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
################################################################################
# (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
# (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.
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/oneview_storage_pool/synergy.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
################################################################################
# (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
# (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.
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/type/oneview_storage_pool.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
################################################################################
# (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP
# (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.
Expand Down

0 comments on commit 3358f6b

Please sign in to comment.