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

run_command: support array of commands #3333

Open
bastelfreak opened this issue Jul 1, 2024 · 0 comments
Open

run_command: support array of commands #3333

bastelfreak opened this issue Jul 1, 2024 · 0 comments
Labels
Feature New features and improvements.

Comments

@bastelfreak
Copy link
Contributor

Use Case

Due to security concerns, the best practice for commands in Puppet DSL are now arrays: https://www.puppet.com/docs/puppet/7/types/exec.html#exec-attribute-command

The run_command() only supports the String datatype as input and I think it makes sense that it supports array as well.

Describe the Solution You Would Like

Array support for the commands in run_command()

Describe Alternatives You've Considered

A clear and concise description of any alternative solutions or features you've considered.

Additional Context

Add any other context or screenshots about the feature request here.

@bastelfreak bastelfreak added the Feature New features and improvements. label Jul 1, 2024
alex501212 added a commit to alex501212/bolt that referenced this issue Jul 22, 2024
* **run_command: support an array of commands* ([puppetlabs#3333](puppetlabs#3333))

  Added run_commands method which allows an array of commands to be passed to run_command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New features and improvements.
Projects
None yet
Development

No branches or pull requests

1 participant