Class: Kitchen::Provisioner::YansiblePusher
- Inherits:
-
Base
- Object
- Base
- Kitchen::Provisioner::YansiblePusher
- Defined in:
- lib/kitchen/provisioner/yansible_pusher.rb
Overview
YansiblePusher is a Kitchen provisioner plugin for Ansible. It allows you to use Ansible playbooks to provision test instances in Test Kitchen.
Instance Attribute Summary collapse
-
#sandbox_path ⇒ Object
readonly
Returns the value of attribute sandbox_path.
Instance Method Summary collapse
Instance Attribute Details
#sandbox_path ⇒ Object (readonly)
Returns the value of attribute sandbox_path.
43 44 45 |
# File 'lib/kitchen/provisioner/yansible_pusher.rb', line 43 def sandbox_path @sandbox_path end |
Instance Method Details
#init_command ⇒ Object
50 51 52 53 |
# File 'lib/kitchen/provisioner/yansible_pusher.rb', line 50 def init_command # No initialization command needed on the remote instance nil end |
#install_command ⇒ Object
45 46 47 48 |
# File 'lib/kitchen/provisioner/yansible_pusher.rb', line 45 def install_command # No initialization command needed on the remote instance nil end |
#prepare_command ⇒ Object
55 56 57 58 |
# File 'lib/kitchen/provisioner/yansible_pusher.rb', line 55 def prepare_command # No preparation command needed on the remote instance nil end |
#run_command ⇒ Object
60 61 62 63 64 65 66 67 68 |
# File 'lib/kitchen/provisioner/yansible_pusher.rb', line 60 def run_command begin create_sandbox run_ansible ensure cleanup_sandbox end ensure_windows_exit_code if windows_instance? end |