class Kitchen::Provisioner::Ansible::Os::Fedora
Public Instance Methods
Source
# File lib/kitchen/provisioner/ansible/os/fedora.rb, line 46 def ansible_package_name if @config[:ansible_version] == 'latest' || @config[:ansible_version] == nil "ansible" else "ansible#{@config[:ansible_version][0..2]}-#{@config[:ansible_version]}" end end
Source
# File lib/kitchen/provisioner/ansible/os/fedora.rb, line 25 def install_command <<-INSTALL if [ ! $(which ansible) ]; then #{redhat_yum_repo} #{update_packages_command} FEDORA_RELEASE=$(rpm --query --queryformat="%{VERSION}" --file /etc/fedora-release) if [ ${FEDORA_RELEASE} -le 28 ]; then #{sudo_env('dnf')} -y install #{ansible_package_name} libselinux-python git python2-dnf else #{sudo_env('dnf')} -y install #{ansible_package_name} python3-libselinux git python3-dnf fi fi INSTALL end
Source
# File lib/kitchen/provisioner/ansible/os/fedora.rb, line 54 def redhat_yum_repo if @config[:ansible_yum_repo] <<-INSTALL #{sudo_env('rpm')} -ivh #{@config[:ansible_yum_repo]} INSTALL end end
Source
# File lib/kitchen/provisioner/ansible/os/fedora.rb, line 42 def update_packages_command @config[:update_package_repos] ? "#{sudo_env('dnf')} makecache" : nil end