https://github.com/jasonheecs/docker-ansible-kitchenci
Docker images with Ansible and Kitchen CI, installed in Debian, Ubuntu and CentOS.
https://github.com/jasonheecs/docker-ansible-kitchenci
ansible docker kitchen-docker rspec test-kitchen
Last synced: 3 months ago
JSON representation
Docker images with Ansible and Kitchen CI, installed in Debian, Ubuntu and CentOS.
- Host: GitHub
- URL: https://github.com/jasonheecs/docker-ansible-kitchenci
- Owner: jasonheecs
- License: mit
- Created: 2018-06-26T09:00:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-16T05:54:44.000Z (over 5 years ago)
- Last Synced: 2025-03-22T17:24:33.976Z (3 months ago)
- Topics: ansible, docker, kitchen-docker, rspec, test-kitchen
- Language: Dockerfile
- Homepage:
- Size: 27.3 KB
- Stars: 10
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Ansible and Kitchen CI Images
[![Build Status][travis-badge]][travis-link] [![Docker Automated Build Status][docker-build-badge]][docker-hub-link]
A set of Docker images with Ansible and Kitchen CI dependencies installed, meant for easier creation and testing of Ansible playbooks with Kitchen CI. [Docker Hub link][docker-hub-link]
## Usage
To use the docker images in Kitchen CI, simply specify the image name with the relevant tag in your `.kitchen.yml` file:Example:
```yaml
---
driver:
name: docker
use_sudo: falseprovisioner:
hosts: test-kitchen
name: ansible_playbook
require_chef_for_busser: false
ansible_verbosity: 2
ansible_verbose: trueplatforms:
- name: ubuntu-18.04
driver_config:
image: jasonheecs/ansible:ubuntu-18.04
platform: ubuntu
- name: ubuntu-16.04
driver_config:
image: jasonheecs/ansible:ubuntu-16.04
platform: ubuntu
- name: ubuntu-14.04
driver_config:
image: jasonheecs/ansible:ubuntu-14.04
platform: ubuntu
- name: centos-7.0
driver_config:
image: jasonheecs/ansible:centos-7
platform: centos
- name: debian-9
driver_config:
image: jasonheecs/ansible:debian-9
platform: debian
- name: debian-8
driver_config:
image: jasonheecs/ansible:debian-8
platform: debianverifier:
name: serverspecsuites:
- name: default
verifier:
default_pattern: true
bundler_path: '/usr/local/bin'
rspec_path: '/usr/local/bin'
```## Tags
List of tags and their distros:
- jasonheecs/ansible:ubuntu-18.04
- jasonheecs/ansible:ubuntu-16.04
- jasonheecs/ansible:ubuntu-14.04
- jasonheecs/ansible:centos-7
- jasonheecs/ansible:debian-9
- jasonheecs/ansible:debian-8## Testing
Testing is done via Rspec and [Hadolint](https://github.com/hadolint/hadolint).To run Rspec tests:
```bash
gem install bundler
bundle install
bundle exec rspec spec/
#e.g: bundle exec rspec spec/ubuntu_bionic_spec.rb
```To run linting tests on the Dockerfiles, make sure Hadolint installed and:
```bash
hadolint ./ubuntu18.04/Dockerfile
```Refer to the [travis.yml](.travis.yml) file and [Travis build logs][travis-link] for details on the automated tests and expected outputs.
## License
MIT[docker-build-badge]: https://img.shields.io/docker/build/jasonheecs/ansible.svg
[docker-hub-link]: https://hub.docker.com/r/jasonheecs/ansible/
[travis-badge]: https://travis-ci.com/jasonheecs/docker-ansible-kitchenci.svg?branch=master
[travis-link]: https://travis-ci.com/jasonheecs/docker-ansible-kitchenci