This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running pre-create checks... | |
Error with pre-create check: "This computer is running Hyper-V. VirtualBox won't | |
boot a 64bits VM when Hyper-V is activated. Either use Hyper-V as a driver, or | |
disable the Hyper-V hypervisor. (To skip this check, use --virtualbox-no-vtx-che | |
ck)" | |
Looks like something went wrong in step 'Checking if machine default exists'... | |
Press any key to continue... | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running pre-create checks... | |
Error with pre-create check: "This computer is running Hyper-V. VirtualBox won't | |
boot a 64bits VM when Hyper-V is activated. Either use Hyper-V as a driver, or | |
disable the Hyper-V hypervisor. (To skip this check, use --virtualbox-no-vtx-che | |
ck)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby_block "insert_line" do | |
block do | |
file=Chef::Util::FileEdit.new("/etc/httpd/conf/httpd.conf") | |
#file.insert_line_if_no_match("/Listen 8005/","Listen 8005") | |
file.search_file_replace_line("/Listen 80/","Listen 8005") | |
file.search_file_replace_line("/<NameVirtualHost *:80>/","<NameVirtualHost *:8005>") | |
file.search_file_replace_line("/<VirtualHost *:80>/","<VirtualHost *:8005>") | |
file.insert_line_if_no_match("/Listen 8006/","Listen 8006") | |
#file.search_file_delete("/Listen 80/") | |
file.write_file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ kitchen create | |
-----> Starting Kitchen (v1.13.2) | |
-----> Creating <default-ubuntu-1404>... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'bento/ubuntu-14.04'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Checking if box 'bento/ubuntu-14.04' is up to date... | |
==> default: Setting the name of the VM: kitchen-apache-default-ubuntu-14 04_default_1481606082711_75277 | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c:\chef-repo\apacjee>kitchen create default-ubuntu-1404 | |
-----> Starting Kitchen (v1.13.2) | |
-----> Creating <default-ubuntu-1404>... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'bento/ubuntu-14.04'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Checking if box 'bento/ubuntu-14.04' is up to date... | |
==> default: Setting the name of the VM: kitchen-apacjee-default-ubuntu-1 | |
404_default_1481468128096_88388 | |
==> default: Clearing any previously set network interfaces... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\vag-repo\prec32>vagrant up | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Checking if box 'hashicorp/precise32' is up to date... | |
==> default: Machine already provisioned. Run `vagrant provision` or use the `-- | |
provision` | |
==> default: flag to force provisioning. Provisioners marked to run always will | |
still run. | |
C:\vag-repo\prec32>vagrant ssh | |
`ssh` executable not found in any directories in the %PATH% variable. Is an |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service "httpd” do | |
subscribes :reload, "cookbook_file[/etc/httpd/conf/httpd.conf] ” | |
end | |
cookbook_file "/etc/httpd/conf/httpd.conf" do | |
owner 'root' | |
group 'root' | |
mode '0644' | |
source 'httpd.conf' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
driver: | |
name: vagrant | |
provisioner: | |
name: chef_solo | |
platforms: | |
- name: ubuntu-14.04 | |
- name: centos-7.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\chef-repo\cookbooks\try\try2>kitchen create default-ubuntu-1404 | |
-----> Starting Kitchen (v1.13.2) | |
-----> Creating <default-ubuntu-1404>... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Box 'bento/ubuntu-14.04' could not be found. Attempting to f | |
ind and install... | |
default: Box Provider: virtualbox | |
default: Box Version: >= 0 | |
==> default: Loading metadata for box 'bento/ubuntu-14.04' | |
default: URL: https://atlas.hashicorp.com/bento/ubuntu-14.04 |