Skip to content

Commit

Permalink
Add puppet description
Browse files Browse the repository at this point in the history
  • Loading branch information
epinna committed Jun 2, 2018
1 parent ce47cfd commit 234cfc0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions _gtfobins/puppet.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
---
functions:
execute-non-interactive:
- code: |
- description: The executed command output is not shown and can be redirected to a file.
code: |
export CMD="/usr/bin/id"
puppet apply -e "exec { '${CMD}': }"
sudo-enabled:
- code: |
- description: The executed command output is not shown and can be redirected to a file.
code: |
export CMD="/usr/bin/id"
sudo puppet apply -e "exec { '${CMD}': }"
file-read:
- code: |
- description: The read file content is corrupted by the `diff` output format.
code: |
export LFILE=file_to_read
puppet filebucket -l diff /dev/null ${LFILE}
file-write:
- code: |
- description: The file path must be absolute.
code: |
export LFILE="/tmp/file_to_write"
puppet apply -e "file { '${LFILE}': content => 'data' }"
---

0 comments on commit 234cfc0

Please sign in to comment.