-
Notifications
You must be signed in to change notification settings - Fork 163
Machine Actions
The finite state machine for machine actions:
:allocate
go get a receipt that says someone will give you some ssh
:ready
keep showing them the receipt till they let you ssh in
:setup
ssh in and install chef-client, copy over chef-related data
:converge_only
run chef-client, but only if :ready
:converge
default and alias for doing all of the above in order
:stop
power off? How do I get it back on again?
When writing a machine driver, you'll need to implement:
allocate_machine()
should update and return a machine_spec with the reciept
ready_machine()
should look at the machine_spec reciept, and wait for the ssh connection, then return a Chef::Provisioning::Machine
connect_to_machine()
???
start_machine()
?? power on hardware via ipmi if not already on
stop_machine()
?? power off hardware via ipmi
destroy_machine()
remove active model?
transport_for()
not sure what this should return
These functions coordinate using the following parameters:
action_handler
need to find classes for these
machine_spec
?
machine_options
?
- Home
- Configuration
- Drivers
- [AWS](AWS Driver)
- [Azure](Azure Driver)
- [Docker](Docker Driver)
- [Hanlon](Hanlon Driver)
- [Fog](Fog Driver)
- [Vagrant](Vagrant Driver)
- Development
- [MachineActions] (Machine Actions)