4 ms·
You don't even need to do that. You can type `knife solo prepare root@my-server` and it will install chef-solo on that machine. Then type `knife solo cook root@
by andyhmltn 13y ago
You don't even need to do that. You can type `knife solo prepare root@my-server` and it will install chef-solo on that machine. Then type `knife solo cook root@my-server` and you're good to go.
- rurounijones 13y agoWell damn, I have been doing it wrong. That is awesome to know though. I wonder if anyone has done a http://todomvc.com/ http://todomvc.com/ equivalent for cfengine, puppet, chef, salt, ansible etc. Something like a simple webserver running Apache with mod_xsendfile, Passenger, Ruby 2.0.0, postgreSQL and a few firewall tweaks (why yes, I AM mainly a ruby developer, why do you ask?)
- westurner 13y agohttps://github.com/devstructure/blueprint https://github.com/devstructure/blueprint [generates] configuration sets for "Puppet or Chef or CFEngine 3." https://en.wikipedia.org/wiki/Comparison_of_open-source_configuration_management_software https://en.wikipedia.org/wiki/Comparison_of_open-source_conf... https://ops-school.readthedocs.org/en/latest/config_management.html https://ops-school.readthedocs.org/en/latest/config_manageme...
- kawsper 13y agoIs there a way to have multiple "roles" while using those commands? I mean all my servers are 70% identical and have the same base, and the DB have a few different packages than the app-servers for an example. I would hate to have two different chef-solo installations that basically does the same 70% of the time.
- andyhmltn 13y agoI think -r allows you to select roles IIRC. Not sure if it allows for multiple roles, but you can include roles within roles so you can make a role called 'web' that includes 'db','webserver' etc
- Axsuul 13y ago`knife solo bootstrap root@my-server` will run both prepare and cook commands.
- andyhmltn 13y agoAwesome! Thanks for that