madscience 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/.madscience_gem_location +0 -0
- data/Cheffile +9 -0
- data/Cheffile.lock +34 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +9 -0
- data/README.md +126 -0
- data/Rakefile +1 -0
- data/TODO +17 -0
- data/bin/madscience +90 -0
- data/cookbooks/apt/CHANGELOG.md +183 -0
- data/cookbooks/apt/README.md +255 -0
- data/cookbooks/apt/attributes/default.rb +29 -0
- data/cookbooks/apt/files/default/apt-proxy-v2.conf +50 -0
- data/cookbooks/apt/libraries/helpers.rb +49 -0
- data/cookbooks/apt/libraries/matchers.rb +17 -0
- data/cookbooks/apt/libraries/network.rb +31 -0
- data/cookbooks/apt/metadata.json +54 -0
- data/cookbooks/apt/metadata.rb +34 -0
- data/cookbooks/apt/providers/preference.rb +63 -0
- data/cookbooks/apt/providers/repository.rb +150 -0
- data/cookbooks/apt/recipes/cacher-client.rb +81 -0
- data/cookbooks/apt/recipes/cacher-ng.rb +43 -0
- data/cookbooks/apt/recipes/default.rb +91 -0
- data/cookbooks/apt/resources/preference.rb +32 -0
- data/cookbooks/apt/resources/repository.rb +43 -0
- data/cookbooks/apt/templates/debian-6.0/acng.conf.erb +173 -0
- data/cookbooks/apt/templates/default/01proxy.erb +5 -0
- data/cookbooks/apt/templates/default/acng.conf.erb +275 -0
- data/cookbooks/apt/templates/ubuntu-10.04/acng.conf.erb +269 -0
- data/cookbooks/chef_handler/CHANGELOG.md +44 -0
- data/cookbooks/chef_handler/README.md +103 -0
- data/cookbooks/chef_handler/attributes/default.rb +30 -0
- data/cookbooks/chef_handler/files/default/handlers/README +1 -0
- data/cookbooks/chef_handler/libraries/matchers.rb +29 -0
- data/cookbooks/chef_handler/metadata.json +29 -0
- data/cookbooks/chef_handler/metadata.rb +7 -0
- data/cookbooks/chef_handler/providers/default.rb +97 -0
- data/cookbooks/chef_handler/recipes/default.rb +33 -0
- data/cookbooks/chef_handler/recipes/json_file.rb +28 -0
- data/cookbooks/chef_handler/resources/default.rb +34 -0
- data/cookbooks/dmg/CHANGELOG.md +75 -0
- data/cookbooks/dmg/README.md +143 -0
- data/cookbooks/dmg/attributes/default.rb +20 -0
- data/cookbooks/dmg/metadata.json +30 -0
- data/cookbooks/dmg/metadata.rb +9 -0
- data/cookbooks/dmg/providers/package.rb +91 -0
- data/cookbooks/dmg/recipes/default.rb +18 -0
- data/cookbooks/dmg/resources/package.rb +37 -0
- data/cookbooks/vagrant/Berksfile +2 -0
- data/cookbooks/vagrant/CHANGELOG.md +7 -0
- data/cookbooks/vagrant/README.md +146 -0
- data/cookbooks/vagrant/TESTING.md +25 -0
- data/cookbooks/vagrant/attributes/default.rb +22 -0
- data/cookbooks/vagrant/metadata.rb +14 -0
- data/cookbooks/vagrant/providers/plugin.rb +50 -0
- data/cookbooks/vagrant/recipes/debian.rb +9 -0
- data/cookbooks/vagrant/recipes/default.rb +34 -0
- data/cookbooks/vagrant/recipes/fedora.rb +1 -0
- data/cookbooks/vagrant/recipes/mac_os_x.rb +7 -0
- data/cookbooks/vagrant/recipes/rhel.rb +9 -0
- data/cookbooks/vagrant/recipes/uninstall_gem.rb +7 -0
- data/cookbooks/vagrant/recipes/windows.rb +5 -0
- data/cookbooks/vagrant/resources/plugin.rb +8 -0
- data/cookbooks/virtualbox/README.md +167 -0
- data/cookbooks/virtualbox/attributes/default.rb +32 -0
- data/cookbooks/virtualbox/attributes/user.rb +22 -0
- data/cookbooks/virtualbox/attributes/webportal.rb +22 -0
- data/cookbooks/virtualbox/attributes/webservice.rb +24 -0
- data/cookbooks/virtualbox/files/ubuntu/machines_enabled +1 -0
- data/cookbooks/virtualbox/files/ubuntu/vboxcontrol +104 -0
- data/cookbooks/virtualbox/libraries/helpers.rb +30 -0
- data/cookbooks/virtualbox/metadata.rb +16 -0
- data/cookbooks/virtualbox/recipes/default.rb +70 -0
- data/cookbooks/virtualbox/recipes/systemservice.rb +56 -0
- data/cookbooks/virtualbox/recipes/user.rb +39 -0
- data/cookbooks/virtualbox/recipes/webportal.rb +58 -0
- data/cookbooks/virtualbox/recipes/webservice.rb +44 -0
- data/cookbooks/virtualbox/templates/ubuntu/config.erb +3 -0
- data/cookbooks/virtualbox/templates/ubuntu/config.php.erb +183 -0
- data/cookbooks/virtualbox/templates/ubuntu/vbox.cfg.erb +51 -0
- data/cookbooks/windows/CHANGELOG.md +268 -0
- data/cookbooks/windows/README.md +665 -0
- data/cookbooks/windows/attributes/default.rb +23 -0
- data/cookbooks/windows/files/default/handlers/windows_reboot_handler.rb +76 -0
- data/cookbooks/windows/libraries/feature_base.rb +59 -0
- data/cookbooks/windows/libraries/matchers.rb +450 -0
- data/cookbooks/windows/libraries/powershell_helper.rb +59 -0
- data/cookbooks/windows/libraries/powershell_out.rb +79 -0
- data/cookbooks/windows/libraries/registry_helper.rb +357 -0
- data/cookbooks/windows/libraries/version.rb +206 -0
- data/cookbooks/windows/libraries/windows_architecture_helper.rb +86 -0
- data/cookbooks/windows/libraries/windows_helper.rb +88 -0
- data/cookbooks/windows/libraries/windows_privileged.rb +94 -0
- data/cookbooks/windows/metadata.json +31 -0
- data/cookbooks/windows/metadata.rb +9 -0
- data/cookbooks/windows/providers/auto_run.rb +32 -0
- data/cookbooks/windows/providers/batch.rb +62 -0
- data/cookbooks/windows/providers/feature_dism.rb +64 -0
- data/cookbooks/windows/providers/feature_powershell.rb +38 -0
- data/cookbooks/windows/providers/feature_servermanagercmd.rb +47 -0
- data/cookbooks/windows/providers/package.rb +252 -0
- data/cookbooks/windows/providers/pagefile.rb +153 -0
- data/cookbooks/windows/providers/path.rb +35 -0
- data/cookbooks/windows/providers/printer.rb +100 -0
- data/cookbooks/windows/providers/printer_port.rb +102 -0
- data/cookbooks/windows/providers/reboot.rb +31 -0
- data/cookbooks/windows/providers/registry.rb +72 -0
- data/cookbooks/windows/providers/shortcut.rb +56 -0
- data/cookbooks/windows/providers/task.rb +128 -0
- data/cookbooks/windows/providers/zipfile.rb +91 -0
- data/cookbooks/windows/recipes/default.rb +34 -0
- data/cookbooks/windows/recipes/reboot_handler.rb +32 -0
- data/cookbooks/windows/resources/auto_run.rb +30 -0
- data/cookbooks/windows/resources/batch.rb +36 -0
- data/cookbooks/windows/resources/feature.rb +44 -0
- data/cookbooks/windows/resources/package.rb +46 -0
- data/cookbooks/windows/resources/pagefile.rb +29 -0
- data/cookbooks/windows/resources/path.rb +28 -0
- data/cookbooks/windows/resources/printer.rb +41 -0
- data/cookbooks/windows/resources/printer_port.rb +40 -0
- data/cookbooks/windows/resources/reboot.rb +29 -0
- data/cookbooks/windows/resources/registry.rb +34 -0
- data/cookbooks/windows/resources/shortcut.rb +35 -0
- data/cookbooks/windows/resources/task.rb +50 -0
- data/cookbooks/windows/resources/zipfile.rb +33 -0
- data/cookbooks/yum/CHANGELOG.md +212 -0
- data/cookbooks/yum/README.md +268 -0
- data/cookbooks/yum/attributes/main.rb +97 -0
- data/cookbooks/yum/libraries/matchers.rb +27 -0
- data/cookbooks/yum/metadata.json +34 -0
- data/cookbooks/yum/metadata.rb +13 -0
- data/cookbooks/yum/providers/globalconfig.rb +37 -0
- data/cookbooks/yum/providers/repository.rb +85 -0
- data/cookbooks/yum/recipes/default.rb +34 -0
- data/cookbooks/yum/resources/globalconfig.rb +105 -0
- data/cookbooks/yum/resources/repository.rb +63 -0
- data/cookbooks/yum/templates/default/main.erb +251 -0
- data/cookbooks/yum/templates/default/repo.erb +109 -0
- data/lib/madscience/version.rb +3 -0
- data/lib/madscience.rb +5 -0
- data/madscience.gemspec +44 -0
- data/new_gem_version.rb +6 -0
- data/node-data.json +3 -0
- data/site-cookbooks/madscience-vagrant-cookbook/CHANGELOG.md +13 -0
- data/site-cookbooks/madscience-vagrant-cookbook/README.md +53 -0
- data/site-cookbooks/madscience-vagrant-cookbook/metadata.rb +17 -0
- data/site-cookbooks/madscience-vagrant-cookbook/recipes/default.rb +87 -0
- data/solo.rb +6 -0
- metadata +337 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Cookbook Name:: virtualbox
|
|
3
|
+
# Recipe:: webservice
|
|
4
|
+
#
|
|
5
|
+
# Copyright 2012, Ringo De Smet
|
|
6
|
+
#
|
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
# you may not use this file except in compliance with the License.
|
|
9
|
+
# You may obtain a copy of the License at
|
|
10
|
+
#
|
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
#
|
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
# See the License for the specific language governing permissions and
|
|
17
|
+
# limitations under the License.
|
|
18
|
+
#
|
|
19
|
+
|
|
20
|
+
include_recipe "virtualbox::user"
|
|
21
|
+
|
|
22
|
+
template "/etc/vbox/vbox.cfg" do
|
|
23
|
+
source "vbox.cfg.erb"
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
directory "vboxweb-service log folder" do
|
|
27
|
+
path node['virtualbox']['webservice']['log']['location']
|
|
28
|
+
owner node['virtualbox']['user']
|
|
29
|
+
group node['virtualbox']['group']
|
|
30
|
+
mode '0755'
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# It is very hard to get vboxwebsrv to work correctly with password authentication
|
|
34
|
+
# If anyone can get this working, feel free to submit a changed cookbook!
|
|
35
|
+
execute "Disable vboxwebsrv auth library" do
|
|
36
|
+
command "VBoxManage setproperty websrvauthlibrary null"
|
|
37
|
+
user "#{node['virtualbox']['user']}"
|
|
38
|
+
action :run
|
|
39
|
+
environment ({'HOME' => "/home/#{node['virtualbox']['user']}"})
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
service "vboxweb-service" do
|
|
43
|
+
action [:enable, :start]
|
|
44
|
+
end
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
/*
|
|
3
|
+
* phpVirtualBox example configuration. $Id$
|
|
4
|
+
*
|
|
5
|
+
* rename to config.php and edit as needed.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
class phpVBoxConfig {
|
|
9
|
+
|
|
10
|
+
/* Username / Password for system user that runs VirtualBox */
|
|
11
|
+
var $username = '<%= node['virtualbox']['user'] %>';
|
|
12
|
+
var $password = '';
|
|
13
|
+
|
|
14
|
+
/* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
|
|
15
|
+
var $location = 'http://127.0.0.1:18083/';
|
|
16
|
+
|
|
17
|
+
/* Default language. See languages folder for more language options.
|
|
18
|
+
* Can also be changed in File -> Preferences -> Language in
|
|
19
|
+
* phpVirtualBox.
|
|
20
|
+
*/
|
|
21
|
+
var $language = 'en_us';
|
|
22
|
+
|
|
23
|
+
/*
|
|
24
|
+
*
|
|
25
|
+
* Not-so-common options / tweeking
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
// Multiple servers example config. Uncomment (remove /* and */) to use.
|
|
30
|
+
// Add ALL the servers you want to use. Even if you have the server set
|
|
31
|
+
// above. The default server will be the first one in the list.
|
|
32
|
+
/*
|
|
33
|
+
var $servers = array(
|
|
34
|
+
array(
|
|
35
|
+
'name' => 'London',
|
|
36
|
+
'username' => 'user',
|
|
37
|
+
'password' => 'pass',
|
|
38
|
+
'location' => 'http://192.168.1.1:18083/',
|
|
39
|
+
'authMaster' => true // Use this server for authentication
|
|
40
|
+
),
|
|
41
|
+
array(
|
|
42
|
+
'name' => 'New York',
|
|
43
|
+
'username' => 'user2',
|
|
44
|
+
'password' => 'pass2',
|
|
45
|
+
'location' => 'http://192.168.1.2:18083/'
|
|
46
|
+
),
|
|
47
|
+
);
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
// Disable authentication
|
|
51
|
+
#var $noAuth = true;
|
|
52
|
+
|
|
53
|
+
// Host / ip to use for console connections
|
|
54
|
+
#var $consoleHost = '192.168.1.40';
|
|
55
|
+
|
|
56
|
+
// Disable "preview" box
|
|
57
|
+
#var $noPreview = true;
|
|
58
|
+
|
|
59
|
+
// Default preview box update interval in seconds
|
|
60
|
+
#var $previewUpdateInterval = 30;
|
|
61
|
+
|
|
62
|
+
// Preview box pixel width
|
|
63
|
+
#var $previewWidth = 180;
|
|
64
|
+
|
|
65
|
+
// Change default preview aspect ratio to 1.
|
|
66
|
+
// http://www.wikipedia.org/wiki/Aspect_ratio_%28image%29#Previous_and_presently_used_aspect_ratios
|
|
67
|
+
#var $previewAspectRatio = 1.6;
|
|
68
|
+
|
|
69
|
+
// Enable custom VM icons
|
|
70
|
+
#var $enableCustomIcons = true;
|
|
71
|
+
|
|
72
|
+
/*
|
|
73
|
+
Allow to prompt deletion harddisk files on removal from Virtual Media Manager.
|
|
74
|
+
If this is not set, files are always kept. If this is set, you will be PROMPTED
|
|
75
|
+
to decide whether or not you would like to delete the harddisk file(s) when you
|
|
76
|
+
remove a harddisk from virtual media manager. You may still choose not to delete
|
|
77
|
+
the file when prompted.
|
|
78
|
+
*/
|
|
79
|
+
var $deleteOnRemove = true;
|
|
80
|
+
|
|
81
|
+
/*
|
|
82
|
+
* File / Folder browser settings
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
// Restrict file types
|
|
86
|
+
var $browserRestrictFiles = array('.iso','.vdi','.vmdk','.img','.bin','.vhd','.hdd','.ovf','.ova','.xml','.vbox','.cdr','.dmg','.ima','.dsk','.vfd');
|
|
87
|
+
|
|
88
|
+
// Restrict locations / folders
|
|
89
|
+
#var $browserRestrictFolders = array('D:\\','C:\\Users\\Ian'); // Or something like array('/home/vbox','/var/ISOs')
|
|
90
|
+
|
|
91
|
+
// Force use of local, webserver based file browser instead of going through vboxwebsrv
|
|
92
|
+
#var $browserLocal = true;
|
|
93
|
+
|
|
94
|
+
// Disable file / folder browser.
|
|
95
|
+
#var $browserDisable = true;
|
|
96
|
+
|
|
97
|
+
/*
|
|
98
|
+
* Misc
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
/* Disable any of phpVirtualBox's main tabs */
|
|
102
|
+
#var $disableTabVMSnapshots = true; // Snapshots tab
|
|
103
|
+
#var $disableTabVMConsole = true; // Console tab
|
|
104
|
+
|
|
105
|
+
/* Screen resolutions for console tab */
|
|
106
|
+
var $consoleResolutions = array('640x480','800x600','1024x768','1280x720','1440x900');
|
|
107
|
+
|
|
108
|
+
/* Console tab keyboard layout. Currently Oracle's RDP client only supports EN and DE. */
|
|
109
|
+
var $consoleKeyboardLayout = 'EN';
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/* Max number of network cards per VM. Do not set above VirtualBox's limit (typically 8) or below 1 */
|
|
113
|
+
var $nicMax = 4;
|
|
114
|
+
|
|
115
|
+
/* Enable advanced configuration items (normally hidden in the VirtualBox GUI)
|
|
116
|
+
* Note that some of these items may not be translated to languages other than english.
|
|
117
|
+
*/
|
|
118
|
+
#var $enableAdvancedConfig = true;
|
|
119
|
+
|
|
120
|
+
/*
|
|
121
|
+
Sorting VM List options
|
|
122
|
+
|
|
123
|
+
var $vmListSort = 'name'; // Default. Sort VM list by VM name
|
|
124
|
+
var $vmListSort = 'running'; // Place running VMs at the top of the list
|
|
125
|
+
var $vmListSort = 'gui'; // Use drag-and-drop / manual vm ordering
|
|
126
|
+
var $vmListSort = 'stateChange'; // Order by VMs' last state change
|
|
127
|
+
var $vmListSort = 'os'; // Sort by OS type
|
|
128
|
+
var $vmListSort = 'function(..){...}' // uses custom javascript function. Example follows:
|
|
129
|
+
|
|
130
|
+
// This places running VMs at the top of the list, then orders by
|
|
131
|
+
// the last VM state change, then by name.
|
|
132
|
+
var $vmListSort = 'function(a,b) {
|
|
133
|
+
if(a.state == "Running" && b.state != "Running") return -1;
|
|
134
|
+
if(b.state == "Running" && a.state != "Running") return 1;
|
|
135
|
+
if(a.lastStateChange < b.lastStateChange) return 1;
|
|
136
|
+
if(b.lastStateChange < a.lastStateChange) return -1;
|
|
137
|
+
return strnatcasecmp(a.name,b.name);
|
|
138
|
+
}';
|
|
139
|
+
|
|
140
|
+
NOTE: In a multi-user situation, 'gui' is probably a bad idea.
|
|
141
|
+
|
|
142
|
+
*/
|
|
143
|
+
#var $vmListSort = 'name';
|
|
144
|
+
|
|
145
|
+
// Authentication library.
|
|
146
|
+
var $authLib = 'Builtin';
|
|
147
|
+
|
|
148
|
+
// VM ownership
|
|
149
|
+
#var $enforceVMOwnership = true;
|
|
150
|
+
|
|
151
|
+
// Per-user VM quota
|
|
152
|
+
#var $vmQuotaPerUser = 2;
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
// Allow VDE network configuration. This must be supported by the underlying VirtualBox installation!
|
|
156
|
+
#var $enableVDE = true;
|
|
157
|
+
|
|
158
|
+
// Disable setting SATA controllers port count to the max port number found when saving VMs.
|
|
159
|
+
#var $disableSataPortCount = true;
|
|
160
|
+
|
|
161
|
+
/* Enable Parallel Port configuration - EXPERIMENTAL
|
|
162
|
+
LPT support may or may not work for you.
|
|
163
|
+
|
|
164
|
+
!!! VirtualBox LPT support only works in Linux. !!!
|
|
165
|
+
|
|
166
|
+
*/
|
|
167
|
+
#var $enableLPTConfig = true;
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
/*
|
|
171
|
+
* Cache tweeking.
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
// Refresh VM cache when VM Settings window is loaded. Default is true. Set to false to disable.
|
|
175
|
+
#var $vmConfigRefresh = true;
|
|
176
|
+
|
|
177
|
+
// Path
|
|
178
|
+
#var $cachePath = '/tmp';
|
|
179
|
+
|
|
180
|
+
/* END SETTINGS */
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# --pidfile, -P: Name of the PID file which is created when the daemon was started.
|
|
2
|
+
|
|
3
|
+
# vboxweb-service env var || vboxwebsrv cli arg || description
|
|
4
|
+
# VBOXWEB | --host, -H | The host to bind to (localhost)
|
|
5
|
+
VBOXWEB_HOST=localhost
|
|
6
|
+
|
|
7
|
+
# vboxweb-service env var || vboxwebsrv cli arg || description
|
|
8
|
+
# VBOXWEB_PORT | --port, -p | The port to bind to (18083).
|
|
9
|
+
VBOXWEB_PORT=18083
|
|
10
|
+
|
|
11
|
+
# This setting defines the user as which vboxwebsrv will run. This setting is mandatory.
|
|
12
|
+
VBOXWEB_USER=<%= node[:virtualbox][:user] %>
|
|
13
|
+
|
|
14
|
+
# vboxweb-service env var || vboxwebsrv cli arg || description
|
|
15
|
+
# VBOXWEB_TIMEOUT | --timeout, -t | Session timeout in seconds; 0 = disable timeouts (300).
|
|
16
|
+
VBOXWEB_TIMEOUT=300
|
|
17
|
+
|
|
18
|
+
# vboxweb-service env var || vboxwebsrv cli arg || description
|
|
19
|
+
# VBOXWEB_CHECK_INTERVAL | --check-interval, -i | Frequency of timeout checks in seconds (5).
|
|
20
|
+
VBOXWEB_CHECK_INTERVAL=5
|
|
21
|
+
|
|
22
|
+
# vboxweb-service env var || vboxwebsrv cli arg || description
|
|
23
|
+
# VBOXWEB_THREADS | --threads, -T | Maximum number of worker threads to run in parallel (100).
|
|
24
|
+
VBOXWEB_THREADS=100
|
|
25
|
+
|
|
26
|
+
# vboxweb-service env var || vboxwebsrv cli arg || description
|
|
27
|
+
# VBOXWEB_KEEPALIVE | --keepalive, -k | Maximum number of requests before a socket will be closed (100).
|
|
28
|
+
VBOXWEB_KEEPALIVE=100
|
|
29
|
+
|
|
30
|
+
# vboxweb-service env var || vboxwebsrv cli arg || description
|
|
31
|
+
# VBOXWEB_VERBOSE | --verbose, -v | Be verbose.
|
|
32
|
+
VBOXWEB_VERBOSE=true
|
|
33
|
+
|
|
34
|
+
# vboxweb-service env var || vboxwebsrv cli arg || description
|
|
35
|
+
# VBOXWEB_LOGFILE | --logfile, -F | Name of file to write log to (no file).
|
|
36
|
+
VBOXWEB_LOGFILE=<%= node[:virtualbox][:webservice][:log][:location] %>/vboxwebsrv.log
|
|
37
|
+
|
|
38
|
+
# vboxweb-service env var || vboxwebsrv cli arg || description
|
|
39
|
+
# VBOXWEB_LOGROTATE | --logrotate, -R | Number of log files (0 disables log rotation).
|
|
40
|
+
VBOXWEB_LOGROTATE=<%= node[:virtualbox][:webservice][:log][:rotate] %>
|
|
41
|
+
|
|
42
|
+
# vboxweb-service env var || vboxwebsrv cli arg || description
|
|
43
|
+
# VBOXWEB_LOGSIZE | --logsize, -S | Maximum size of a log file to trigger rotation (bytes).
|
|
44
|
+
VBOXWEB_LOGSIZE=<%= node[:virtualbox][:webservice][:log][:size] %>
|
|
45
|
+
|
|
46
|
+
# vboxweb-service env var || vboxwebsrv cli arg || description
|
|
47
|
+
# VBOXWEB_LOGINTERVAL | --loginterval, -I | Maximum time interval to trigger log rotation (seconds).
|
|
48
|
+
VBOXWEB_LOGINTERVAL=<%= node[:virtualbox][:webservice][:log][:interval] %>
|
|
49
|
+
|
|
50
|
+
# This option defines the location of the vboxwebsrv binary (/usr/lib/virtualbox by default).
|
|
51
|
+
# INSTALL_DIR=VALUE
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
windows Cookbook CHANGELOG
|
|
2
|
+
=======================
|
|
3
|
+
This file is used to list changes made in each version of the windows cookbook.
|
|
4
|
+
|
|
5
|
+
v1.32.1 (2014-07-15)
|
|
6
|
+
--------------------
|
|
7
|
+
- Fixes broken cookbook release
|
|
8
|
+
|
|
9
|
+
v1.32.0 (2014-07-11)
|
|
10
|
+
--------------------
|
|
11
|
+
- Add ChefSpec resource methods to allow notification testing (@sneal)
|
|
12
|
+
- Add use_inline_resources to providers (@micgo)
|
|
13
|
+
- [COOK-4728] - Allow reboot handler to be used as an exception handler
|
|
14
|
+
- [COOK-4620] - Ensure win_friendly_path doesn't error out when ALT_SEPARATOR is nil
|
|
15
|
+
|
|
16
|
+
v1.31.0 (2014-05-07)
|
|
17
|
+
--------------------
|
|
18
|
+
- [COOK-2934] - Add windows_feature support for 2 new DISM attributes: all, source
|
|
19
|
+
|
|
20
|
+
v1.30.2 (2014-04-02)
|
|
21
|
+
--------------------
|
|
22
|
+
- [COOK-4414] - Adding ChefSpec matchers
|
|
23
|
+
|
|
24
|
+
v1.30.0 (2014-02-14)
|
|
25
|
+
--------------------
|
|
26
|
+
- [COOK-3715] - Unable to create a startup task with no login
|
|
27
|
+
- [COOK-4188] - Add powershell_version method to return Powershell version
|
|
28
|
+
|
|
29
|
+
v1.12.8 (2014-01-21)
|
|
30
|
+
--------------------
|
|
31
|
+
- [COOK-3988] Don't unescape URI before constructing it.
|
|
32
|
+
|
|
33
|
+
v1.12.6 (2014-01-03)
|
|
34
|
+
--------------------
|
|
35
|
+
- [COOK-4168] Circular dep on powershell - moving powershell libraries into windows. removing dependency on powershell
|
|
36
|
+
|
|
37
|
+
v1.12.4
|
|
38
|
+
-------
|
|
39
|
+
Fixing depend/depends typo in metadata.rb
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
v1.12.2
|
|
43
|
+
-------
|
|
44
|
+
### Bug
|
|
45
|
+
- **[COOK-4110](https://tickets.opscode.com/browse/COOK-4110)** - feature_servermanager installed? method regex bug
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
v1.12.0
|
|
49
|
+
-------
|
|
50
|
+
### Bug
|
|
51
|
+
- **[COOK-3793](https://tickets.opscode.com/browse/COOK-3793)** - parens inside parens of README.md don't render
|
|
52
|
+
|
|
53
|
+
### New Feature
|
|
54
|
+
- **[COOK-3714](https://tickets.opscode.com/browse/COOK-3714)** - Powershell features provider and delete support.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
v1.11.0
|
|
58
|
+
-------
|
|
59
|
+
### Improvement
|
|
60
|
+
- **[COOK-3724](https://tickets.opscode.com/browse/COOK-3724)** - Rrecommend built-in resources over cookbook resources
|
|
61
|
+
- **[COOK-3515](https://tickets.opscode.com/browse/COOK-3515)** - Remove unprofessional comment from library
|
|
62
|
+
- **[COOK-3455](https://tickets.opscode.com/browse/COOK-3455)** - Add Windows Server 2012R2 to windows cookbook version helper
|
|
63
|
+
|
|
64
|
+
### Bug
|
|
65
|
+
- **[COOK-3542](https://tickets.opscode.com/browse/COOK-3542)** - Fix an issue where `windows_zipfile` fails with LoadError
|
|
66
|
+
- **[COOK-3447](https://tickets.opscode.com/browse/COOK-3447)** - Allow Overriding Of The Default Reboot Timeout In windows_reboot_handler
|
|
67
|
+
- **[COOK-3382](https://tickets.opscode.com/browse/COOK-3382)** - Allow windows_task to create `on_logon` tasks
|
|
68
|
+
- **[COOK-2098](https://tickets.opscode.com/browse/COOK-2098)** - Fix and issue where the `windows_reboot` handler is ignoring the reboot time
|
|
69
|
+
|
|
70
|
+
### New Feature
|
|
71
|
+
- **[COOK-3458](https://tickets.opscode.com/browse/COOK-3458)** - Add support for `start_date` and `start_time` in `windows_task`
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
v1.10.0
|
|
75
|
+
-------
|
|
76
|
+
### Improvement
|
|
77
|
+
|
|
78
|
+
- [COOK-3126]: `windows_task` should support the on start frequency
|
|
79
|
+
- [COOK-3127]: Support the force option on task create and delete
|
|
80
|
+
|
|
81
|
+
v1.9.0
|
|
82
|
+
------
|
|
83
|
+
### Bug
|
|
84
|
+
|
|
85
|
+
- [COOK-2899]: windows_feature fails when a feature install requires a
|
|
86
|
+
reboot
|
|
87
|
+
- [COOK-2914]: Foodcritic failures in Cookbooks
|
|
88
|
+
- [COOK-2983]: windows cookbook has foodcritic failures
|
|
89
|
+
|
|
90
|
+
### Improvement
|
|
91
|
+
|
|
92
|
+
- [COOK-2686]: Add Windows Server 2012 to version.rb so other
|
|
93
|
+
depending chef scripts can detect Windows Server 2012
|
|
94
|
+
|
|
95
|
+
v1.8.10
|
|
96
|
+
-------
|
|
97
|
+
When using Windows qualified filepaths (C:/foo), the #absolute? method
|
|
98
|
+
for URI returns true, because "C" is the scheme.
|
|
99
|
+
|
|
100
|
+
This change checks that the URI is http or https scheme, so it can be
|
|
101
|
+
passed off to remote_file appropriately.
|
|
102
|
+
|
|
103
|
+
* [COOK-2729] - allow only http, https URI schemes
|
|
104
|
+
|
|
105
|
+
v1.8.8
|
|
106
|
+
------
|
|
107
|
+
* [COOK-2729] - helper should use URI rather than regex and bare string
|
|
108
|
+
|
|
109
|
+
v1.8.6
|
|
110
|
+
------
|
|
111
|
+
* [COOK-968] - `windows_package` provider should gracefully handle paths with spaces
|
|
112
|
+
* [COOK-222] - `windows_task` resource does not declare :change action
|
|
113
|
+
* [COOK-241] - Windows cookbook should check for redefined constants
|
|
114
|
+
* [COOK-248] - Windows package install type is case sensitive
|
|
115
|
+
|
|
116
|
+
v1.8.4
|
|
117
|
+
------
|
|
118
|
+
* [COOK-2336] - MSI That requires reboot returns with RC 3010 and
|
|
119
|
+
causes chef run failure
|
|
120
|
+
* [COOK-2368] - `version` attribute of the `windows_package` provider
|
|
121
|
+
should be documented
|
|
122
|
+
|
|
123
|
+
v1.8.2
|
|
124
|
+
------
|
|
125
|
+
**Important**: Use powershell in nodes expanded run lists to ensure
|
|
126
|
+
powershell is downloaded, as powershell has a dependency on this
|
|
127
|
+
cookbook; v1.8.0 created a circular dependency.
|
|
128
|
+
|
|
129
|
+
* [COOK-2301] - windows 1.8.0 has circular dependency on powershell
|
|
130
|
+
|
|
131
|
+
v1.8.0
|
|
132
|
+
------
|
|
133
|
+
* [COOK-2126] - Add checksum attribute to `windows_zipfile`
|
|
134
|
+
* [COOK-2142] - Add printer and `printer_port` LWRPs
|
|
135
|
+
* [COOK-2149] - Chef::Log.debug Windows Package command line
|
|
136
|
+
* [COOK-2155] -`windows_package` does not send checksum to
|
|
137
|
+
`cached_file` in `installer_type`
|
|
138
|
+
|
|
139
|
+
v1.7.0
|
|
140
|
+
------
|
|
141
|
+
* [COOK-1745] - allow for newer versions of rubyzip
|
|
142
|
+
|
|
143
|
+
v1.6.0
|
|
144
|
+
------
|
|
145
|
+
* [COOK-2048] - undefined method for Falseclass on task :change when
|
|
146
|
+
action is :nothing (and task doesn't exist)
|
|
147
|
+
* [COOK-2049] - Add `windows_pagefile` resource
|
|
148
|
+
|
|
149
|
+
v1.5.0
|
|
150
|
+
------
|
|
151
|
+
* [COOK-1251] - Fix LWRP "NotImplementedError"
|
|
152
|
+
* [COOK-1921] - Task LWRP will return true for resource exists when no
|
|
153
|
+
other scheduled tasks exist
|
|
154
|
+
* [COOK-1932] - Include :change functionality to windows task lwrp
|
|
155
|
+
|
|
156
|
+
v1.4.0:
|
|
157
|
+
------
|
|
158
|
+
* [COOK-1571] - `windows_package` resource (with msi provider) does not
|
|
159
|
+
accept spaces in filename
|
|
160
|
+
* [COOK-1581] - Windows cookbook needs a scheduled tasks LWRP
|
|
161
|
+
* [COOK-1584] - `windows_registry` should support all registry types
|
|
162
|
+
|
|
163
|
+
v1.3.4
|
|
164
|
+
------
|
|
165
|
+
* [COOK-1173] - `windows_registry` throws Win32::Registry::Error for
|
|
166
|
+
action :remove on a nonexistent key
|
|
167
|
+
* [COOK-1182] - windows package sets start window title instead of
|
|
168
|
+
quoting a path
|
|
169
|
+
* [COOK-1476] - zipfile lwrp should support :zip action
|
|
170
|
+
* [COOK-1485] - package resource fails to perform install correctly
|
|
171
|
+
when "source" contains quote
|
|
172
|
+
* [COOK-1519] - add action :remove for path lwrp
|
|
173
|
+
|
|
174
|
+
v1.3.2
|
|
175
|
+
------
|
|
176
|
+
* [COOK-1033] - remove the `libraries/ruby_19_patches.rb` file which
|
|
177
|
+
causes havoc on non-Windows systems.
|
|
178
|
+
* [COOK-811] - add a timeout parameter attribute for `windows_package`
|
|
179
|
+
|
|
180
|
+
v1.3.0
|
|
181
|
+
------
|
|
182
|
+
* [COOK-1323] - Update for changes in Chef 0.10.10.
|
|
183
|
+
- Setting file mode doesn't make sense on Windows (package provider
|
|
184
|
+
- and `reboot_handler` recipe)
|
|
185
|
+
- Prefix ::Win32 to avoid namespace collision with Chef::Win32
|
|
186
|
+
- (`registry_helper` library)
|
|
187
|
+
- Use chef_gem instead of gem_package so gems get installed correctly
|
|
188
|
+
under the Ruby environment Chef runs in (reboot_handler recipe,
|
|
189
|
+
zipfile provider)
|
|
190
|
+
|
|
191
|
+
v1.2.12
|
|
192
|
+
-------
|
|
193
|
+
* [COOK-1037] - specify version for rubyzip gem
|
|
194
|
+
* [COOK-1007] - `windows_feature` does not work to remove features with
|
|
195
|
+
dism
|
|
196
|
+
* [COOK-667] - shortcut resource + provider for Windows platforms
|
|
197
|
+
|
|
198
|
+
v1.2.10
|
|
199
|
+
-------
|
|
200
|
+
* [COOK-939] - add `type` parameter to `windows_registry` to allow binary registry keys.
|
|
201
|
+
* [COOK-940] - refactor logic so multiple values get created.
|
|
202
|
+
|
|
203
|
+
v1.2.8
|
|
204
|
+
------
|
|
205
|
+
* FIX: Older Windows (Windows Server 2003) sometimes return 127 on successful forked commands
|
|
206
|
+
* FIX: `windows_package`, ensure we pass the WOW* registry redirection flags into reg.open
|
|
207
|
+
|
|
208
|
+
v1.2.6
|
|
209
|
+
------
|
|
210
|
+
* patch to fix [CHEF-2684], Open4 is named Open3 in Ruby 1.9
|
|
211
|
+
* Ruby 1.9's Open3 returns 0 and 42 for successful commands
|
|
212
|
+
* retry keyword can only be used in a rescue block in Ruby 1.9
|
|
213
|
+
|
|
214
|
+
v1.2.4
|
|
215
|
+
------
|
|
216
|
+
* `windows_package` - catch Win32::Registry::Error that pops up when searching certain keys
|
|
217
|
+
|
|
218
|
+
v1.2.2
|
|
219
|
+
------
|
|
220
|
+
* combined numerous helper libarires for easier sharing across libaries/LWRPs
|
|
221
|
+
* renamed Chef::Provider::WindowsFeature::Base file to the more descriptive `feature_base.rb`
|
|
222
|
+
* refactored `windows_path` LWRP
|
|
223
|
+
* :add action should MODIFY the the underlying ENV variable (vs CREATE)
|
|
224
|
+
* deleted greedy :remove action until it could be made more idempotent
|
|
225
|
+
* added a `windows_batch` resource/provider for running batch scripts remotely
|
|
226
|
+
|
|
227
|
+
v1.2.0
|
|
228
|
+
------
|
|
229
|
+
* [COOK-745] gracefully handle required server restarts on Windows platform
|
|
230
|
+
* WindowsRebootHandler for requested and pending reboots
|
|
231
|
+
* `windows_reboot` LWRP for requesting (receiving notifies) reboots
|
|
232
|
+
* `reboot_handler` recipe for enabling WindowsRebootHandler as a report handler
|
|
233
|
+
* [COOK-714] Correct initialize misspelling
|
|
234
|
+
* RegistryHelper - new `get_values` method which returns all values for a particular key.
|
|
235
|
+
|
|
236
|
+
v1.0.8
|
|
237
|
+
------
|
|
238
|
+
* [COOK-719] resource/provider for managing windows features
|
|
239
|
+
* [COOK-717] remove `windows_env_vars` resource as env resource exists in core chef
|
|
240
|
+
* new `Windows::Version` helper class
|
|
241
|
+
* refactored `Windows::Helper` mixin
|
|
242
|
+
|
|
243
|
+
v1.0.6
|
|
244
|
+
------
|
|
245
|
+
* added `force_modify` action to `windows_registry` resource
|
|
246
|
+
* add `win_friendly_path` helper
|
|
247
|
+
* re-purpose default recipe to install useful supporting windows related gems
|
|
248
|
+
|
|
249
|
+
v1.0.4
|
|
250
|
+
------
|
|
251
|
+
* [COOK-700] new resources and improvements to the `windows_registry` provider (thanks Paul Morton!)
|
|
252
|
+
* Open the registry in the bitednes of the OS
|
|
253
|
+
* Provide convenience methods to check if keys and values exit
|
|
254
|
+
* Provide convenience method for reading registry values
|
|
255
|
+
* NEW - `windows_auto_run` resource/provider
|
|
256
|
+
* NEW - `windows_env_vars` resource/provider
|
|
257
|
+
* NEW - `windows_path` resource/provider
|
|
258
|
+
* re-write of the `windows_package` logic for determining current installed packages
|
|
259
|
+
* new checksum attribute for `windows_package` resource...useful for remote packages
|
|
260
|
+
|
|
261
|
+
v1.0.2
|
|
262
|
+
------
|
|
263
|
+
* [COOK-647] account for Wow6432Node registry redirecter
|
|
264
|
+
* [COOK-656] begin/rescue on win32/registry
|
|
265
|
+
|
|
266
|
+
v1.0.0
|
|
267
|
+
------
|
|
268
|
+
* [COOK-612] initial release
|