❯ rm -f /tmp/foo ; touch /tmp/foo |
❯ puppet apply --show_diff -e 'file { "/tmp/foo": content => "${facts[system_uptime][seconds]}\n" }' |
Notice: Compiled catalog for vm3.oxidized.org in environment production in 0.01 seconds |
Notice: /Stage[main]/Main/File[/tmp/foo]/content: |
--- /tmp/foo 2022-12-15 05:22:48.650776253 -0800 |
+++ /tmp/puppet-file20221215-13413-13tokve 2022-12-15 05:22:52.354791664 -0800 |
@@ -0,0 +1 @@ |
+77133 |
|
Notice: /Stage[main]/Main/File[/tmp/foo]/content: content changed '{sha256}e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855' to '{sha256}9bd523e3860777cd1c2d38207b95a7bc0bd8ed1d47afc839da1378ce71ad28f3' |
Notice: Applied catalog in 0.02 seconds |
❯ sleep 1 ; puppet apply --show-diff -e 'file { "/tmp/foo": content => "${facts[system_uptime][seconds]}\n" }' |
Notice: Compiled catalog for vm3.oxidized.org in environment production in 0.01 seconds |
Notice: /Stage[main]/Main/File[/tmp/foo]/content: content changed '{sha256}9bd523e3860777cd1c2d38207b95a7bc0bd8ed1d47afc839da1378ce71ad28f3' to '{sha256}3b9cd754c5b3f7219943c3ebdf2b51b972980cfc0d478e645784ae2b78699314' |
Notice: Applied catalog in 0.01 seconds |
❯ puppet apply --invalid |
Error: Could not parse application options: invalid option: --invalid
|