【问题标题】:Is it possible to change few portions of the value in Augeas是否可以更改 Augeas 中的部分价值
【发布时间】:2015-11-18 11:41:12
【问题描述】:

我想更改 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>

【问题讨论】:

    标签: puppet puppet-enterprise augeas


    【解决方案1】:

    单独使用 Augeas,这(目前)是不可能的(但可能会在我们获得原生 Lua 支持后)。现在,您需要使用 Augeas 绑定并自己解析值。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-13
      • 2018-07-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多