logo       

download, run and delete file: msg#00286

sysutils.puppet.user

Subject: download, run and delete file

Hello

I try the following:
1. Check if a file is present
2. if not, download some files to an directory in /tmp and run one
3. remove the files and the directoy from /tmp

1 and 2 are easy, here is my definition:

class netcool
{

exec { "/bin/bash /tmp/netcool/silentinstall.sh":
cwd => "/tmp/netcool",
path => "/usr/bin:/usr/sbin:/bin:/sbin",
creates => "/opt/netcool/ssm/bin/init.nco_m_ssmagent",
require => File["/tmp/netcool"]
}
file { "/tmp/netcool":
source => "puppet://10.32.29.29/dist/os/linux/netcool",
backup => false,
mode => 644,
owner => root,
group => root,
recurse => true
}
}


that works so far. But if i (manually) delete /tmp/netcool, the next
time i run puppet, it will downloaded again. Is there a
Way to get rid of these Files?

Thanks

Jan Hebler

PS. Sorry for my bad english


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise