Puppet Class: omsa::config
- Defined in:
- manifests/config.pp
Overview
Class: omsa::params
Internal class to tweak OMSA configuration
Authors
Davide Ferrari <vide80@gmail.com>
Copyright
Copyright 2016 Davide Ferrari, unless otherwise noted.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'manifests/config.pp', line 16
class omsa::config(){
if ( str2bool("${::omsa::install_storage}")) {
if ( $::operatingsystem == 'CentOS' ) {
# tune a ini file so "omreport storage" works with CentOS
exec { 'storage INI file centos fix':
path => '/bin/:/sbin:/usr/bin:/usr/sbin:/usr/local/bin',
cwd => '/opt/dell/srvadmin/etc/srvadmin-storage/',
command => 'sed -i "s/vil7=dsm_sm_psrvil/; vil7=dsm_sm_psrvil/g" stsvc.ini',
unless => 'grep -q "; vil7" stsvc.ini',
notify => Service[$::omsa::service_name],
}
}
}
}
|