Le 27/08/2013 08:51, François Lafont a écrit : > In the test::server class, I have forced the exported file to be > created at the end. But, during the puppet run, this is not the case, > and the File[/usr/local/puppet_host/list] resource is realized *after* > the exported file.
I'm wondering if this is not a bug. If I just change the *title* of the exported file, the order is correct. --------------------------------------- class test::node { ## @@file { "${::hostname}_exported": <----- I just change the title. @@file { "${::hostname}": # <----- The new title content => "node\n", tag => "exported", path => "/usr/local/puppet_host/exported/${::hostname}_exported", } } --------------------------------------- Then: root@node:~# puppet agent --test Info: Retrieving plugin Info: Caching catalog for node.mydomain.priv Info: Applying configuration version '1377606380' Notice: Finished catalog run in 0.02 seconds And: root@server:~# rm -r /usr/local/puppet_host/; puppet agent --test Info: Retrieving plugin Info: Caching catalog for server.mydomain.priv Info: Applying configuration version '1377606673' Notice: /Stage[main]/Test::Server/File[/usr/local/puppet_host]/ensure: created Notice: /Stage[main]/Test::Server/File[/usr/local/puppet_host/exported]/ensure: created Notice: /Stage[main]/Test::Server/File[/usr/local/puppet_host/list]/ensure: defined content as '{md5}62171c0c9812eb038aa53a42e30a97f8' Notice: /Stage[main]/Test::Server/File[node]/ensure: defined content as '{md5}449b092c7cda6f1d7d1d5a804ac1bfd3' Notice: Finished catalog run in 0.07 seconds Here, the exported file is created at the end of the puppet run. Is it normal that the order changes just with a modification of the title resource? Thanks in advance. -- Francois Lafont -- 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 puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.