Last active
June 19, 2024 19:29
-
-
Save bschonec/2c8116cdf1dbd0e2cfd19af27e2b04b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
concat {'/tmp/junk.txt': | |
ensure => present, | |
} | |
$a = [1, 3, 5, 7, 9] | |
$b = [2, 4, 6, 8, 10] | |
$a.each |$value| { | |
concat::fragment {"odds-${value}": | |
target => '/tmp/junk.txt', | |
content => "$value \n", | |
order => numeric | |
} | |
} | |
$b.each |$value| { | |
concat::fragment {"evens-${value}": | |
target => '/tmp/junk.txt', | |
content => "$value \n", | |
order => numeric, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changing the order paremeter has no affect: