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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/024553d2-1872-4eab-9bd5-8280c92c07ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to