Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package{'samba-client': }
- file{'smb credentials':
- path => '/etc/auto.smb.credentials',
- source => '/puppet/files/etc/auto.smb.credentials',
- }
- mount{'home directory mount':
- name => '/home/factoryint',
- atboot => 'true',
- device => '//storage01.factoryint.com/home',
- ensure => 'mounted',
- fstype => 'cifs',
- options => 'user=samba,domain=factoryint,credentials=/etc/auto.smb.credentials',
- require => [File['smb credentials'],Package['samba-client'],File['home mount point']],
- }
- client:
- # mount
- /dev/mapper/vg_ws01-lv_root on / type ext4 (rw)
- proc on /proc type proc (rw)
- sysfs on /sys type sysfs (rw)
- devpts on /dev/pts type devpts (rw,gid=5,mode=620)
- tmpfs on /dev/shm type tmpfs (rw)
- /dev/sda1 on /boot type ext4 (rw)
- /dev/mapper/vg_ws01-lv_home on /home type ext4 (rw)
- none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
- sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
- 192.168.2.111:/nfs/puppet on /puppet type nfs (rw,addr=192.168.2.111)
- # puppet apply /puppet/manifests/site.pp
- notice: /Stage[main]/Basics/Mount[home directory mount]/ensure: ensure changed 'unmounted' to 'mounted'
- notice: /Stage[main]/Basics/Mount[home directory mount]: Triggered 'refresh' from 1 events
- notice: /Stage[post]/Last_stage/Exec[update puppet last run]/returns: executed successfully
- notice: Finished catalog run in 3.24 seconds
- # mount
- /dev/mapper/vg_ws01-lv_root on / type ext4 (rw)
- proc on /proc type proc (rw)
- sysfs on /sys type sysfs (rw)
- devpts on /dev/pts type devpts (rw,gid=5,mode=620)
- tmpfs on /dev/shm type tmpfs (rw)
- /dev/sda1 on /boot type ext4 (rw)
- /dev/mapper/vg_ws01-lv_home on /home type ext4 (rw)
- none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
- sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
- 192.168.2.111:/nfs/puppet on /puppet type nfs (rw,addr=192.168.2.111)
- //storage01.factoryint.com/home/ on /home/factoryint type cifs (rw,mand)
- //storage01.factoryint.com/home/ on /home/factoryint type cifs (rw,mand)
- # puppet --version
- 2.7.5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement