I am trying to edit the exclude part of my yum.conf using the augeas tool which again I use in puppet.
The problem is that doing:
# 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>
Writes out:
exclude=kernel*
exclude=python*
in the /etc/yum.conf file.
The yum.conf's exclude part only support a space separated list. So how can I trick augeas to use space separation here? Or am I doing something completely wrong?
Overwriting the whole exclude option is not a solution since there could be other entries in it already.