Resource Type: system_attributes

Defined in:
lib/puppet/type/system_attributes.rb
Providers:
system_attributes

Overview

Manage system attributes on ZFS files. See chmod(1) Autorequires the referenced file if it is managed by Puppet.

Note Default behavior affects only the explicitly defined attributes. See the 'strict' and 'ignore_*' parameters to change default behaviors.

Properties

  • appendonly

    Allows a file to be modified only at offset EOF

    Supported values:
    • /yes/i
    • /no/i
  • archive

    Indicates if a file has been modified since it was last backed up. Archive is set whenever the mtime of the file is changed

    Supported values:
    • /yes/i
    • /no/i
  • av_modified

    ZFS sets the anti-virus attribute which whenever a file's con- tent or size changes or when the file is renamed.

    Supported values:
    • /yes/i
    • /no/i
  • av_quarantined

    Anti-virus software sets to mark a file as quarantined.

    Supported values:
    • /yes/i
    • /no/i
  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • hidden

    Marks a file as hidden.

    Supported values:
    • /yes/i
    • /no/i
  • immutable

    Prevents the content of a file from being modified. Also pre- vents all metadata changes, except for access time updates. When placed on a directory, prevents the deletion and creation of files in the directories.

    Supported values:
    • /yes/i
    • /no/i
  • nodump

    Solaris systems have no special semantics for this attribute.

    Supported values:
    • /yes/i
    • /no/i
  • nounlink

    Prevents a file from being deleted. On a directory, the attribute also prevents any changes to the contents of the directory.

    Supported values:
    • /yes/i
    • /no/i
  • offline

    Offline

    Supported values:
    • /yes/i
    • /no/i
  • readonly

    Marks a file as readonly.

    Supported values:
    • /yes/i
    • /no/i
  • sensitive

    Some Solaris utilities may take different actions based on this attribute. For example, not recording the contents of such files in administrative logs.

    Supported values:
    • /yes/i
    • /no/i
  • sparse

    Sparse

    Supported values:
    • /yes/i
    • /no/i
  • system

    Solaris systems have no special semantics for this attribute.

    Supported values:
    • /yes/i
    • /no/i

Parameters

  • file

    The fully specified path of the file

    Supported values:
    • %r(^/.+)
  • ignore_archive (defaults to: true)

    Ignore archive flag settings on file if they are not set in the resource. Default: true

    Supported values:
    • /true/i
    • /false/i
  • ignore_av_modified (defaults to: true)

    Ignore av_modified flag settings on file if they are not set in the resource. Default: true

    Supported values:
    • /true/i
    • /false/i
  • ignore_av_quarantined (defaults to: true)

    Ignore av_quarantined flag settings on file if they are not set in the resource. Default: true

    Supported values:
    • /true/i
    • /false/i
  • name (namevar)

    The name for the set of attributes to set on the file. Fully qualified paths will be propagated to the file parameter

  • strict (defaults to: false)

    Set only the attributes explicitly defined in the resource clearing all other attributes.

    Strict changes are only applied if other attributes are changed. Strict respects ignore_* parameters. Default: false

    Supported values:
    • /true/i
    • /false/i