0

我正在使用 Augeas 测试一些配置更改,我可以看到 Puppet 获取了更改,但它们实际上并未应用于磁盘:

Notice: Augeas[db-connection](provider=augeas):
--- /opt/myconfigfile.xml       2017-09-11 11:56:18.072779400 +0000
+++ /opt/myconfgfile.xml.augnew        2017-09-11 14:54:57.403377000 +0000

Notice: /Stage[main]/myserver::Configuration_someconfig/Augeas[db-connection]/returns: executed successfully

但我也看到了这个:

   Info: Stage[main]: Unscheduling all events on Stage[main]
4

1 回答 1

1
   augeas { 'test1':
        lens    => 'Xml.lns',   
        tag     => 'my-config',
        incl => $mysystem_xml,
        context => "/files$mysystem_xml/properties",
        changes => [ 
        "set entry[#attribute/key='ProviderType']/#text $myserver::provider_type", 
        ],
      }
于 2017-09-13T08:20:43.413 回答