Todd Zullinger wrote: > Jeremy Hansen wrote: > >> I'm new to puppet. I'm trying to use some real case examples to better >> understand how Puppet works. >> >> Here's my case: >> >> exec { "usermod -d /home/hadoop -s /bin/bash hadoop": >> unless => "test `grep ^hadoop /etc/passwd | awk -F: '{print $6}'` == >> '/home/hadoop'" >> } >> > > I'd check to be sure that puppet hasn't expanded the $6 before it ever > reaches the awk command. You might need to escape it using \$6 or > re-work the 'unless' to use single quotes. > > Not only that, but you need to fully qualify exec statements, or set path to like /bin:/usr/bin.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---