Browse Source

Install python3-designateclient in Fedora or RedHat > 7

Fedora repo [1] has python3 packages, start consuming those.

[1] http://trunk.rdoproject.org/fedora/puppet-passed-ci/

Change-Id: I598a9bd07d739063c9e7461a960b448baaf0e44d
tags/14.1.0
Alex Schultz 6 months ago
parent
commit
91e8bb8a39
2 changed files with 3 additions and 3 deletions
  1. 1
    2
      manifests/client.pp
  2. 2
    1
      manifests/params.pp

+ 1
- 2
manifests/client.pp View File

@@ -15,10 +15,9 @@
15 15
 class designate::client (
16 16
   $package_ensure = 'present',
17 17
   $client_package_name = $::designate::params::client_package_name,
18
-) {
18
+) inherits ::designate::params {
19 19
 
20 20
   include ::designate::deps
21
-  include ::designate::params
22 21
 
23 22
   package { 'python-designateclient':
24 23
     ensure => $package_ensure,

+ 2
- 1
manifests/params.pp View File

@@ -5,7 +5,8 @@
5 5
 class designate::params {
6 6
   include ::openstacklib::defaults
7 7
 
8
-  if ($::os_package_type == 'debian') {
8
+  if ($::os_package_type == 'debian') or ($::os['name'] == 'Fedora') or
9
+      ($::os['family'] == 'RedHat' and Integer.new($::os['release']['major']) > 7){
9 10
     $pyvers = '3'
10 11
   } else {
11 12
     $pyvers = ''

Loading…
Cancel
Save