puppetlabs/puppet-sudo — Issue #6: Multiline bug
Author: xeor
Created: 2011-11-18 17:20:24+00:00
State: open

When the sudoers file contains variables with multiple lines (which it often do in some distroes), puppet-sudo wont run.

Error:
err: Could not prefetch sudoers provider 'parsed': invalid line
LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \ in /etc/sudoers

/etc/sudoers contains stuff like:
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC \
LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \
_XKB_CHARSET XAUTHORITY"

Tried a workaround with merging the all into one line, but then all spaces disappeared.. Like...
Defaults env_keep="COLORSDISPLAYHOSTNAMEHISTSIZEINPUTRCKDEDIRLS_COLORSMAILPS1PS2QTDIRUSERNAMELANGLC_ADDRESSLC_CTYPELC_COLLATELC_IDENTIFICATIONLC_MEASUREMENTLC_MESSAGESLC_MONETARYLC_NAMELC_NUMERICLC_PAPERLC_TELEPHONELC_TIMELC_ALLLANGUAGELINGUAS_XKB_CHARSETXAUTHORITY"

Versions used:
Checkout of gitrepo today 18. Nov
Puppet version 2.7.6
OS: RHEL5