fuel-library/deployment/puppet/sysfs/manifests/install.pp
Dmitry Ilyin 5cde6f1668 Implement sysfs values management resource
Change-Id: I84cd799630a5b930f7e22cad735205d122fa0fb1
Closes-Bug: 1456587
Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
2015-05-26 14:24:30 +00:00

39 lines
826 B
Puppet

# == Class: sysfs::install
#
# This class installs the sysfsutils packages and prepares the config directory
#
class sysfs::install inherits sysfs::params {
File {
owner => 'root',
group => 'root',
mode => '0755',
}
#TODO: should be moved to the fuel-library package or sysfsutils package
if $::osfamily == 'RedHat' {
file { 'sysfsutils.init' :
ensure => 'present',
name => "/etc/init.d/${service}",
source => 'puppet:///modules/sysfs/centos-sysfsutils.init.sh',
}
}
package { 'sysfsutils' :
ensure => 'installed',
name => $package,
}
tweaks::ubuntu_service_override { 'sysfsutils' :
package_name => $package,
}
file { 'sysfs.d' :
ensure => 'directory',
name => $config_dir,
}
Class['sysfs::install'] -> Sysfs_config_value <||>
}