Hi all,

How do I reference the first member in the $ntpd_servers array in the code 
below. Any pointers to the official Puppet (or Ruby?) documentation would 
be much appreciated.

class ntp {

  $ntpd_servers = [ "0.rhel.pool.ntp.org", "1.rhel.pool.ntp.org", 
"2.rhel.pool.ntp.org" ]

  exec { "set_clock":  
    subscribe   => File["/etc/ntp.conf"],  
    command     => "/sbin/service ntpd stop && /sbin/ntpdate 
<FIRST_MEMBER_OF_ARRAY> && /sbin/service ntpd start",  
    refreshonly => true;  
  }  

}

Regards,
Willem.

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to