wombat-cli 0.4.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/generator_files/cookbooks/wombat/attributes/default.rb +1 -1
- data/generator_files/cookbooks/wombat/metadata.rb +1 -1
- data/generator_files/cookbooks/workstation/.kitchen.ec2.yml +1 -1
- data/generator_files/cookbooks/workstation/libraries/home.rb +4 -0
- data/generator_files/cookbooks/workstation/metadata.rb +1 -1
- data/generator_files/cookbooks/workstation/recipes/browser.rb +0 -1
- data/generator_files/cookbooks/workstation/recipes/certs-keys.rb +1 -1
- data/generator_files/cookbooks/workstation/recipes/chef.rb +0 -1
- data/generator_files/cookbooks/workstation/recipes/default.rb +5 -5
- data/generator_files/cookbooks/workstation/recipes/editor.rb +2 -3
- data/generator_files/cookbooks/workstation/recipes/profile.rb +6 -7
- data/generator_files/cookbooks/workstation/recipes/terminal.rb +0 -2
- data/generator_files/cookbooks/workstation/test/integration/default/workstation_spec.rb +1 -1
- data/generator_files/packer/automate.json +8 -3
- data/generator_files/packer/build-node.json +8 -3
- data/generator_files/packer/chef-server.json +8 -3
- data/generator_files/packer/compliance.json +8 -3
- data/generator_files/packer/infranodes-windows.json +8 -3
- data/generator_files/packer/infranodes.json +8 -3
- data/generator_files/packer/workstation.json +8 -3
- data/generator_files/templates/arm.md.json.erb +755 -0
- data/generator_files/templates/{arm.json.erb → arm.vhd.json.erb} +62 -7
- data/generator_files/templates/bootstrap-aws.erb +3 -0
- data/generator_files/wombat.yml +3 -0
- data/lib/wombat/build.rb +101 -5
- data/lib/wombat/common.rb +26 -3
- data/lib/wombat/version.rb +1 -1
- data/wombat-cli.gemspec +1 -0
- metadata +19 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac5176b823a5e3d8e6802305371a5a455061b306
|
4
|
+
data.tar.gz: ee0bea3dedf2d1941ea9d96d99778c776adf1a1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 002aae74027c19f0c4b270f58cf0de8cf0e56ed1a386ea9cf50a73ac9251604dd95b91fd4e264dd864c33cfa84ec5faf7d93a955a7295a7b095101bbbde8fc2e
|
7
|
+
data.tar.gz: 694efef6579ba56e997a5957dfca4f8fe0cb5c2dd5afc8b565102187f53494a289b0d70f6de2c9ee807d71f95a98346d90b5a9961bdcaf73c9a77b0bf20c68ba
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.5.0](https://github.com/chef-cft/wombat/tree/v0.5.0) (2017-03-21)
|
4
|
+
[Full Changelog](https://github.com/chef-cft/wombat/compare/v0.4.3...v0.5.0)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- no more Administrator [\#319](https://github.com/chef-cft/wombat/pull/319) ([binamov](https://github.com/binamov))
|
9
|
+
- Select whether to use Managed Disks or not [\#317](https://github.com/chef-cft/wombat/pull/317) ([russellseymour](https://github.com/russellseymour))
|
10
|
+
- azure enhancements [\#316](https://github.com/chef-cft/wombat/pull/316) ([binamov](https://github.com/binamov))
|
11
|
+
- Added Azure Provide Tag for Chef to resources [\#314](https://github.com/chef-cft/wombat/pull/314) ([russellseymour](https://github.com/russellseymour))
|
12
|
+
- Added support for Azure Managed Disks [\#312](https://github.com/chef-cft/wombat/pull/312) ([russellseymour](https://github.com/russellseymour))
|
13
|
+
- Remove checksum verification for Google Chrome Chocolatey package [\#307](https://github.com/chef-cft/wombat/pull/307) ([nweddle](https://github.com/nweddle))
|
14
|
+
|
3
15
|
## [v0.4.3](https://github.com/chef-cft/wombat/tree/v0.4.3) (2017-02-23)
|
4
16
|
[Full Changelog](https://github.com/chef-cft/wombat/compare/v0.4.2...v0.4.3)
|
5
17
|
|
@@ -28,12 +28,12 @@ default['demo']['chef_server_url'] = "https://#{node['demo']['chef_fqdn']}/organ
|
|
28
28
|
default['demo']['compliance_fqdn'] = "#{node['demo']['domain_prefix']}compliance.#{node['demo']['domain']}"
|
29
29
|
|
30
30
|
default['demo']['pkgs'] = %w(
|
31
|
-
googlechrome
|
32
31
|
atom
|
33
32
|
git
|
34
33
|
hub
|
35
34
|
gitextensions
|
36
35
|
git-credential-manager-for-windows
|
36
|
+
cmder
|
37
37
|
)
|
38
38
|
|
39
39
|
default['demo']['data_collector_token'] = '93a49a4f2482c64126f7b6015e6b0f30284287ee4054ff8807fb63d9cbd1c506'
|
@@ -1,4 +1,3 @@
|
|
1
|
-
home = Dir.home
|
2
1
|
chef_server_url = "https://#{node['demo']['domain_prefix']}chef.#{node['demo']['domain']}/organizations/#{node['demo']['org']}"
|
3
2
|
automate_url = "https://#{node['demo']['domain_prefix']}automate.#{node['demo']['domain']}/e/#{node['demo']['enterprise']}"
|
4
3
|
compliance_url = "https://#{node['demo']['domain_prefix']}compliance.#{node['demo']['domain']}"
|
@@ -1,13 +1,13 @@
|
|
1
|
-
include_recipe 'chocolatey'
|
1
|
+
include_recipe 'chocolatey::default'
|
2
2
|
|
3
3
|
node['demo']['pkgs'].each do |pkg|
|
4
|
-
|
5
|
-
options
|
4
|
+
chocolatey_package pkg do
|
5
|
+
options '--allow-empty-checksums'
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
chocolatey_package 'GoogleChrome' do
|
10
|
+
options '--ignorechecksum'
|
11
11
|
end
|
12
12
|
|
13
13
|
include_recipe 'workstation::certs-keys'
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
run_home = Dir.home
|
3
2
|
directory "#{home}/.atom"
|
4
3
|
|
5
4
|
cookbook_file "#{home}/.atom/config.cson" do
|
@@ -13,7 +12,7 @@ cookbook_file "#{home}/.atom/apm-bootstrap.list" do
|
|
13
12
|
end
|
14
13
|
|
15
14
|
execute 'install Atom packages' do
|
16
|
-
command "#{
|
15
|
+
command "#{run_home}/AppData/Local/atom/bin/apm install --packages-file #{home}/.atom/apm-bootstrap.list"
|
17
16
|
action :run
|
18
17
|
not_if { File.exist?("#{home}/.atom/packages/language-chef/README.md") }
|
19
18
|
end
|
@@ -1,5 +1,6 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
modules = "C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules"
|
2
|
+
|
3
|
+
posh_git_ps = "Install-Module posh-git -Destination #{modules}"
|
3
4
|
|
4
5
|
powershell_script 'Install PSGet' do
|
5
6
|
code <<-EOH
|
@@ -8,9 +9,7 @@ powershell_script 'Install PSGet' do
|
|
8
9
|
end
|
9
10
|
|
10
11
|
powershell_script 'Install posh-git' do
|
11
|
-
code
|
12
|
-
Install-Module posh-git
|
13
|
-
EOH
|
12
|
+
code posh_git_ps
|
14
13
|
end
|
15
14
|
|
16
15
|
remote_file "#{home}/PSReadline.zip" do
|
@@ -28,11 +27,11 @@ powershell_script 'Extract PSReadline' do
|
|
28
27
|
[System.Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") | Out-Null
|
29
28
|
[System.IO.Compression.ZipFile]::ExtractToDirectory('#{home}/PSReadLine.zip', '#{modules}/PSReadLine')
|
30
29
|
EOH
|
31
|
-
not_if { File.exist?("#{
|
30
|
+
not_if { File.exist?("#{modules}/PSReadLine/PSReadline.dll") }
|
32
31
|
end
|
33
32
|
|
34
33
|
# PowerShell AllUsersAllHosts profile
|
35
|
-
profile = "
|
34
|
+
profile = "C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\profile.ps1"
|
36
35
|
|
37
36
|
template profile do
|
38
37
|
source 'ise_profile.ps1.erb'
|
@@ -29,7 +29,7 @@ describe command('choco list -l git-credential-manager-for-windows') do
|
|
29
29
|
end
|
30
30
|
|
31
31
|
describe command('Get-Module -ListAvailable -Name posh-git') do
|
32
|
-
its(:stdout) { should match(/Script 0.7.0
|
32
|
+
its(:stdout) { should match(/Script 0.7.1.0 posh-git/) }
|
33
33
|
end
|
34
34
|
|
35
35
|
describe file('C:\Users\Administrator\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1') do
|
@@ -12,6 +12,10 @@
|
|
12
12
|
"azure_resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
|
13
13
|
"azure_object_id": "{{env `AZURE_OBJECT_ID`}}",
|
14
14
|
"azure_location": "",
|
15
|
+
"azure_image_publisher": "Canonical",
|
16
|
+
"azure_image_offer": "UbuntuServer",
|
17
|
+
"azure_image_sku": "14.04.5-LTS",
|
18
|
+
"azure_image_version": "latest",
|
15
19
|
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
|
16
20
|
"gce_project_id": "{{env `GCE_PROJECT_ID`}}",
|
17
21
|
"gce_zone": "{{env `GCE_ZONE`}}",
|
@@ -56,9 +60,10 @@
|
|
56
60
|
"capture_container_name": "images",
|
57
61
|
"capture_name_prefix": "automate",
|
58
62
|
"os_type": "Linux",
|
59
|
-
"image_publisher": "
|
60
|
-
"image_offer": "
|
61
|
-
"image_sku": "
|
63
|
+
"image_publisher": "{{ user `azure_image_publisher` }}",
|
64
|
+
"image_offer": "{{ user `azure_image_offer` }}",
|
65
|
+
"image_sku": "{{ user `azure_image_sku` }}",
|
66
|
+
"image_version": "{{ user `azure_image_version` }}",
|
62
67
|
"location": "{{user `azure_location`}}",
|
63
68
|
"vm_size": "Standard_DS3_v2",
|
64
69
|
"ssh_username": "{{user `ssh_username`}}",
|
@@ -12,6 +12,10 @@
|
|
12
12
|
"azure_resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
|
13
13
|
"azure_object_id": "{{env `AZURE_OBJECT_ID`}}",
|
14
14
|
"azure_location": "",
|
15
|
+
"azure_image_publisher": "Canonical",
|
16
|
+
"azure_image_offer": "UbuntuServer",
|
17
|
+
"azure_image_sku": "14.04.5-LTS",
|
18
|
+
"azure_image_version": "latest",
|
15
19
|
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
|
16
20
|
"gce_project_id": "{{env `GCE_PROJECT_ID`}}",
|
17
21
|
"gce_zone": "{{env `GCE_ZONE`}}",
|
@@ -56,9 +60,10 @@
|
|
56
60
|
"capture_container_name": "images",
|
57
61
|
"capture_name_prefix": "build-node",
|
58
62
|
"os_type": "Linux",
|
59
|
-
"image_publisher": "
|
60
|
-
"image_offer": "
|
61
|
-
"image_sku": "
|
63
|
+
"image_publisher": "{{ user `azure_image_publisher` }}",
|
64
|
+
"image_offer": "{{ user `azure_image_offer` }}",
|
65
|
+
"image_sku": "{{ user `azure_image_sku` }}",
|
66
|
+
"image_version": "{{ user `azure_image_version` }}",
|
62
67
|
"location": "{{user `azure_location`}}",
|
63
68
|
"vm_size": "Standard_DS3_v2",
|
64
69
|
"ssh_username": "{{user `ssh_username`}}",
|
@@ -12,6 +12,10 @@
|
|
12
12
|
"azure_resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
|
13
13
|
"azure_object_id": "{{env `AZURE_OBJECT_ID`}}",
|
14
14
|
"azure_location": "",
|
15
|
+
"azure_image_publisher": "Canonical",
|
16
|
+
"azure_image_offer": "UbuntuServer",
|
17
|
+
"azure_image_sku": "14.04.5-LTS",
|
18
|
+
"azure_image_version": "latest",
|
15
19
|
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
|
16
20
|
"gce_project_id": "{{env `GCE_PROJECT_ID`}}",
|
17
21
|
"gce_zone": "{{env `GCE_ZONE`}}",
|
@@ -56,9 +60,10 @@
|
|
56
60
|
"capture_container_name": "images",
|
57
61
|
"capture_name_prefix": "chef-server",
|
58
62
|
"os_type": "Linux",
|
59
|
-
"image_publisher": "
|
60
|
-
"image_offer": "
|
61
|
-
"image_sku": "
|
63
|
+
"image_publisher": "{{ user `azure_image_publisher` }}",
|
64
|
+
"image_offer": "{{ user `azure_image_offer` }}",
|
65
|
+
"image_sku": "{{ user `azure_image_sku` }}",
|
66
|
+
"image_version": "{{ user `azure_image_version` }}",
|
62
67
|
"location": "{{user `azure_location`}}",
|
63
68
|
"vm_size": "Standard_DS3_v2",
|
64
69
|
"ssh_username": "{{user `ssh_username`}}",
|
@@ -12,6 +12,10 @@
|
|
12
12
|
"azure_resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
|
13
13
|
"azure_object_id": "{{env `AZURE_OBJECT_ID`}}",
|
14
14
|
"azure_location": "",
|
15
|
+
"azure_image_publisher": "Canonical",
|
16
|
+
"azure_image_offer": "UbuntuServer",
|
17
|
+
"azure_image_sku": "14.04.5-LTS",
|
18
|
+
"azure_image_version": "latest",
|
15
19
|
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
|
16
20
|
"gce_project_id": "{{env `GCE_PROJECT_ID`}}",
|
17
21
|
"gce_zone": "{{env `GCE_ZONE`}}",
|
@@ -54,9 +58,10 @@
|
|
54
58
|
"capture_container_name": "images",
|
55
59
|
"capture_name_prefix": "compliance",
|
56
60
|
"os_type": "Linux",
|
57
|
-
"image_publisher": "
|
58
|
-
"image_offer": "
|
59
|
-
"image_sku": "
|
61
|
+
"image_publisher": "{{ user `azure_image_publisher` }}",
|
62
|
+
"image_offer": "{{ user `azure_image_offer` }}",
|
63
|
+
"image_sku": "{{ user `azure_image_sku` }}",
|
64
|
+
"image_version": "{{ user `azure_image_version` }}",
|
60
65
|
"location": "{{user `azure_location`}}",
|
61
66
|
"vm_size": "Standard_DS3_v2",
|
62
67
|
"ssh_username": "{{user `ssh_username`}}",
|
@@ -12,6 +12,10 @@
|
|
12
12
|
"azure_resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
|
13
13
|
"azure_object_id": "{{env `AZURE_OBJECT_ID`}}",
|
14
14
|
"azure_location": "",
|
15
|
+
"azure_image_publisher": "MicrosoftWindowsServer",
|
16
|
+
"azure_image_offer": "WindowsServer",
|
17
|
+
"azure_image_sku": "2012-R2-Datacenter",
|
18
|
+
"azure_image_version": "latest",
|
15
19
|
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
|
16
20
|
"gce_project_id": "{{env `GCE_PROJECT_ID`}}",
|
17
21
|
"gce_zone": "{{env `GCE_ZONE`}}",
|
@@ -58,9 +62,10 @@
|
|
58
62
|
"capture_container_name": "images",
|
59
63
|
"capture_name_prefix": "automate-infranode-{{user `node-name`}}-{{timestamp}}",
|
60
64
|
"os_type": "Windows",
|
61
|
-
"image_publisher": "
|
62
|
-
"image_offer": "
|
63
|
-
"image_sku": "
|
65
|
+
"image_publisher": "{{ user `azure_image_publisher` }}",
|
66
|
+
"image_offer": "{{ user `azure_image_offer` }}",
|
67
|
+
"image_sku": "{{ user `azure_image_sku` }}",
|
68
|
+
"image_version": "{{ user `azure_image_version` }}",
|
64
69
|
"location": "{{user `azure_location`}}",
|
65
70
|
"vm_size": "Standard_DS3_v2",
|
66
71
|
"communicator": "winrm",
|
@@ -12,6 +12,10 @@
|
|
12
12
|
"azure_resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
|
13
13
|
"azure_object_id": "{{env `AZURE_OBJECT_ID`}}",
|
14
14
|
"azure_location": "",
|
15
|
+
"azure_image_publisher": "Canonical",
|
16
|
+
"azure_image_offer": "UbuntuServer",
|
17
|
+
"azure_image_sku": "14.04.5-LTS",
|
18
|
+
"azure_image_version": "latest",
|
15
19
|
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
|
16
20
|
"gce_project_id": "{{env `GCE_PROJECT_ID`}}",
|
17
21
|
"gce_zone": "{{env `GCE_ZONE`}}",
|
@@ -54,9 +58,10 @@
|
|
54
58
|
"capture_container_name": "images",
|
55
59
|
"capture_name_prefix": "infranode-{{user `node-name`}}",
|
56
60
|
"os_type": "Linux",
|
57
|
-
"image_publisher": "
|
58
|
-
"image_offer": "
|
59
|
-
"image_sku": "
|
61
|
+
"image_publisher": "{{ user `azure_image_publisher` }}",
|
62
|
+
"image_offer": "{{ user `azure_image_offer` }}",
|
63
|
+
"image_sku": "{{ user `azure_image_sku` }}",
|
64
|
+
"image_version": "{{ user `azure_image_version` }}",
|
60
65
|
"location": "{{user `azure_location`}}",
|
61
66
|
"vm_size": "Standard_DS3_v2",
|
62
67
|
"ssh_username": "{{user `ssh_username`}}",
|
@@ -12,6 +12,10 @@
|
|
12
12
|
"azure_resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
|
13
13
|
"azure_object_id": "{{env `AZURE_OBJECT_ID`}}",
|
14
14
|
"azure_location": "",
|
15
|
+
"azure_image_publisher": "MicrosoftWindowsServer",
|
16
|
+
"azure_image_offer": "WindowsServer",
|
17
|
+
"azure_image_sku": "2012-R2-Datacenter",
|
18
|
+
"azure_image_version": "latest",
|
15
19
|
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
|
16
20
|
"gce_project_id": "{{env `GCE_PROJECT_ID`}}",
|
17
21
|
"gce_zone": "{{env `GCE_ZONE`}}",
|
@@ -56,9 +60,10 @@
|
|
56
60
|
"capture_container_name": "images",
|
57
61
|
"capture_name_prefix": "workstation-{{user `workstation-number`}}-{{timestamp}}",
|
58
62
|
"os_type": "Windows",
|
59
|
-
"image_publisher": "
|
60
|
-
"image_offer": "
|
61
|
-
"image_sku": "
|
63
|
+
"image_publisher": "{{ user `azure_image_publisher` }}",
|
64
|
+
"image_offer": "{{ user `azure_image_offer` }}",
|
65
|
+
"image_sku": "{{ user `azure_image_sku` }}",
|
66
|
+
"image_version": "{{ user `azure_image_version` }}",
|
62
67
|
"location": "{{user `azure_location`}}",
|
63
68
|
"vm_size": "Standard_DS3_v2",
|
64
69
|
"communicator": "winrm",
|