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?
For example…
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.
Eric Feldhusen
everything should be fine
check Nathen's module 3 about Chef fundamentals
https://learnchef.opscode.com/screencasts/fundi-webinar-week-3/
On Thu, Nov 14, 2013 at 10:06 PM, Eric Feldhusen <efeldhusen.lists@gmail.com
wrote:
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?
For example..
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.
Eric Feldhusen
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.
Nico Kadel-Garcia
From: Eric Feldhusen [efeldhusen.lists@gmail.com]
Sent: Thursday, November 14, 2013 4:06 PM
To: chef@lists.opscode.com
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?
For example…
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.
Eric Feldhusen