-----> Starting Kitchen (v1.6.0)
D [kitchen::driver::docker command] BEGIN (sudo -E docker >> /dev/null 2>&1)
D [kitchen::driver::docker command] END (0m0.02s)
-----> Converging <default-centos-67>...
$$$$$$ Running legacy converge for 'Docker' Driver
Preparing files for transfer
D Creating local sandbox in /tmp/default-centos-67-sandbox-20160325-10833-gm6cws
D Creating local sandbox in /tmp/default-centos-67-sandbox-20160325-10833-gm6cws
Preparing playbook
D Copying playbook from site.yml to /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/site.yml
Preparing inventory
Preparing modules
nothing to do for modules
Preparing roles
D Using roles from /tmp/ansible/base-project/roles
Preparing ansible.cfg file
Found existing ansible.cfg
Preparing group_vars
nothing to do for group_vars
Preparing additional_copy_path
Preparing host_vars
D Using host_vars from /tmp/ansible/base-project/host_vars
Preparing hosts file
D Using host from localhost
Preparing spec
D Using spec from spec
Preparing library plugins
nothing to do for library plugins
Preparing callback plugins
nothing to do for callback plugins
Preparing filter_plugins
nothing to do for filter_plugins
Preparing lookup_plugins
nothing to do for lookup_plugins
Finished Preparing files for transfer
Installing ansible, will try to determine platform os
Going to install ansible with:
if [ ! $(which ansible) ]; then
if [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
if ! [ grep -q 'Amazon Linux' /etc/system-release ]; then
if [ ! $(which ansible) ]; then
if ! yum repolist epel | grep -q epel; then
sudo -E rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-`rpm -E %dist | sed -n 's/.*el\([0-9]\).*/\1/p'`.noarch.rpm
fi
sudo -E yum makecache
sudo -E yum -y install ansible libselinux-python git
fi
else
if [ ! $(which ansible) ]; then
sudo -E yum-config-manager --enable epel/x86_64
sudo -E yum -y install ansible git
sudo -E alternatives --set python /usr/bin/python2.6
sudo -E yum clean all
sudo -E yum install yum-python26 -y
fi
fi
elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
if [ ! $(which ansible) ]; then
sudo -E zypper ar http://download.opensuse.org/repositories/devel:/languages:/python/SLE_12/devel:languages:python.repo
sudo -E zypper ar http://download.opensuse.org/repositories/systemsmanagement/SLE_12/systemsmanagement.repo
sudo -E zypper --gpg-auto-import-keys ref
sudo -E zypper --non-interactive install ansible
fi
else
if [ ! $(which ansible) ]; then
sudo -E apt-get update
## Install apt-utils to silence debconf warning: http://serverfault.com/q/358943/77156
sudo -E apt-get -y install apt-utils git
## Fix debconf tty warning messages
export DEBIAN_FRONTEND=noninteractive
## 13.10, 14.04 include add-apt-repository in software-properties-common
sudo -E apt-get -y install software-properties-common
## 10.04, 12.04 include add-apt-repository in
sudo -E apt-get -y install python-software-properties
## 10.04 version of add-apt-repository doesn't accept --yes
## later versions require interaction from user, so we must specify --yes
## First try with -y flag, else if it fails, try without.
## "add-apt-repository: error: no such option: -y" is returned but is ok to ignore, we just retry
sudo -E add-apt-repository -y ppa:ansible/ansible || sudo -E add-apt-repository ppa:ansible/ansible
sudo -E apt-get update
sudo -E apt-get -y install ansible
fi
fi
fi
# Check whether a command exists - returns 0 if it does, 1 if it does not
exists() {
if command -v $1 >/dev/null 2>&1
then
return 0
else
return 1
fi
}
# do_wget URL FILENAME
do_wget() {
echo "trying wget..."
wget -O "$2" "$1" 2>/tmp/stderr
# check for bad return status
test $? -ne 0 && return 1
# check for 404 or empty file
grep "ERROR 404" /tmp/stderr 2>&1 >/dev/null
if test $? -eq 0 || test ! -s "$2"; then
return 1
fi
return 0
}
# do_curl URL FILENAME
do_curl() {
echo "trying curl..."
curl -L "$1" > "$2"
# check for bad return status
[ $? -ne 0 ] && return 1
# check for bad output or empty file
grep "The specified key does not exist." "$2" 2>&1 >/dev/null
if test $? -eq 0 || test ! -s "$2"; then
return 1
fi
return 0
}
# do_fetch URL FILENAME
do_fetch() {
echo "trying fetch..."
fetch -o "$2" "$1" 2>/tmp/stderr
# check for bad return status
test $? -ne 0 && return 1
return 0
}
# do_perl URL FILENAME
do_perl() {
echo "trying perl..."
perl -e "use LWP::Simple; getprint($ARGV[0]);" "$1" > "$2"
# check for bad return status
test $? -ne 0 && return 1
# check for bad output or empty file
# grep "The specified key does not exist." "$2" 2>&1 >/dev/null
# if test $? -eq 0 || test ! -s "$2"; then
# unable_to_retrieve_package
# fi
return 0
}
# do_python URL FILENAME
do_python() {
echo "trying python..."
python -c "import sys,urllib2 ; sys.stdout.write(urllib2.urlopen(sys.argv[1]).read())" "$1" > "$2"
# check for bad return status
test $? -ne 0 && return 1
# check for bad output or empty file
#grep "The specified key does not exist." "$2" 2>&1 >/dev/null
#if test $? -eq 0 || test ! -s "$2"; then
# unable_to_retrieve_package
#fi
return 0
}
# do_download URL FILENAME
do_download() {
PATH=/opt/local/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
export PATH
echo "downloading $1"
echo " to file $2"
# we try all of these until we get success.
# perl, in particular may be present but LWP::Simple may not be installed
if exists wget; then
do_wget $1 $2 && return 0
fi
if exists curl; then
do_curl $1 $2 && return 0
fi
if exists fetch; then
do_fetch $1 $2 && return 0
fi
if exists perl; then
do_perl $1 $2 && return 0
fi
if exists python; then
do_python $1 $2 && return 0
fi
echo ">>>>>> wget, curl, fetch, perl or python not found on this instance."
return 16
}
# Fix for https://github.com/test-kitchen/busser/issues/12
if [ -h /usr/bin/ruby ]; then
L=$(readlink -f /usr/bin/ruby)
sudo -E rm /usr/bin/ruby
sudo -E ln -s $L /usr/bin/ruby
fi
if [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
if ! [ grep -q 'Amazon Linux' /etc/system-release ]; then
rhelversion6=$(cat /etc/redhat-release | grep 'release 6')
rhelversion7=$(cat /etc/redhat-release | grep 'release 7')
# For CentOS6/CentOS7/RHEL6/RHEL7 install ruby from SCL
if [ -n "$rhelversion6" ] || [ -n "$rhelversion7" ]; then
if [ ! -d "/opt/rh/ruby200" ]; then
echo "-----> Installing ruby200 SCL in CentOS6/CentOS7/RHEL6/RHEL7 to install busser to run tests"
sudo -E yum install -y centos-release-scl
sudo -E yum install -y ruby200
sudo -E yum install -y ruby200-ruby-devel
echo "-----> Enabling ruby200"
source /opt/rh/ruby200/enable
echo "/opt/rh/ruby200/root/usr/lib64" | sudo tee -a /etc/ld.so.conf
sudo -E ldconfig
sudo -E ln -sf /opt/rh/ruby200/root/usr/bin/ruby /usr/bin/ruby
sudo -E ln -sf /opt/rh/ruby200/root/usr/bin/gem /usr/bin/gem
fi
else
if [ ! $(which ruby) ]; then
sudo -E yum makecache
sudo -E yum -y install ruby ruby-devel
fi
fi
else
sudo -E yum makecache
sudo -E yum -y install ruby ruby-devel gcc
fi
elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
sudo -E zypper --gpg-auto-import-keys ref
sudo -E zypper --non-interactive install ruby ruby-devel ca-certificates ca-certificates-cacert ca-certificates-mozilla
sudo -E gem sources --add https://rubygems.org/
else
if [ ! $(which ruby) ]; then
sudo -E apt-get update
# default package selection for Debian/Ubuntu machines
PACKAGES="ruby1.9.1 ruby1.9.1-dev"
if [ "$(lsb_release -si)" = "Debian" ]; then
debvers=$(sed 's/\..*//' /etc/debian_version)
if [ $debvers -ge 8 ]; then
# this is jessie or better, where ruby1.9.1 is
# no longer in the repositories
PACKAGES="ruby ruby-dev ruby2.1 ruby2.1-dev"
fi
fi
sudo -E apt-get -y install $PACKAGES
if [ $debvers -eq 6 ]; then
# in squeeze we need to update alternatives
# for enable ruby1.9.1
ALTERNATIVES_STRING="--install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 10 --slave /usr/share/man/man1/ruby.1.gz ruby.1.gz /usr/share/man/man1/ruby1.9.1.1.gz --slave /usr/bin/erb erb /usr/bin/erb1.9.1 --slave /usr/bin/gem gem /usr/bin/gem1.9.1 --slave /usr/bin/irb irb /usr/bin/irb1.9.1 --slave /usr/bin/rake rake /usr/bin/rake1.9.1 --slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.1 --slave /usr/bin/testrb testrb /usr/bin/testrb1.9.1 --slave /usr/share/man/man1/erb.1.gz erb.1.gz /usr/share/man/man1/erb1.9.1.1.gz --slave /usr/share/man/man1/gem.1.gz gem.1.gz /usr/share/man/man1/gem1.9.1.1.gz --slave /usr/share/man/man1/irb.1.gz irb.1.gz /usr/share/man/man1/irb1.9.1.1.gz --slave /usr/share/man/man1/rake.1.gz rake.1.gz /usr/share/man/man1/rake1.9.1.1.gz --slave /usr/share/man/man1/rdoc.1.gz rdoc.1.gz /usr/share/man/man1/rdoc1.9.1.1.gz --slave /usr/share/man/man1/testrb.1.gz testrb.1.gz /usr/share/man/man1/testrb1.9.1.1.gz"
sudo -E update-alternatives $ALTERNATIVES_STRING
# need to update gem tool because gem 1.3.7 from ruby 1.9.1 is broken
sudo -E gem install rubygems-update
sudo -E /var/lib/gems/1.9.1/bin/update_rubygems
# clear local gem cache
sudo -E rm -r /home/vagrant/.gem
fi
fi
fi
D [SSH] kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen"}> (
if [ ! $(which ansible) ]; then
if [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
if ! [ grep -q 'Amazon Linux' /etc/system-release ]; then
if [ ! $(which ansible) ]; then
if ! yum repolist epel | grep -q epel; then
sudo -E rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-`rpm -E %dist | sed -n 's/.*el\([0-9]\).*/\1/p'`.noarch.rpm
fi
sudo -E yum makecache
sudo -E yum -y install ansible libselinux-python git
fi
else
if [ ! $(which ansible) ]; then
sudo -E yum-config-manager --enable epel/x86_64
sudo -E yum -y install ansible git
sudo -E alternatives --set python /usr/bin/python2.6
sudo -E yum clean all
sudo -E yum install yum-python26 -y
fi
fi
elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
if [ ! $(which ansible) ]; then
sudo -E zypper ar http://download.opensuse.org/repositories/devel:/languages:/python/SLE_12/devel:languages:python.repo
sudo -E zypper ar http://download.opensuse.org/repositories/systemsmanagement/SLE_12/systemsmanagement.repo
sudo -E zypper --gpg-auto-import-keys ref
sudo -E zypper --non-interactive install ansible
fi
else
if [ ! $(which ansible) ]; then
sudo -E apt-get update
## Install apt-utils to silence debconf warning: http://serverfault.com/q/358943/77156
sudo -E apt-get -y install apt-utils git
## Fix debconf tty warning messages
export DEBIAN_FRONTEND=noninteractive
## 13.10, 14.04 include add-apt-repository in software-properties-common
sudo -E apt-get -y install software-properties-common
## 10.04, 12.04 include add-apt-repository in
sudo -E apt-get -y install python-software-properties
## 10.04 version of add-apt-repository doesn't accept --yes
## later versions require interaction from user, so we must specify --yes
## First try with -y flag, else if it fails, try without.
## "add-apt-repository: error: no such option: -y" is returned but is ok to ignore, we just retry
sudo -E add-apt-repository -y ppa:ansible/ansible || sudo -E add-apt-repository ppa:ansible/ansible
sudo -E apt-get update
sudo -E apt-get -y install ansible
fi
fi
fi
# Check whether a command exists - returns 0 if it does, 1 if it does not
exists() {
if command -v $1 >/dev/null 2>&1
then
return 0
else
return 1
fi
}
# do_wget URL FILENAME
do_wget() {
echo "trying wget..."
wget -O "$2" "$1" 2>/tmp/stderr
# check for bad return status
test $? -ne 0 && return 1
# check for 404 or empty file
grep "ERROR 404" /tmp/stderr 2>&1 >/dev/null
if test $? -eq 0 || test ! -s "$2"; then
return 1
fi
return 0
}
# do_curl URL FILENAME
do_curl() {
echo "trying curl..."
curl -L "$1" > "$2"
# check for bad return status
[ $? -ne 0 ] && return 1
# check for bad output or empty file
grep "The specified key does not exist." "$2" 2>&1 >/dev/null
if test $? -eq 0 || test ! -s "$2"; then
return 1
fi
return 0
}
# do_fetch URL FILENAME
do_fetch() {
echo "trying fetch..."
fetch -o "$2" "$1" 2>/tmp/stderr
# check for bad return status
test $? -ne 0 && return 1
return 0
}
# do_perl URL FILENAME
do_perl() {
echo "trying perl..."
perl -e "use LWP::Simple; getprint($ARGV[0]);" "$1" > "$2"
# check for bad return status
test $? -ne 0 && return 1
# check for bad output or empty file
# grep "The specified key does not exist." "$2" 2>&1 >/dev/null
# if test $? -eq 0 || test ! -s "$2"; then
# unable_to_retrieve_package
# fi
return 0
}
# do_python URL FILENAME
do_python() {
echo "trying python..."
python -c "import sys,urllib2 ; sys.stdout.write(urllib2.urlopen(sys.argv[1]).read())" "$1" > "$2"
# check for bad return status
test $? -ne 0 && return 1
# check for bad output or empty file
#grep "The specified key does not exist." "$2" 2>&1 >/dev/null
#if test $? -eq 0 || test ! -s "$2"; then
# unable_to_retrieve_package
#fi
return 0
}
# do_download URL FILENAME
do_download() {
PATH=/opt/local/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
export PATH
echo "downloading $1"
echo " to file $2"
# we try all of these until we get success.
# perl, in particular may be present but LWP::Simple may not be installed
if exists wget; then
do_wget $1 $2 && return 0
fi
if exists curl; then
do_curl $1 $2 && return 0
fi
if exists fetch; then
do_fetch $1 $2 && return 0
fi
if exists perl; then
do_perl $1 $2 && return 0
fi
if exists python; then
do_python $1 $2 && return 0
fi
echo ">>>>>> wget, curl, fetch, perl or python not found on this instance."
return 16
}
# Fix for https://github.com/test-kitchen/busser/issues/12
if [ -h /usr/bin/ruby ]; then
L=$(readlink -f /usr/bin/ruby)
sudo -E rm /usr/bin/ruby
sudo -E ln -s $L /usr/bin/ruby
fi
if [ -f /etc/centos-release ] || [ -f /etc/redhat-release ]; then
if ! [ grep -q 'Amazon Linux' /etc/system-release ]; then
rhelversion6=$(cat /etc/redhat-release | grep 'release 6')
rhelversion7=$(cat /etc/redhat-release | grep 'release 7')
# For CentOS6/CentOS7/RHEL6/RHEL7 install ruby from SCL
if [ -n "$rhelversion6" ] || [ -n "$rhelversion7" ]; then
if [ ! -d "/opt/rh/ruby200" ]; then
echo "-----> Installing ruby200 SCL in CentOS6/CentOS7/RHEL6/RHEL7 to install busser to run tests"
sudo -E yum install -y centos-release-scl
sudo -E yum install -y ruby200
sudo -E yum install -y ruby200-ruby-devel
echo "-----> Enabling ruby200"
source /opt/rh/ruby200/enable
echo "/opt/rh/ruby200/root/usr/lib64" | sudo tee -a /etc/ld.so.conf
sudo -E ldconfig
sudo -E ln -sf /opt/rh/ruby200/root/usr/bin/ruby /usr/bin/ruby
sudo -E ln -sf /opt/rh/ruby200/root/usr/bin/gem /usr/bin/gem
fi
else
if [ ! $(which ruby) ]; then
sudo -E yum makecache
sudo -E yum -y install ruby ruby-devel
fi
fi
else
sudo -E yum makecache
sudo -E yum -y install ruby ruby-devel gcc
fi
elif [ -f /etc/SuSE-release ] || [ -f /etc/SUSE-brand ]; then
sudo -E zypper --gpg-auto-import-keys ref
sudo -E zypper --non-interactive install ruby ruby-devel ca-certificates ca-certificates-cacert ca-certificates-mozilla
sudo -E gem sources --add https://rubygems.org/
else
if [ ! $(which ruby) ]; then
sudo -E apt-get update
# default package selection for Debian/Ubuntu machines
PACKAGES="ruby1.9.1 ruby1.9.1-dev"
if [ "$(lsb_release -si)" = "Debian" ]; then
debvers=$(sed 's/\..*//' /etc/debian_version)
if [ $debvers -ge 8 ]; then
# this is jessie or better, where ruby1.9.1 is
# no longer in the repositories
PACKAGES="ruby ruby-dev ruby2.1 ruby2.1-dev"
fi
fi
sudo -E apt-get -y install $PACKAGES
if [ $debvers -eq 6 ]; then
# in squeeze we need to update alternatives
# for enable ruby1.9.1
ALTERNATIVES_STRING="--install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 10 --slave /usr/share/man/man1/ruby.1.gz ruby.1.gz /usr/share/man/man1/ruby1.9.1.1.gz --slave /usr/bin/erb erb /usr/bin/erb1.9.1 --slave /usr/bin/gem gem /usr/bin/gem1.9.1 --slave /usr/bin/irb irb /usr/bin/irb1.9.1 --slave /usr/bin/rake rake /usr/bin/rake1.9.1 --slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.1 --slave /usr/bin/testrb testrb /usr/bin/testrb1.9.1 --slave /usr/share/man/man1/erb.1.gz erb.1.gz /usr/share/man/man1/erb1.9.1.1.gz --slave /usr/share/man/man1/gem.1.gz gem.1.gz /usr/share/man/man1/gem1.9.1.1.gz --slave /usr/share/man/man1/irb.1.gz irb.1.gz /usr/share/man/man1/irb1.9.1.1.gz --slave /usr/share/man/man1/rake.1.gz rake.1.gz /usr/share/man/man1/rake1.9.1.1.gz --slave /usr/share/man/man1/rdoc.1.gz rdoc.1.gz /usr/share/man/man1/rdoc1.9.1.1.gz --slave /usr/share/man/man1/testrb.1.gz testrb.1.gz /usr/share/man/man1/testrb1.9.1.1.gz"
sudo -E update-alternatives $ALTERNATIVES_STRING
# need to update gem tool because gem 1.3.7 from ruby 1.9.1 is broken
sudo -E gem install rubygems-update
sudo -E /var/lib/gems/1.9.1/bin/update_rubygems
# clear local gem cache
sudo -E rm -r /home/vagrant/.gem
fi
fi
fi
)
D [SSH] opening connection to kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen"}>
bash: line 181: [: too many arguments
D sudo -E rm -rf /tmp/kitchen/modules /tmp/kitchen/roles /tmp/kitchen/group_vars /tmp/kitchen/host_vars; mkdir -p /tmp/kitchen
D [SSH] kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen", :user=>"kitchen"}> (sudo -E rm -rf /tmp/kitchen/modules /tmp/kitchen/roles /tmp/kitchen/group_vars /tmp/kitchen/host_vars; mkdir -p /tmp/kitchen)
Transferring files to <default-centos-67>
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/spec/spec_helper.rb (955 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/site.yml (119 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/ansible.cfg (144 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/defaults/main.yml (84 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/vars/main.yml (188 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/handlers/main.yml (4 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/tasks/main.yml (61 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/tasks/install_php.yml (281 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/tasks/change_timezone.yml (414 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/php/meta/main.yml (4 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/defaults/main.yml (56 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/vars/main.yml (154 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/handlers/restart_apache.yml (274 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/handlers/main.yml (33 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/tasks/update_cache.yml (111 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/tasks/main.yml (123 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/tasks/configure_apache.yml (4 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/apache/tasks/install_apache.yml (263 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/spec/common_spec.rb (244 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/files/resolv.conf (19 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/files/resolv.conf.custom (38 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen/logs/kitchen.log (704 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen/logs/default-ubuntu-1404.log (237845 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen/default-ubuntu-1404.yml (231 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen/docker_id_rsa.pub (399 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen/docker_id_rsa (1679 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/defaults/main.yml (166 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/Gemfile.lock (873 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/.kitchen.yml (662 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/templates/resolv.conf.j2 (28 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/chefignore (9 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/vars/main.yml (3 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/vars/common.yml (578 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/Gemfile (93 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/handlers/main.yml (3 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/debug.yml (419 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/update_cache.yml (108 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/main.yml (246 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/resolvconf.yml (137 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/delete_users.yml (112 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/disable_selinux.yml (187 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/create_users.yml (203 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/roles/common/tasks/install_packages.yml (370 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/host_vars/176.58.32.99 (427 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/host_vars/176.58.32.112.yml (0 bytes)
D Uploaded /tmp/default-centos-67-sandbox-20160325-10833-gm6cws/hosts (57 bytes)
D Transfer complete
D sudo -E bash -c '[ -d /etc/ansible ] || mkdir /etc/ansible' && sudo -E cp /tmp/kitchen/ansible.cfg /etc/ansible && sudo -E cp -r /tmp/kitchen/group_vars /etc/ansible/. && sudo -E cp -r /tmp/kitchen/host_vars /etc/ansible/.
D [SSH] kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen", :user=>"kitchen"}> (sudo -E bash -c '[ -d /etc/ansible ] || mkdir /etc/ansible' && sudo -E cp /tmp/kitchen/ansible.cfg /etc/ansible && sudo -E cp -r /tmp/kitchen/group_vars /etc/ansible/. && sudo -E cp -r /tmp/kitchen/host_vars /etc/ansible/.)
D Setting roles_path inside VM to /tmp/kitchen/roles
D Setting roles_path inside VM to /tmp/kitchen/roles
D
Going to invoke ansible-playbook with: ANSIBLE_ROLES_PATH=/tmp/kitchen/roles sudo -Es ansible-playbook -i /tmp/kitchen/hosts -c local -M /tmp/kitchen/modules /tmp/kitchen/site.yml
D [SSH] kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen", :user=>"kitchen"}> (ANSIBLE_ROLES_PATH=/tmp/kitchen/roles sudo -Es ansible-playbook -i /tmp/kitchen/hosts -c local -M /tmp/kitchen/modules /tmp/kitchen/site.yml)
PLAY [Ansible-common-test] ****************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [common | install {{ item }} pkgs] **************************************
skipping: [localhost]
TASK: [common | install {{ item }} packages] **********************************
ok: [localhost] => (item=curl)
TASK: [common | Create admin users] *******************************************
skipping: [localhost]
PLAY RECAP ********************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0
D Cleaning up local sandbox in /tmp/default-centos-67-sandbox-20160325-10833-gm6cws
Finished converging <default-centos-67> (0m3.11s).
D [SSH] shutting previous connection kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen", :user=>"kitchen"}>
D [SSH] closing connection to kitchen@localhost<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>32950, :compression=>true, :compression_level=>6, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :keys_only=>true, :keys=>["/tmp/ansible/base-project/.kitchen/docker_id_rsa"], :auth_methods=>["publickey"], :password=>"kitchen", :user=>"kitchen"}>
-----> Kitchen is finished. (0m3.17s)