Created
May 30, 2016 20:02
-
-
Save ffrank/85467dfcc21da4ca6c44e1ecedcf1046 to your computer and use it in GitHub Desktop.
mgmt tempfile weirdness
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
# /tmp/mgmt/testgraph-from-puppet | |
--- | |
graph: fflaptop.local | |
comment: generated from puppet catalog for fflaptop.local | |
resources: | |
file: | |
- name: "/tmp/__FILE__" | |
path: "/tmp/__FILE__" | |
state: exists | |
content: accepted | |
edges: [] |
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
# from the shell | |
sed s/__FILE__/`mktemp graphtest-XXXXXX`/ </tmp/mgmt/testgraph-from-puppet >/tmp/testgraph-from-sed.yaml && ./mgmt run --file /tmp/testgraph-from-sed.yaml --converged-timeout=5 --max-runtime=8 | |
# ... | |
# mgmt fails to terminate, gets stuck | |
# | |
# repeat without sed: | |
./mgmt run --file /tmp/testgraph-from-sed.yaml --converged-timeout=5 --max-runtime=8 | |
# no issue! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment