#class { 'profile::linux::config::mountmyrep': arg => present,} #/etc/puppet/modules/profile/manifests/linux/config/mountmyrep.pp class profile::linux::config::mountmyrep ($arg = 'absent',){ $mntdir = '/mnt/myrep' file { "$mntdir" : ensure => 'directory', } mount { "$mntdir" : device => "myrepsrv:/linuxrepos/www/suse", fstype => "nfs", ensure => $arg, options => "defaults", atboot => true, remounts => true, require => file["$mntdir"], } exec {'mount -a': path => ["/usr/bin","/usr/sbin", "/bin"], require => mount["$mntdir"], } }