|
download, run and delete file: msg#00286sysutils.puppet.user
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> |
|---|---|---|
| Previous by Date: | Re: freebsd service management redux: 00286, Russell Jackson |
|---|---|
| Next by Date: | Re: Managing R packages under Linux: 00286, Sam Bashton |
| Previous by Thread: | freebsd service management reduxi: 00286, Russell Jackson |
| Next by Thread: | Re: download, run and delete file: 00286, Russell Jackson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |