diff --git a/.codeclimate.yml b/.codeclimate.yml index eeceb084..7eafafdd 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -15,4 +15,4 @@ ratings: exclude_paths: - spec/ - examples/ -- attributes/ +- attributes/ \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 2907219b..6fd15927 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -14,4 +14,4 @@ [What do you *expect* to happen after taking the steps above?] ### Actual Result -[What *actually* happens after the steps above? Include error output or a link to a gist.] +[What *actually* happens after the steps above? Include error output or a link to a gist] diff --git a/.gitignore b/.gitignore index a78c1e6c..00d2584c 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,4 @@ doc/ # Testing recipes/* -.recipes/* +.recipes/* \ No newline at end of file diff --git a/.rubocop.yml b/.rubocop.yml index 3345a055..4fbb74ec 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -61,4 +61,4 @@ Style/SingleLineBlockParams: Enabled: false Style/WordArray: - Enabled: false + Enabled: false \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index ce8a4514..685f423f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,4 @@ script: matrix: allow_failures: - - rvm: 2.5 + - rvm: 2.5 \ No newline at end of file diff --git a/.yardopts b/.yardopts index 25f57e9e..eb27adad 100644 --- a/.yardopts +++ b/.yardopts @@ -1 +1 @@ -libraries/**/*.rb - LICENSE metadata.rb CHANGELOG.md attributes/**/*.rb +libraries/**/*.rb - LICENSE metadata.rb CHANGELOG.md attributes/**/*.rb \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f5067a3..161d5f34 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 3.8.0(Unrelesed) +## 3.8.0 ### Notes - This release extends support of the SDK to OneView REST API version 2400 (OneView v5.60). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f36f67bd..754b808c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -18,4 +18,4 @@ All releases are tagged in git. To see the releases available to you see the cha Need to report an issue? Use the github issues: -- +- \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index c5d5f669..8a331a9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,4 +55,4 @@ CMD "/bin/bash" # ONEVIEWSDK_PASSWORD # And if you're running Image Streamer examples, you'll need to set this too: -# I3S_URL +# I3S_URL \ No newline at end of file diff --git a/EXAMPLES.md b/EXAMPLES.md index 0e2a8d89..39aec660 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -1,4 +1,5 @@ ## Examples of Chef Resources + ### [oneview_resource](examples/oneview_resource.rb) This is a generic provider for managing any OneView resource. This really exists only for resources that exist in the SDK but don't have a Chef resource provider. If a specific resource exists, please use it instead. diff --git a/Guardfile b/Guardfile index 1398de3c..dc1975ab 100644 --- a/Guardfile +++ b/Guardfile @@ -1,4 +1,4 @@ -# (c) Copyright 2017 Hewlett Packard Enterprise Development LP +# (c) Copyright 2021 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. diff --git a/LICENSE b/LICENSE index c067a4c0..4d357c35 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. -Copyright 2015-2016 Hewlett Packard Enterprise +Copyright 2015-2021 Hewlett Packard Enterprise Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index fb616696..a5a6daef 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ OV Version | 5.60 | 5.50 | 5.40 | 5.30 | | ------------- |:-------------:| -------------:| -------------:| -------------:| -SDK Version/Tag | [Master](https://github.com/HewlettPackard/oneview-chef/tree/master) | [v3.7.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.7.0) | [v3.6.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.6.0) | [v3.5.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.5.0) | +SDK Version/Tag | [v3.8.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.8.0) | [v3.7.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.7.0) | [v3.6.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.6.0) | [v3.5.0](https://github.com/HewlettPackard/oneview-chef/releases/tag/v3.5.0) | Build Status | ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ![Build status](https://ci.appveyor.com/api/projects/status/u84505l6syp70013?svg=true)| ## Introduction @@ -36,10 +36,10 @@ The light weight containerized version of the HPE OneView SDK for Chef is availa ```bash # Download and store a local copy of oneview-chef and # use it as a Docker image. -$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-chef:v3.7.0-OV5.5 +$ docker pull hewlettpackardenterprise/hpe-oneview-sdk-for-chef:v3.8.0-OV5.6 # Run docker commands below given, which will in turn create # a sh session where you can create files, issue commands and execute the recipes. -$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-chef:v3.7.0-OV5.5 /bin/sh +$ docker run -it hewlettpackardenterprise/hpe-oneview-sdk-for-chef:v3.8.0-OV5.6 /bin/sh ``` ## Local Setup for oneview-chef @@ -57,7 +57,7 @@ $ cd oneview ### Local installation requires the gem in your Gemfile: ```ruby - gem 'oneview-sdk', '~> 5.17.0' + gem 'oneview-sdk', '~> 5.18.0' ``` ### Install Chef Sdk dependencies from Gemfile @@ -70,7 +70,7 @@ The cookbook 'metadata' is not intended to include any recipes instead specifies ```ruby # my_cookbook/metadata.rb -depends 'oneview', '~> 3.7.0' +depends 'oneview', '~> 3.8.0' ``` ## Credentials @@ -149,7 +149,7 @@ end ## Examples The examples provided here will help you to understand the detailed usage of each resource in Chef Sdk. It allows users to easily create, update, query and delete resources. -You can find the resource examples [here](https://github.com/HewlettPackard/oneview-chef/blob/ReadMeUpdate/EXAMPLES.md). This document provides the list of attributes and the methods being used in each resource to perform CRUD operations on the oneview appliance. +You can find the resource examples [here](https://github.com/HewlettPackard/oneview-chef/blob/master/EXAMPLES.md). This document provides the list of attributes and the methods being used in each resource to perform CRUD operations on the oneview appliance. - attributes: client, data, scopes, etc. - methods: :create, :delete, :delete_bulk diff --git a/Rakefile b/Rakefile index 50d8cd77..71fde3f2 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,4 @@ -# (c) Copyright 2016 Hewlett Packard Enterprise Development LP +# (c) Copyright 2021 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. diff --git a/TESTING.md b/TESTING.md index 733d459a..1bc616d9 100644 --- a/TESTING.md +++ b/TESTING.md @@ -60,4 +60,4 @@ For instance, if your resource is the oneview_test_resource, and the new action 3. The new hash entry must be the key to a symbol list containing all the resource actions, so the symbol `:prepare_for_management` must be added to the _:oneview_test_resource_ entry. After that your custom matcher will be automatically generated named _prepare_oneview_test_resource_for_management_. (Read the file documentation for more info). -Also the custom matchers need to be tested too. Simply add the new tests for the matchers created in the `spec/unit/matchers_spec.rb` as soon as they are implemented +Also the custom matchers need to be tested too. Simply add the new tests for the matchers created in the `spec/unit/matchers_spec.rb` as soon as they are implemented \ No newline at end of file diff --git a/attributes/default.rb b/attributes/default.rb index 20c78c9f..68cee2b2 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -1,4 +1,4 @@ -# (c) Copyright 2016 Hewlett Packard Enterprise Development LP +# (c) Copyright 2021 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. diff --git a/chefignore b/chefignore index 9cf621e4..af63aeb1 100644 --- a/chefignore +++ b/chefignore @@ -106,4 +106,4 @@ Strainerfile # Vagrant # ########### .vagrant -Vagrantfile +Vagrantfile \ No newline at end of file diff --git a/examples/logical_interconnect.rb b/examples/logical_interconnect.rb index 50f2d7c2..1f736fe0 100644 --- a/examples/logical_interconnect.rb +++ b/examples/logical_interconnect.rb @@ -1,4 +1,4 @@ -# (c) Copyright 2020 Hewlett Packard Enterprise Development LP +# (c) Copyright 2021 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. @@ -97,6 +97,17 @@ action :update_igmp_settings end +# Update port flap protection settings +oneview_logical_interconnect 'LE-LIG' do + client my_client + data( + portFlapProtection: { + portFlapThresholdPerInterval: 10, + } + ) + action :update_port_flap_settings +end + interconnect = OneviewCookbook::Helper.load_resource(my_client, type: 'Interconnect', id: '0000A66101, interconnect 3') ports = interconnect['ports'] uplink_port = nil diff --git a/metadata.rb b/metadata.rb index ab9f6649..28fc8e09 100644 --- a/metadata.rb +++ b/metadata.rb @@ -1,4 +1,4 @@ -# (c) Copyright 2016-2017 Hewlett Packard Enterprise Development LP +# (c) Copyright 2016-2021 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. @@ -16,7 +16,7 @@ description 'Provides HPE OneView & Image Streamer resources' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '3.7.0' +version '3.8.0' source_url 'https://github.com/HewlettPackard/oneview-chef' issues_url 'https://github.com/HewlettPackard/oneview-chef/issues'