neillturner / ansible_repo Goto Github PK
View Code? Open in Web Editor NEWansible_repo for testing ansible using test kitchen
License: Other
ansible_repo for testing ansible using test kitchen
License: Other
I followed the README.md, but only got past kitchen list
.
(~/Development/eruditio/ansible/kitchen/ansible_repo) master {azazel}11:45am] kitchen create ansible-centos-70 -l debug
-----> Starting Kitchen (v1.16.0)
-----> Creating <ansible-centos-70>...
Kitchen-sshGzip does not start your server '52.16.196.201' but will look for an ssh connection with user 'centos'
Waiting for 52.16.196.201:22...
Doesn't appear that the .kitchen.yml
is defined in such a way as to use kitchen-vagrant
... or am I missing something?
Thanks!
How to run "ansiblespecs" against default Centos-6.x platform? I get errors for the Ruby version being too old.
My .kitchen.yml:
driver:
name: vagrant
provisioner:
hosts: test-kitchen
name: ansible_playbook
playbook: test/integration/default.yml
require_chef_for_busser: false
require_ruby_for_busser: true
ansible_verbose: true
ansible_verbosity: 3
- name: centos-6.7
verifier:
ruby_bindir: '/usr/bin'
suites:
- name: ansible-roles
is failing on kitchen verify :
-----> Starting Kitchen (v1.4.2)
-----> Setting up <ansible-roles-centos-67>...
Finished setting up <ansible-roles-centos-67> (0m0.00s).
-----> Verifying <ansible-roles-centos-67>...
Preparing files for transfer
-----> Busser installation detected (busser)
Installing Busser plugins: busser-ansiblespec
Plugin ansiblespec already installed
Removing /tmp/verifier/suites/ansiblespec
Transferring files to <ansible-roles-centos-67>
-----> Running ansiblespec test suite
-----> Installing Serverspec..
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/installer.rb:388:in `ensure_required_ruby_version_met': net-ssh requires Ruby version >= 2.0. (Gem::InstallError)
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/installer.rb:156:in `install'
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/dependency_installer.rb:297:in `block in install'
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/dependency_installer.rb:270:in `each'
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/dependency_installer.rb:270:in `each_with_index'
from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/dependency_installer.rb:270:in `install'
from /tmp/verifier/gems/gems/busser-0.7.1/lib/busser/rubygems.rb:44:in `install_gem'
from /tmp/verifier/gems/gems/busser-0.7.1/lib/busser/helpers.rb:57:in `install_gem'
from /tmp/verifier/gems/gems/busser-ansiblespec-0.5.9/lib/busser/runner_plugin/ansiblespec.rb:60:in `install_serverspec'
from /tmp/verifier/gems/gems/busser-ansiblespec-0.5.9/lib/busser/runner_plugin/ansiblespec.rb:33:in `test'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/command.rb:27:in `run'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:126:in `invoke_command'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:133:in `block in invoke_all'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:133:in `each'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:133:in `map'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:133:in `invoke_all'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/group.rb:232:in `dispatch'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:115:in `invoke'
from /tmp/verifier/gems/gems/busser-0.7.1/lib/busser/command/test.rb:43:in `block in perform'
from /tmp/verifier/gems/gems/busser-0.7.1/lib/busser/command/test.rb:35:in `each'
from /tmp/verifier/gems/gems/busser-0.7.1/lib/busser/command/test.rb:35:in `perform'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/command.rb:27:in `run'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:126:in `invoke_command'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:133:in `block in invoke_all'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:133:in `each'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:133:in `map'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:133:in `invoke_all'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/group.rb:232:in `dispatch'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:115:in `invoke'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor.rb:40:in `block in register'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/command.rb:27:in `run'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/invocation.rb:126:in `invoke_command'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor.rb:359:in `dispatch'
from /tmp/verifier/gems/gems/thor-0.19.0/lib/thor/base.rb:440:in `start'
from /tmp/verifier/gems/gems/busser-0.7.1/bin/busser:8:in `<top (required)>'
from /tmp/verifier/gems/bin/busser:23:in `load'
from /tmp/verifier/gems/bin/busser:23:in `<main>'
A 404 on http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
I, [2016-08-04T09:28:17.837294 #16044] INFO -- ansible-centos-72: TASK [selinux : Download EPEL Repo - Centos/RHEL 7] ****************************
I, [2016-08-04T09:28:17.837294 #16044] INFO -- ansible-centos-72: �[1;30mtask path: /tmp/kitchen/roles/selinux/tasks/main.yml:12�[0m
I, [2016-08-04T09:28:17.943950 #16044] INFO -- ansible-centos-72: �[0;34m<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root�[0m
I, [2016-08-04T09:28:17.944951 #16044] INFO -- ansible-centos-72: �[0;34m<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1470328096.01-86150753695114 `" && echo ansible-tmp-1470328096.01-86150753695114="` echo $HOME/.ansible/tmp/ansible-tmp-1470328096.01-86150753695114 `" ) && sleep 0'�[0m
I, [2016-08-04T09:28:17.948954 #16044] INFO -- ansible-centos-72: �[0;34m<localhost> PUT /tmp/tmpwGeyey TO /root/.ansible/tmp/ansible-tmp-1470328096.01-86150753695114/get_url�[0m
I, [2016-08-04T09:28:17.948954 #16044] INFO -- ansible-centos-72: �[0;34m<localhost> EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1470328096.01-86150753695114/get_url; rm -rf "/root/.ansible/tmp/ansible-tmp-1470328096.01-86150753695114/" > /dev/null 2>&1 && sleep 0'�[0m
I, [2016-08-04T09:28:18.209882 #16044] INFO -- ansible-centos-72: �[0;31mfatal: [localhost]: FAILED! => {"changed": false, "dest": "/tmp/epel-release-7-6.noarch.rpm", "failed": true, "invocation": {"module_args": {"backup": false, "checksum": "", "content": null, "delimiter": null, "dest": "/tmp/epel-release-7-6.noarch.rpm", "directory_mode": null, "follow": false, "force": false, "force_basic_auth": false, "group": null, "headers": null, "http_agent": "ansible-httpget", "mode": null, "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "sha256sum": "", "src": null, "timeout": 10, "tmp_dest": "", "url": "http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm", "url_password": null, "url_username": null, "use_proxy": true, "validate_certs": true}, "module_name": "get_url"}, "msg": "Request failed", "response": "HTTP Error 404: Not Found", "state": "absent", "status_code": 404, "url": "http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm"}�[0m
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.