Puppet Class: sap::management::permissions

Defined in:
manifests/management/permissions.pp

Summary

Implementation detail - corrects permissions as needed

Overview

Parameters:

  • system_ids (Hash[Sap::SID, Sap::SIDConfigEntry]) (defaults to: $sap::system_ids)

    Replicated from sap::system_ids primarily to make the test code easier to write. See the parent for further detail.



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

class sap::management::permissions (
  Hash[Sap::SID, Sap::SIDConfigEntry] $system_ids = $sap::system_ids,
){
  $system_ids.each |$sid, $sid_data| {
    $sid_lower = downcase($sid)

    # For now, limit this to instances include abap application servers
    unless('instances' in $sid_data) { next() }
    unless('as-abap' in $sid_data['instances']) { next() }

    # Attempt to set the sticky bit for icmbnd
    $exedir = "/sapmnt/${sid}/exe"
    file { "${exedir}/icmbnd.new":
      ensure => 'present',
      owner  => 'root',
      group  => 'sapsys',
      mode   => '4750',
    }
  }
}