cdist-type__file(7)


Table of Contents

1. NAME
2. DESCRIPTION
3. REQUIRED PARAMETERS
4. OPTIONAL PARAMETERS
5. EXAMPLES
6. SEE ALSO
7. COPYING

1. NAME

cdist-type__file - Create files

2. DESCRIPTION

This cdist type allows you to create files on the target.

3. REQUIRED PARAMETERS

None.

4. OPTIONAL PARAMETERS

group
Group to chgrp to.
mode
Unix permissions, suitable for chmod.
owner
User to chown to.
source
If supplied, copy this file from the host running cdist to the target. If not supplied, an empty file or directory will be created.

5. EXAMPLES

# Create  /etc/cdist-configured as an empty file
__file /etc/cdist-configured

# Use __file from another type
__file /etc/issue --source "$__type/files/archlinux"

# Supply some more settings
__file /etc/shadow --source "$__type/files/shadow" \
   --owner root --group shadow --mode 0640

6. SEE ALSO

  • cdist-type(7)

7. COPYING

Copyright (C) 2011 Nico Schottelius. Free use of this software is granted under the terms of the GNU General Public License version 3 (GPLv3).