All Questions
6 questions
0
votes
1
answer
696
views
Puppet Bolt not Passing Parameters into Bash Script Running as Task
When trying to use Puppet Bolt to run Bash scripts on remote machines, I kept having scripts fail to work properly because they weren't receiving the parameters passed by the Bolt command. If a ran a ...
0
votes
0
answers
68
views
Unexpected Bash Output [duplicate]
Can someone explain why I got error messages related to puppet when I type foo at the bash prompt as shown below:
[root@centos8 ~]# foo
bash: foo: command not found...
Failed to search for file: ...
-1
votes
4
answers
2k
views
How should I use quoting with echo in Puppet?
I'm trying to use echo inside a Puppet rule to add a line to .bashrc, but I can't seem to get the quoting right.
'/usr/bin/echo -E PS1=\"[\t--------------------------------------------------------\n-\...
1
vote
1
answer
1k
views
Unable to run the script in cron via manifest
I am trying to deploy a script to agents and run the script using cron every hour. When I am running puppet agent -t I am getting error:
Error 400 on SERVER: Invalid parameter path on Cron[...
1
vote
1
answer
600
views
"Pipe" command to new bash shell?
I want to add my private key to the ssh-agent and I'm following these instructions. According to this the command
ssh-agent bash
spawns a ssh-agent bash and I can add my key afterwards using ssh-...
1
vote
2
answers
591
views
Ensure /etc/export contains rule using bash
What's a working example of modifying /etc/export using bash?
Example:
I want to ensure the following rule is present and valid:
/export/home 2400:123::/32(rw,no_root_squash)
And it should:
Add ...