My question is regarding BootStrapping and running Chef builds on a given node.
Say I bootstrapped a machine using the following command:
knife bootstrap <FQDN or IP Address> -x root -r "recipe[myRecipe]" --sudo -E environmentFile
Questions:
- Is it a good practice to do consequent deployment using the above
knife bootstrapcommand? Is using the following command better over
knife bootstrap:knife ssh <FQDN or IP Address> 'sudo chef-client' --manual-list "recipe[myRecipe]" -x root -E environmentFile?