I'm using the knife-vsphere plugin for chef to interact with our vsphere hosts.
As part of the config for the knife-vsphere plugin it seems that you have to enter a plain text password which I think seems wrong.
When I set up the users within my recipe I've previously ran the passwords through openssl passwd -1 "plainTextPassword"
to get the hash value and I set this as i'm creating the user, i'm not sure where this happens if it's on the node or if it's in knife.
Does anyone know if you can use the same hash method (or something else) to store my password locally to let me login to vsphere or do I have to leave it as plain text?
My current knife rb file is represented below:
log_level :info
log_location STDOUT
node_name 'a-user'
client_key 'C:/Users/user/.chef/a-user.pem'
validation_client_name 'chef-validator'
validation_key 'C:/Users/user/.chef/chef-validator.pem'
chef_server_url 'https://ourChefHost01:443'
syntax_check_cache_path 'C:/Users/user/.chef/syntax_check_cache'
cookbook_path [ 'C:/Work/chef/chef-repo/cookbooks' ]
ssl_verify_mode :verify_peer
knife[:vsphere_host]="VHost"
knife[:vsphere_user]="User"
knife[:vsphere_pass]="IWantThisToBeAHashIfPossiblePlease_ThanksInAdvance!"
knife[:vsphere_dc]="Region_1"
knife[:vsphere_insecure]=false