How to distribute configuration files via Chef to all NetWitness nodes?
I would like to centrally manage nslcd.conf for centralized LDAP authentication for all my NetWitness hosts. Before 11.0 I would have had the competency to do this with Puppet, but with the switch to Chef I no longer know what is needed to accomplish this.
What are the steps required to add a new recipe to Chef to distribute a copy of my nslcd.conf from the NetWitness Server to all core hosts?
- Community Thread
- configuration management
- Forum Thread
- RSA NetWitness
- RSA NetWitness Platform
the command you want to use is salt-cp
salt-cp '*' file.copy /root/hello.txt /root/hello.txt
this copies the file hello.txt from /root/hello.txt on Node0 (head) to all the other nodes.
when run it looks like this
if you wanted to see what those ID were in terms of system hostname you could do the following
salt '*' cmd.run 'hostname ; echo' 2>&-
which gives you
or install a package on all nodes
salt '*' pkg.install man