saltstack/salt — pull request #1478 by mrud (2012-06-19 22:46:32+00:00)
Title: Allow multiple set commands in one setvalue command.

This is an update to my previous pull request. This one allows multiple set commands which
can be used to create more complex node structures at once, e.g:

salt '*' augeas.setvalue prefix=/files/etc/sudoers \
"spec[user = '%wheel']/user" "%wheel" \
"spec[user = '%wheel']/host_group/host" ALL \
"spec[user = '%wheel']/host_group/command[1]" 'ALL' \
"spec[user = '%wheel']/host_group/command[1]/tag" 'PASSWD' \
"spec[user = '%wheel']/host_group/command[2]" '/usr/bin/apt-get' \
"spec[user = '%wheel']/host_group/command[2]/tag" NOPASSWD \
"spec[user = '%wheel']/host_group/command[3]" '/usr/bin/aptitude'

will create following line in /etc/sudoers:

%wheel ALL = PASSWD : ALL , NOPASSWD : /usr/bin/apt-get , /usr/bin/aptitude