remove link if absent

This commit is contained in:
Andreas 2009-11-18 19:22:01 +01:00 committed by Micah Anderson
parent 72dcd72362
commit 2a679f8fa0

View file

@ -15,6 +15,12 @@ define link(
ensure => link,
target => "${target}"
}
}else{
file { "$name":
ensure => absent,
recurse => true,
force => true
}
}
}