components/ruby/puppet-modules/openstack-openstacklib/patches/02-openstackclient.patch
changeset 5464 6e2e17e6aa45
child 5860 afd31ba91ee9
equal deleted inserted replaced
5463:245bdc05448a 5464:6e2e17e6aa45
       
     1 In-house patch to add support for Solaris 11.3 and 12.0.  This patch
       
     2 has not yet been submitted upstream due to requirements for 3rd party
       
     3 CI testing.
       
     4 
       
     5 --- openstack-openstacklib-6.1.0/manifests/openstackclient.pp.orig	2015-06-05 16:06:39.223700269 -0600
       
     6 +++ openstack-openstacklib-6.1.0/manifests/openstackclient.pp	2015-06-05 16:08:35.218161669 -0600
       
     7 @@ -10,9 +10,16 @@
       
     8  #
       
     9  class openstacklib::openstackclient(
       
    10    $package_ensure = 'present',
       
    11 -){
       
    12 -  package { 'python-openstackclient':
       
    13 -    ensure => $package_ensure,
       
    14 -    tag    => 'openstack',
       
    15 +) {
       
    16 +  if $::osfamily == 'Solaris' {
       
    17 +    package { 'library/python/openstackclient':
       
    18 +      ensure => $package_ensure,
       
    19 +      tag    => 'openstack',
       
    20 +    }
       
    21 +  } else {
       
    22 +    package { 'python-openstackclient':
       
    23 +      ensure => $package_ensure,
       
    24 +      tag    => 'openstack',
       
    25 +    }
       
    26    }
       
    27  }