Hello

I.m trying to get a 'static random' base on a node's ip address and
use that number as the minute for a crontab
so each node will get a number between and 59

The things is the number is generated by the puppet master and so all
node get the same value...

my current code :

random_minute = generate('/usr/bin/env', 'bash', '-c', 'host `uname
-n` | head -1 | awk \'{ print $4 }\' | awk -F . \'{ printf("%d\n",
($1+$2+$3+$4)%60); }\'')


So Im a lost what do i need to do so 'generate' used the node's IP and
not puppetmaster...


Thanks!

-ls

-- 
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.

Reply via email to