Defined Type: scaleio::sdc

Defined in:
manifests/sdc.pp

Overview

Parameters:

  • ip (Any)
  • ensure (Any) (defaults to: 'present')
  • performance_profile (Any) (defaults to: 'high_performance')


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/sdc.pp', line 4

define scaleio::sdc (
  $ip,                                        # string - IP to specify SDC in cluster
  $ensure               = 'present',          # present|absent - 'absent' removes SDC from cluster
  $performance_profile  = 'high_performance', # performance profile for SDC: default or high_performance
  )
{
  if $ensure == 'absent' {
    scaleio::cmd {"SDC ${ip} ${ensure}":
      action     => 'remove_sdc',
      ref        => 'sdc_ip',
      value      => $ip,
      extra_opts => '--i_am_sure'}
  } else {
    #Apply profile high_performance
    $mdm_opts = $::mdm_ips ? {
      undef   => '',
      default => "--mdm_ip ${::mdm_ips}"}
    exec { "Apply high_performance profile for SDC ${ip}":
      command => "scli ${mdm_opts} --set_performance_parameters --all_sdc --apply_to_mdm --profile ${performance_profile}",
      path    => '/bin:/usr/bin',
    }
  }
}