On Monday, November 26, 2012 2:33:54 AM UTC-6, 胡振翔 wrote:
HI,
I am new here.and I have a request to refresh the mount point through puppet for 1000+ servers.
per the native mount type, it seems that it only use 'umount' command , but I want to use 'umount -l' on Linux and 'umount -f' on Solaris and AIx.
zxhu@vlsh-puppet1:/var/log$ sudo puppet agent --server=vlsh-puppet1 --no-daemonize --verbose --onetime
info: Caching catalog for vlsh-puppet1
info: Applying configuration version '1353918009'
err: /Stage[main]/Sudo/Mount[/home/xinghui]/ensure: change from ghost to absent failed: Execution of '/bin/umount /home/xinghui' returned 1: umount: /home/xinghui: device is busy
umount: /home/xinghui: device is busy
any suggest is appreciated.
Thanks.
You cannot change the options without modifying Puppet or writing a custom 'provider' plugin for the Mount type. The PuppetLabs site has documentation on writing custom types and providers (they are related, but you need only a provider for an existing type, not a whole new type).
John