Skip to content

Instantly share code, notes, and snippets.

@ffrank
Created May 30, 2016 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ffrank/85467dfcc21da4ca6c44e1ecedcf1046 to your computer and use it in GitHub Desktop.
Save ffrank/85467dfcc21da4ca6c44e1ecedcf1046 to your computer and use it in GitHub Desktop.
mgmt tempfile weirdness
# /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: []
# 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