Skip to content

Instantly share code, notes, and snippets.

@yoplait
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoplait/6ff32f43c95bdaa65e0b to your computer and use it in GitHub Desktop.
Save yoplait/6ff32f43c95bdaa65e0b to your computer and use it in GitHub Desktop.
bootstrap and show nodes
knife bootstrap xxx \
--ssh-user root \
--identity-file ~/.ssh/secret \
--node-name FE1 \
--environment production \
--run-list 'role[base2],role[yet_server]'
knife bootstrap xxx \
--ssh-user root \
--identity-file ~/.ssh/secret \
--node-name lbl \
--environment production \
--run-list 'role[base2],role[yet_lb]'
juanperez@perezpardojc ~> knife node show FE1
Node Name: FE1
Environment: production
FQDN: FE1
IP: xxx
Run List: role[base2], role[yet_server]
Roles: base2, yet_server
Recipes: apt, chef-client, bootstrap, sudo, nginx, yet_site, apt::default, chef-client::default, chef-client::service, chef-client::init_service, bootstrap::default, users::default, users::sysadmins, sudo::default, nginx::default, nginx::package, nginx::ohai_plugin, ohai::default, nginx::commons, nginx::commons_dir, nginx::commons_script, nginx::commons_conf, yet_site::default
Platform: ubuntu 14.04
Tags:
juanperez@perezpardojc ~> knife node show lbl
Node Name: lbl
Environment: production
FQDN: HA1
IP: yyy
Run List: role[base2], role[yet_lb]
Roles: base2, yet_lb
Recipes: apt, chef-client, bootstrap, sudo, haproxy::app_lb, apt::default, chef-client::default, chef-client::service, chef-client::init_service, bootstrap::default, users::default, users::sysadmins, sudo::default, haproxy::install_package
Platform: ubuntu 14.04
Tags:
juanperez@perezpardojc ~>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment