salt.modules.temp
Simple module for creating temporary directories and files
This is a thin wrapper around Pythons tempfile module
New in version 2015.8.0.
-
Create a temporary directory
CLI Example:
salt '*' temp.dir salt '*' temp.dir prefix='mytemp-' parent='/var/run/'
salt.modules.temp.dir(suffix='', prefix='tmp', parent=None)
-
Create a temporary file
CLI Example:
salt '*' temp.file salt '*' temp.file prefix='mytemp-' parent='/var/run/'
salt.modules.temp.file(suffix='', prefix='tmp', parent=None)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.temp.html