remove link if absent
This commit is contained in:
parent
72dcd72362
commit
2a679f8fa0
1 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,12 @@ define link(
|
||||||
ensure => link,
|
ensure => link,
|
||||||
target => "${target}"
|
target => "${target}"
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
file { "$name":
|
||||||
|
ensure => absent,
|
||||||
|
recurse => true,
|
||||||
|
force => true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue