Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple lines with same directive name - how to specify as Lines in included file ? #429

Open
iscb1962 opened this issue Oct 3, 2024 · 0 comments

Comments

@iscb1962
Copy link

iscb1962 commented Oct 3, 2024

Hi

Trying to add multiple SendEnv lines to a config file using something like

ssh::config_files:
'50-redhat':
lines:
SendEnv: LANG
SendEnv: LC_TIME
this result in just the last entry being included in the file

Using
lines:
SendEnv:
- LANG
- LC_TIME
Gets "Error while evaluating a Resource Statement, Ssh::Config_file_client[50-redhat]: parameter 'lines' entry 'SendEnv' expects a String value, got Tuple"

Using
custom:
- 'SendEnv LANG'
- 'SendEnv LC_TIME'

Works - as you would expect (as its just copied to the file) - just misses out on the validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant