是否可以在Augeas中更改值的一小部分

时间:2015-11-18 11:41:12

标签: puppet puppet-enterprise augeas

我想更改xml值部分的一小部分。是否可以在Augeas中进行?

例如:

我想在以下xml中单独更改IP_ADDRESS。它被放置在三个地方。有可能吗?

<interfaces>
    <interface name="management">
        <inet-address value="${jboss.bind.address.management:IP_ADDRESS}"/>
    </interface>
    <interface name="public">
        <inet-address value="${jboss.bind.address:IP_ADDRESS}"/>
    </interface>
    <interface name="unsecure">
        <inet-address value="${jboss.bind.address.unsecure:IP_ADDRESS}"/>
    </interface>
</interfaces>

1 个答案:

答案 0 :(得分:1)

单独使用Augeas,这不是(目前)可能的(但可能是一旦我们有本机Lua支持)。现在,您需要使用Augeas绑定并自行解析值。

相关问题