Resource Type: xmlfile

Defined in:
lib/puppet/type/xmlfile.rb
Providers:
xmlfile_posix
xmlfile_windows

Overview

An extension of the base file resource type. An xmlfile behaves like a file in all ways except that its content can be modified via xmlfile_modification resources.

This enables the mixing of exported or virtual content and templated or static content, while managing the end-result as a single resource.

The following attributes are inherited from the file type:

  • path

  • ctime (read-only)

  • group

  • mode

  • mtime (read-only)

  • owner

  • selinux_ignore_defaults

  • selrange

  • selrole

  • seltype

  • seluser

  • source

See: docs.puppetlabs.com/references/latest/type.html#file for details

Properties

  • content

    The desired contents of a file, as a string. This attribute is mutually exclusive with ‘source`.

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent

Parameters

  • provider

    The specific backend to use for this ‘xmlfile` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.