Hi, I use Puppet 3.2 (with hiera) on Debian Wheezy and I have a problem of ordering with exported files.
I have 2 puppet clients : 1) server.mydomain.priv with this yaml: --- classes: - test::server 2) and node.mydomain.priv with this yaml: --- classes: - test::node Here is my (very simple) "test" module: --------------------------------------- class test::node { @@file { "${::hostname}_exported": path => "/usr/local/puppet_host/exported/${::hostname}_exported", content => "node\n", tag => "exported", } } --------------------------------------- And --------------------------------------- class test::server { $managed_directories = [ '/usr/local/puppet_host', '/usr/local/puppet_host/exported', ] file { $managed_directories: ensure => directory, mode => 750, recurse => true, force => true, } file { '/usr/local/puppet_host/list': mode => 440, content => "List.\n", } File <<| tag == 'exported' |>> { mode => 0644, } # Ordering File[$managed_directories] -> File['/usr/local/puppet_host/list'] -> File <<| tag == 'exported' |>> # <-- exported files at the end !!! } --------------------------------------- No problem when I run puppet on node.mydomain.priv. But after, on server.mydomain.priv, I have this: root@server:~# puppet agent --test Info: Retrieving plugin Info: Caching catalog for server.mydomain.priv Info: Applying configuration version '1377583717' 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[node_exported]/ensure: defined content as '{md5}449b092c7cda6f1d7d1d5a804ac1bfd3' Notice: /Stage[main]/Test::Server/File[/usr/local/puppet_host/list]/ensure: defined content as '{md5}62171c0c9812eb038aa53a42e30a97f8' Notice: Finished catalog run in 0.08 seconds 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. Why? Is it normal? Did I forget anything? How I can force the exported file to be created at the end? Thanks in advance for your help. -- 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.