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 巨海录 : > > i have to read Henrik's > > caref

Re: [Puppet Users] puppet parser order random

2014-12-12 Thread 巨海录
i have to read Henrik's carefully, and this is what i want to know, thanks you very much! 2014-12-11 22:25 GMT+08:00 Martin Alfke : > > > On 11 Dec 2014, at 14:56, jcbollinger wrote: > > > > > > > On Thursday,

Re: [Puppet Users] puppet parser order random

2014-12-11 Thread Martin Alfke
On 11 Dec 2014, at 14:56, jcbollinger 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’] -> Class[‘::ntp::install’] > > > >

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

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, 巨海录 wrote: > # ntp/manifests/init.pp > class ntp ( > $var_01 = '/etc/ntp.conf', > $var_02 = 'ntp/ntp

[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 {"v