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:
parent
26ab229398
commit
05efae8a1c
|
@ -5,8 +5,6 @@
|
|||
#
|
||||
|
||||
class sysfs {
|
||||
class { 'sysfs::install' :}
|
||||
class { 'sysfs::install' :}->
|
||||
class { 'sysfs::service' :}
|
||||
|
||||
Class['sysfs::install'] ~> Class['sysfs::service']
|
||||
}
|
||||
|
|
|
@ -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 <||>
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue