Class: Kitchen::Provisioner::Ansible::Os::Alpine
- Inherits:
-
Kitchen::Provisioner::Ansible::Os
- Object
- Kitchen::Provisioner::Ansible::Os
- Kitchen::Provisioner::Ansible::Os::Alpine
- Defined in:
- lib/kitchen/provisioner/ansible/os/alpine.rb
Instance Attribute Summary
Attributes inherited from Kitchen::Provisioner::Ansible::Os
Instance Method Summary collapse
Methods inherited from Kitchen::Provisioner::Ansible::Os
#initialize, make, #sudo, #sudo_env
Constructor Details
This class inherits a constructor from Kitchen::Provisioner::Ansible::Os
Instance Method Details
#install_command ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/kitchen/provisioner/ansible/os/alpine.rb', line 29 def install_command <<-INSTALL if [ ! $(which ansible) ]; then #{update_packages_command} #{sudo_env('apk')} add ansible git fi INSTALL end |
#update_packages_command ⇒ Object
25 26 27 |
# File 'lib/kitchen/provisioner/ansible/os/alpine.rb', line 25 def update_packages_command @config[:update_package_repos] ? "#{sudo_env('apk')} update" : nil end |