Skip to content

Commit

Permalink
Merge pull request #162 from HewlettPackard/enhancement/oneview-feature
Browse files Browse the repository at this point in the history
Fixed #161
  • Loading branch information
fgbulsoni authored Jul 7, 2017
2 parents 80e018d + b55607d commit 870e492
Show file tree
Hide file tree
Showing 79 changed files with 89 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# v2.2.2 # UNRELEASED CHANGES
# v2.2.2 (2017-07-07)
### Version highlights:
1. Provider names are now case insensitive
2. Added the 'oneview' Puppet feature to require the 'oneview-sdk'

#### Bug fixes & Enhancements:
- [#159](https://github.com/HewlettPackard/oneview-puppet/issues/159) Provider name should not be case sensitive
- [#161](https://github.com/HewlettPackard/oneview-puppet/issues/161) Add rescue to requirement of 'oneview-sdk' to avoid catalog issues

# v2.2.1 (2017-05-22)
### Version highlights:
Expand Down
3 changes: 3 additions & 0 deletions lib/puppet/feature/oneview.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require 'puppet/util/feature'

Puppet.features.add(:oneview, libs: ['oneview-sdk'])
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
Puppet::Type.type(:image_streamer_artifact_bundle).provide :image_streamer, parent: Puppet::ImageStreamerResource do
desc 'Provider for Image Streamer Artifact Bundles using the Image Streamer API'

confine feature: :oneview

mk_resource_methods

def exists?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@
Puppet::Type.type(:image_streamer_build_plan).provide :image_streamer, parent: Puppet::ImageStreamerResource do
desc 'Provider for Image Streamer Build Plan using the Image Streamer API'

confine feature: :oneview

mk_resource_methods
end
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@
Puppet::Type.type(:image_streamer_deployment_group).provide :image_streamer, parent: Puppet::ImageStreamerResource do
desc 'Provider for Image Streamer Deployment Groups using the Image Streamer API'

confine feature: :oneview

mk_resource_methods
end
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@
Puppet::Type.type(:image_streamer_deployment_plan).provide :image_streamer, parent: Puppet::ImageStreamerResource do
desc 'Provider for Image Streamer Deployment Plan using the Image Streamer API'

confine feature: :oneview

mk_resource_methods
end
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
Puppet::Type::Image_streamer_golden_image.provide :image_streamer, parent: Puppet::ImageStreamerResource do
desc 'Provider for Image Streamer Golden Image using the Image Streamer API'

confine feature: :oneview

mk_resource_methods

def data_parse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
Puppet::Type.type(:image_streamer_os_volume).provide :image_streamer, parent: Puppet::ImageStreamerResource do
desc 'Provider for Image Streamer OS Volumes using the Image Streamer API'

confine feature: :oneview

mk_resource_methods

def get_details_archive
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
Puppet::Type.type(:image_streamer_plan_script).provide :image_streamer, parent: Puppet::ImageStreamerResource do
desc 'Provider for Image Streamer Plan Scripts using the Image Streamer API'

confine feature: :oneview

mk_resource_methods

def retrieve_differences
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_connection_template/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_connection_template).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Connection Templates using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_connection_template/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_connection_template).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Connection Templates using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_datacenter/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_datacenter).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Datacenters using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_datacenter/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_datacenter).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Datacenters using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_drive_enclosure/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_drive_enclosure).provide :synergy, parent: Puppet::OneviewResource do
desc 'Provider for OneView Drive Enclosures using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_enclosure/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_enclosure).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Enclosures using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_enclosure/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_enclosure).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Enclosures using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_enclosure_group/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_enclosure_group).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Enclosure Groups using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_enclosure_group/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_enclosure_group).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Enclosure Groups using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_ethernet_network/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_ethernet_network).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Ethernet Networks using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_ethernet_network/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_ethernet_network).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Ethernet Networks using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_fabric/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_fabric).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Fabrics using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_fabric/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Puppet::Type.type(:oneview_fabric).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Fabrics using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'

def get_reserved_vlan_range
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_fc_network/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_fc_network).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Fiber Channel Networks using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_fc_network/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_fc_network).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Fiber Channel Networks using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_fcoe_network/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_fcoe_network).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Fiber Channel over Ethernet Networks using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_fcoe_network/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_fcoe_network).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Fiber Channel over Ethernet Networks using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_firmware_bundle/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_firmware_bundle).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Firmware Bundles using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_firmware_bundle/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_firmware_bundle).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Firmware Bundles using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_firmware_driver/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_firmware_driver).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Firmware Drivers using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_firmware_driver/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_firmware_driver).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Firmware Drivers using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_interconnect/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_interconnect).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Interconnects using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_interconnect/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Puppet::Type.type(:oneview_interconnect).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Interconnects using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
defaultfor oneview_synergy_variant: 'Synergy'

Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_logical_downlink/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_logical_downlink).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Logical Downlinks using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_logical_downlink/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_logical_downlink).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Logical Downlinks using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_logical_enclosure/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_logical_enclosure).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Logical Enclosures using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_logical_enclosure/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Puppet::Type.type(:oneview_logical_enclosure).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Logical Enclosures using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'

def set_script
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_logical_interconnect/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_logical_interconnect).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Logical Interconnects using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_logical_interconnect).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Logical Interconnects using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_logical_interconnect_group).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Logical Enclosures using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Puppet::Type.type(:oneview_logical_interconnect_group).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Fiber Channel Networks using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'

def parse_interconnects
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_logical_switch/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_logical_switch).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Logical Switches using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_logical_switch_group/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_logical_switch_group).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Logical Switch Groups using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_managed_san/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_managed_san).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Managed SANs using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_managed_san/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_managed_san).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Managed SANs using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_network_set/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Puppet::Type.type(:oneview_network_set).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Network Sets using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'

def initialize(*args)
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_power_device/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_power_device).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Power Devices using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_power_device/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Puppet::Type.type(:oneview_power_device).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Power Devices using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
confine true: login[:api_version] >= 300
end
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_rack/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_rack).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView Rack using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_rack/synergy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
Puppet::Type.type(:oneview_rack).provide :synergy, parent: :c7000 do
desc 'Provider for OneView Rack using the Synergy variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'Synergy'
end
1 change: 0 additions & 1 deletion lib/puppet/provider/oneview_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

require_relative 'login'
require_relative 'common'
require 'oneview-sdk'

module Puppet
# Base provider for OneView resources
Expand Down
1 change: 1 addition & 0 deletions lib/puppet/provider/oneview_san_manager/c7000.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Puppet::Type.type(:oneview_san_manager).provide :c7000, parent: Puppet::OneviewResource do
desc 'Provider for OneView SAN Manager using the C7000 variant of the OneView API'

confine feature: :oneview
confine true: login[:hardware_variant] == 'C7000'

mk_resource_methods
Expand Down
Loading

0 comments on commit 870e492

Please sign in to comment.