Re: [Puppet Users] puppet parser order random

2014-12-12 Thread 巨海录
i have to read Henrik's http://puppet-on-the-edge.blogspot.com/2014/04/getting-your-puppet-ducks-in-row.html carefully, and this is what i want to know, thanks you very much! 2014-12-11 22:25 GMT+08:00 Martin Alfke tux...@gmail.com: On 11 Dec 2014, at 14:56, jcbollinger

Re: [Puppet Users] puppet parser order random

2014-12-12 Thread 巨海录
Is ::ntp:install just a typo? It looks like it should be ::ntp::install (two colons between ntp and install). yes, it is a typo. 2014-12-12 17:59 GMT+08:00 巨海录 linuxcpp@gmail.com: i have to read Henrik's

Re: [Puppet Users] puppet parser order random

2014-12-11 Thread Martin Alfke
You need to set an dependency for ntp::params and ntp::install to be processed in strict order. e.g. Class[‘::ntp::params’] - Class[‘::ntp::install’] hth, Martin On 11 Dec 2014, at 04:24, 巨海录 linuxcpp@gmail.com wrote: # ntp/manifests/init.pp class ntp ( $var_01 = '/etc/ntp.conf',

Re: [Puppet Users] puppet parser order random

2014-12-11 Thread jcbollinger
On Thursday, December 11, 2014 2:24:11 AM UTC-6, Martin Alfke wrote: You need to set an dependency for ntp::params and ntp::install to be processed in strict order. e.g. Class[‘::ntp::params’] - Class[‘::ntp::install’] NO. This is an unfortunately common and persistent

Re: [Puppet Users] puppet parser order random

2014-12-11 Thread Felix Frank
On 12/11/2014 04:24 AM, 巨海录 wrote: because sometime i can't get the correct value of var_03 and var_04. and they would all be nil. Weird. Should not typically happen, but on the other hand, relying on that is bound to give you head aches. You should include ntp::params in any scope that

Re: [Puppet Users] puppet parser order random

2014-12-11 Thread Martin Alfke
On 11 Dec 2014, at 14:56, jcbollinger john.bollin...@stjude.org wrote: On Thursday, December 11, 2014 2:24:11 AM UTC-6, Martin Alfke wrote: You need to set an dependency for ntp::params and ntp::install to be processed in strict order. e.g. Class[‘::ntp::params’] -

[Puppet Users] puppet parser order random

2014-12-10 Thread 巨海录
# ntp/manifests/init.pp class ntp ( $var_01 = '/etc/ntp.conf', $var_02 = 'ntp/ntp.conf.erb', ) { include ::ntp::params include ::ntp:install } # ntp/manifests/params.pp class ntp::params { $var_03 = 'no.3' $var_o4 = 'no.4' } # ntp/manifests/install.pp class ntp::install { notify