File: params.pp

package info (click to toggle)
puppet-module-openstacklib 25.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 968 kB
  • sloc: ruby: 4,500; python: 38; sh: 22; makefile: 10
file content (23 lines) | stat: -rw-r--r-- 532 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# == Class: openstacklib::params
#
# These parameters need to be accessed from several locations and
# should be considered to be constant
#
class openstacklib::params {

  include openstacklib::defaults

  $openstackclient_package_name = 'python3-openstackclient'

  case $facts['os']['family'] {
    'RedHat': {
      $open_iscsi_package_name = 'iscsi-initiator-utils'
    }
    'Debian': {
      $open_iscsi_package_name = 'open-iscsi'
    }
    default:{
      fail("Unsupported osfamily: ${facts['os']['family']}")
    }
  }
}