Have you ever wondered how to run a kitchen.ci test against an amazonlinux image?
Wonder no more. This is an example .kitchen.yml that might help you.
---
driver:
name: docker
platforms:
- name: amazonlinux
driver_config:
platform: centos
image: amazonlinux:latest # This will pull the latest amazonlinux image from dockerHub
provision_command: # Amazonlinux obviously needs to have ansible to run an ansible task
- "yum -y install epel-release"
- "yum --enablerepo=epel -y install ansible"
provisioner:
name: ansible_playbook
ansible_verbose: true
ansible_verbosity: 2
ansible_diff: true
hosts: test-kitchen
suites:
- name: default
And that is all. It is as easy as that.
Happy testing!
Schreibe einen Kommentar
Du musst angemeldet sein, um einen Kommentar abzugeben.