You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the main uses of Augeas in Puppet is to edit XML nodes. The typical use identifies a node and sets its text and/or attributes, so I'd suggest an xml_node type like so:
xml_node { 'some node':
ensure => present, # or absent, maybe positioned as welltarget => '/path/to/file.xml',
path => '/path/to/node', # allow to pass an Augeas expression to filter out nodetext => 'my text value', # maybe a way to remove the valueattributes => {
attr1 => 'val1',
attr2 => 'val2',
},
attr_append => true, # should we not replace the attributes?
}
Would that be useful? Is it missing something?
The text was updated successfully, but these errors were encountered:
One of the main uses of Augeas in Puppet is to edit XML nodes. The typical use identifies a node and sets its text and/or attributes, so I'd suggest an
xml_node
type like so:Would that be useful? Is it missing something?
The text was updated successfully, but these errors were encountered: