Christian Michael Tan
08/07/2023, 1:02 PMcommand => 'var=$(awk -F: '($2 == "" ) { print $1 }' /etc/shadow)',
this is giving me an error : syntax error at line 58 '{'Robert Vincent
08/07/2023, 1:10 PMRobert Vincent
08/07/2023, 1:12 PMcommand => "var=\$(awk -F: '($2 == \"\" )' { print \$1 }" /etc/shadow)',
Christian Michael Tan
08/07/2023, 1:15 PMSyntax error at ')' (file: /home/ccpro/env_var_test.pp, line: 3, column: 87
Christian Michael Tan
08/07/2023, 1:16 PMRobert Vincent
08/07/2023, 1:16 PMRobert Vincent
08/07/2023, 1:17 PMcommand => "var=\$(awk -F: '(\$2 == \"\" )' { print \$1 } /etc/shadow)"
Robert Vincent
08/07/2023, 1:18 PMRobert Vincent
08/07/2023, 1:19 PMbastelfreak
08/07/2023, 1:23 PMSlackbot
08/07/2023, 1:23 PMChristian Michael Tan
08/07/2023, 1:23 PMRobert Vincent
08/07/2023, 1:29 PMawk
from a Puppet exec
is probably a bad idea, regardless.
I was assuming that you were just playing around for educational purposes, but setting a var
environment variable within a Puppet exec
resource will have zero net effect.matt
08/07/2023, 1:39 PMbastelfreak
08/07/2023, 1:42 PMbastelfreak
08/07/2023, 1:42 PMmatt
08/07/2023, 1:42 PMbastelfreak
08/07/2023, 1:42 PMmatt
08/07/2023, 1:42 PMmatt
08/07/2023, 1:43 PMmatt
08/07/2023, 1:43 PMbastelfreak
08/07/2023, 1:43 PMmatt
08/07/2023, 1:43 PMmatt
08/07/2023, 1:44 PMSlackbot
08/07/2023, 2:54 PMjhoblitt
08/07/2023, 5:27 PMpuppet agent -t
in a loop until the node fully converges?Slackbot
08/07/2023, 5:31 PMvchepkov
08/07/2023, 5:32 PMSushant Karpe
08/07/2023, 5:45 PMbastelfreak
08/07/2023, 5:50 PM