salt.states.xml

XML Manager

State management of XML files

salt.states.xml.value_present(name, xpath, value, **kwargs)

New in version 3000.

Manages a given XML file

name : string
The location of the XML file to manage, as an absolute path.
xpath : string
xpath location to manage
value : string
value to ensure present
ensure_value_true:
  xml.value_present:
    - name: /tmp/test.xml
    - xpath: .//playwright[@id='1']
    - value: William Shakespeare

Docs for previous releases are available on readthedocs.org.

Latest Salt release: latest_release

Table of Contents

Previous topic

salt.states.x509

Next topic

salt.states.xmpp