famous-eye-35723
07/13/2022, 7:26 PMcommand.remote.Command()
using python. Ho do I pass environment variables?install_datadog_agent = command.remote.Command(
"install_datadog_agent",
connection=connection,
environment={
"DD_AGENT_MAJOR_VERSION": "7",
"DD_SITE": "<http://datadoghq.com|datadoghq.com>",
},
create='echo "the version is ${DD_AGENT_MAJOR_VERSION}"',
update='echo "the version is: ${DD_AGENT_MAJOR_VERSION}"',
opts=pulumi.ResourceOptions(depends_on=[server]),
)
outputs
Outputs:
~ catConfigStdout:
- the version is
+ the version is:
Instead of the DD_AGENT_MAJOR_VERSIONechoing-dinner-19531
07/13/2022, 7:53 PMcommand.local.Command
?dazzling-oxygen-84405
07/13/2022, 8:01 PMAcceptEnv
for those environment variables. Is that correct?echoing-dinner-19531
07/13/2022, 8:03 PMdazzling-oxygen-84405
07/13/2022, 8:06 PMAcceptEnv LANG LC_*
. Anything else would have to be configured in /etc/sshd_config
.famous-eye-35723
07/13/2022, 8:51 PMechoing-dinner-19531
07/14/2022, 8:19 AM