V
V
Valeriy Solovyov2015-10-02 04:22:00
Continuous Integration
Valeriy Solovyov, 2015-10-02 04:22:00

CI for opensource ansible playbooks, where can I get it?

Hello everyone,
I'm making an open source playbook for ansible (for testing purposes).
Started using Travis CI for testing. For checks, I made docker containers https://hub.docker.com/r/weldpua2008/docker-ansible/:

  • centos
  • debian
  • fedora
  • opens use
  • ubuntu
  • gentoo

When it came time to test playbooks, I got into a puddle:
Ansible can't make friends with SystemD in CentOS 7. Moreover, I can't run SystemD services in docker:
https://github.com/weldpua2008/ansible-nginx/blob/...
[[email protected] /]# systemctl enable nginx.service
[[email protected] /]# systemctl -t service -a
Failed to get D-Bus connection: No connection to service manager.

Which led me to https://github.com/docker/docker/issues/7459
I managed to beat the ansible bug ( https://github.com/ansible/ansible-modules-core/is...
OS_TYPE=fedora
OS_VERSION=22
ANSIBLE_VERSION=1.9.2
docker run --rm=true -ti -v `pwd`:/ansible-apache:rw -v /sys/fs/cgroup:/sys/fs/cgroup weldpua2008/docker -ansible:${OS_TYPE}${OS_VERSION}_v${ANSIBLE_VERSION} /bin/bash
Complete!
127.0.0.1 | FAILED >> {
"failed": true,
"msg": "no service or tool found for: rsyslog"
}

However, I still can't work with the services. Can anyone suggest a free replacement - LXC/vagrant/etc?
Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question