I gave up putting the password on the bootstrap line as soon as I discovered that the system would allow me to enter it manually, after starting the bootstrap script. It winds up putting remote root passwords on a command line that can be read by a local “ps” command. Worse is when you save the bootstrap command in a script and wind up with the password saved, in plain text, in your source control system.
From: Eric Feldhusen [firstname.lastname@example.org]
Sent: Thursday, November 14, 2013 4:06 PM
Subject: [chef] Setting a node name via knife bootstrap
If the server has a “weird” hostname and I want to set the node name, is the knife bootstrap with the -N option how I do that?
knife bootstrap -x user -P password --sudo -N desired_node_name ‘some recipes’
Just wanted to check before I goof up something on a very remote server.