Very nice! Thanks! On Monday, 26 September 2016 18:23:17 UTC-4, Scott Walker wrote: > > I'm relatively new to puppet (came from chef world). > > I'm trying to figure out a way to cleanly do the following... > > On machines which /usr/sbin/dmidecode | grep Z640 (this is how we are sure > the machine is Z640 and not some other type of machine) return true I want > to do the following: > > file { '/etc/default/grub': > path => '/etc/default/grub' > ensure => present, > mode => '0644', > owner => 'root', > group => 'root', > notify => Exec['grub-update'], > source => 'puppet:///modules/z640/grub' > } > > exec { 'grub-update': > refreshonly => true, > command => '/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg', > } > > Otherwise I don't want to do anything. (This is to help fix an NVME issue > I am having on 60+ workstation out of 700 in the studio. > > I just can't wrap my head around a clean way to achieve this goal. > > I know this is probably a really simple task I just need some direction.... >
-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2a826a59-2f33-41fc-8c3e-7b7881947782%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.