To the best of my knowledge, it is resources that can be applied in any order, not scoped variables.
Your puppet agent will create these files in any order, given that the file resources have no require/before dependencies:
node myserver {
file { '/tmp/1':
content => "123\n",
}
file { '/tmp/2':
content => "456\n",
}
}
But here, no file will contain the string "what":
node myserver {
file { '/tmp/1':
content => "${what}123\n",
}
file { '/tmp/2':
content => "${what}456\n",
}
$var = 'what'
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> [1]
https://groups.google.com/d/msg/puppet-users/-/Q_pDE14z0CYJ.
> To post to this group, send email to
puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
>
puppet-users...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/puppet-users?hl=en.
>
> References
>
> Visible links
> 1.
https://groups.google.com/d/msg/puppet-users/-/Q_pDE14z0CYJ