fix sysfs idempotence

- Change notify from sysfs class to sysfs service
 - Remove ubuntu tweak

Partial-Bug: #1524724
Change-Id: I93cc68bd0fcc46b7d506f194c0b16e6439f0632d
This commit is contained in:
Ivan Ponomarev 2015-12-22 11:20:48 -06:00 committed by Alex Schultz
parent 26ab229398
commit 05efae8a1c
3 changed files with 1 additions and 11 deletions

View File

@ -5,8 +5,6 @@
#
class sysfs {
class { 'sysfs::install' :}
class { 'sysfs::install' :}->
class { 'sysfs::service' :}
Class['sysfs::install'] ~> Class['sysfs::service']
}

View File

@ -25,14 +25,8 @@ class sysfs::install inherits sysfs::params {
name => $package,
}
tweaks::ubuntu_service_override { 'sysfsutils' :
package_name => $package,
}
file { 'sysfs.d' :
ensure => 'directory',
name => $config_dir,
}
Class['sysfs::install'] -> Sysfs_config_value <||>
}

View File

@ -26,8 +26,6 @@ describe 'sysfs::install' do
:ensure => 'present',
:source => 'puppet:///modules/sysfs/centos-sysfsutils.init.sh')
end
should contain_tweaks__ubuntu_service_override('sysfsutils').with(
:package_name => 'sysfsutils')
end
end