Skip to content

Instantly share code, notes, and snippets.

kitchen test
-----> Starting Kitchen (v1.13.2)
-----> Cleaning up any prior instances of <default-ubuntu-1404>
-----> Destroying <default-ubuntu-1404>...
Finished destroying <default-ubuntu-1404> (0m0.00s).
-----> Testing <default-ubuntu-1404>
-----> Creating <default-ubuntu-1404>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Machine not provisioned because `--no-provision` is specified.
Waiting for SSH service on 127.0.0.1:2200, retrying in 3 seconds
---
driver:
name: vagrant
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
driver:
No instances for regex `', try running `kitchen list'
Usage:
kitchen list [INSTANCE|REGEXP|all]
Options:
-b, [--bare], [--no-bare] # List the name of each instance only, one per line
-d, [--debug], [--no-debug] # [Deprecated] Please use `kitchen diagnose'
-l, [--log-level=LOG_LEVEL] # Set the log level (debug, info, warn, error, fatal)
Ran su -c /tmp/master.sh root returned 1
Resource Declaration:
---------------------
# In /tmp/kitchen/cache/cookbooks/hwk/recipes/masterslave.rb
18: execute 'run the bash script' do
19: command "su -c /tmp/master.sh root"
20: end
Recipe: hwk::masterslave
* cookbook_file[/etc/mysql/my.cnf] action create (up to date)
* execute[refresh mysql] action run
- execute sudo service mysql restart
* cookbook_file[/tmp/master.sh] action create
- update content in file /tmp/master.sh from 4bcd5c to bfb0e9
--- /tmp/master.sh 2016-12-04 09:15:24.164434654 +0000
+++ /tmp/.chef-master20161204-23389-xen7ra.sh 2016-12-04 09:25:05.392434654 +0000
@@ -2,8 +2,8 @@
mysql -e "FLUSH PRIVILEGES;"
---
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
driver:
name: vagrant
network:
- ["forwarded_port", {guest: 80, host: 8123}]
$ ipconfig
Windows IP Configuration
Ethernet adapter Bluetooth Network Connection 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
---
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
driver:
name: vagrant
network:
- ["forwarded_port", {guest: 80, host: 8123}]
$ kitchen create default-ubuntu-1604
-----> Starting Kitchen (v1.13.2)
-----> Creating <default-ubuntu-1604>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: You assigned a static IP ending in ".1" to this machine.
==> default: This is very often used by the router and can cause the
==> default: network to not work properly. If the network doesn't work
==> default: properly, try changing this IP.
==> default: Importing base box 'bento/ubuntu-16.04'...
==> default: Matching MAC address for NAT networking...
$ kitchen converge
-----> Starting Kitchen (v1.13.2)
-----> Converging <default-ubuntu-1404>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 5.1.0...
Removing non-cookbook files before transfer
Preparing solo.rb
-----> Chef Omnibus installation detected (install only if missing)
Transferring files to <default-ubuntu-1404>