Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2011
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. package{'samba-client': }
  2. file{'smb credentials':
  3. path => '/etc/auto.smb.credentials',
  4. source => '/puppet/files/etc/auto.smb.credentials',
  5. }
  6. mount{'home directory mount':
  7. name => '/home/factoryint',
  8. atboot => 'true',
  9. device => '//storage01.factoryint.com/home',
  10. ensure => 'mounted',
  11. fstype => 'cifs',
  12. options => 'user=samba,domain=factoryint,credentials=/etc/auto.smb.credentials',
  13. require => [File['smb credentials'],Package['samba-client'],File['home mount point']],
  14. }
  15.  
  16.  
  17. client:
  18.  
  19. # mount
  20. /dev/mapper/vg_ws01-lv_root on / type ext4 (rw)
  21. proc on /proc type proc (rw)
  22. sysfs on /sys type sysfs (rw)
  23. devpts on /dev/pts type devpts (rw,gid=5,mode=620)
  24. tmpfs on /dev/shm type tmpfs (rw)
  25. /dev/sda1 on /boot type ext4 (rw)
  26. /dev/mapper/vg_ws01-lv_home on /home type ext4 (rw)
  27. none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
  28. sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
  29. 192.168.2.111:/nfs/puppet on /puppet type nfs (rw,addr=192.168.2.111)
  30. # puppet apply /puppet/manifests/site.pp
  31. notice: /Stage[main]/Basics/Mount[home directory mount]/ensure: ensure changed 'unmounted' to 'mounted'
  32. notice: /Stage[main]/Basics/Mount[home directory mount]: Triggered 'refresh' from 1 events
  33. notice: /Stage[post]/Last_stage/Exec[update puppet last run]/returns: executed successfully
  34. notice: Finished catalog run in 3.24 seconds
  35. # mount
  36. /dev/mapper/vg_ws01-lv_root on / type ext4 (rw)
  37. proc on /proc type proc (rw)
  38. sysfs on /sys type sysfs (rw)
  39. devpts on /dev/pts type devpts (rw,gid=5,mode=620)
  40. tmpfs on /dev/shm type tmpfs (rw)
  41. /dev/sda1 on /boot type ext4 (rw)
  42. /dev/mapper/vg_ws01-lv_home on /home type ext4 (rw)
  43. none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
  44. sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
  45. 192.168.2.111:/nfs/puppet on /puppet type nfs (rw,addr=192.168.2.111)
  46. //storage01.factoryint.com/home/ on /home/factoryint type cifs (rw,mand)
  47. //storage01.factoryint.com/home/ on /home/factoryint type cifs (rw,mand)
  48. # puppet --version
  49. 2.7.5
  50.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement