Class: Kitchen::Provisioner::Ansible::Os::Alpine

Inherits:
Kitchen::Provisioner::Ansible::Os show all
Defined in:
lib/kitchen/provisioner/ansible/os/alpine.rb

Instance Attribute Summary

Attributes inherited from Kitchen::Provisioner::Ansible::Os

#name

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_commandObject



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_commandObject



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