1
我想編輯我的yum.conf使用augeas工具,我再次在puppet中使用的排除部分。編輯yum.conf /排除與augeas
的問題是這樣做的:
# augtool
augtool> set /files/etc/yum.conf/main/exclude[last()+1] 'kernel*'
augtool> save
Saved 1 file(s)
augtool> set /files/etc/yum.conf/main/exclude[last()+1] 'python*'
augtool> save
Saved 1 file(s)
augtool>
寫出:
exclude=kernel*
exclude=python*
在
/etc/yum.conf中文件
。
yum.conf的排除部分只支持空格分隔列表。那麼我怎麼能欺騙augeas在這裏使用空間分隔?還是我在做一些完全錯誤的事情?
覆蓋整個排除選項不是解決方案,因爲其中可能有其他條目。
感謝您的鏈接。我會等待錯誤得到解決。 – xeor 2012-08-15 16:38:38