wombat-cli 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +23 -23
- data/.travis.yml +22 -27
- data/CHANGELOG.md +438 -423
- data/DESIGN.md +49 -49
- data/Gemfile +5 -5
- data/README.md +146 -146
- data/Rakefile +26 -26
- data/bin/wombat +24 -24
- data/generator_files/Vagrantfile +120 -120
- data/generator_files/cookbooks/automate/.gitignore +16 -16
- data/generator_files/cookbooks/automate/.kitchen.ec2.yml +34 -34
- data/generator_files/cookbooks/automate/.kitchen.yml +24 -24
- data/generator_files/cookbooks/automate/Berksfile +6 -6
- data/generator_files/cookbooks/automate/README.md +4 -4
- data/generator_files/cookbooks/automate/chefignore +102 -102
- data/generator_files/cookbooks/automate/libraries/_helper.rb +52 -52
- data/generator_files/cookbooks/automate/libraries/delivery_api.rb +204 -204
- data/generator_files/cookbooks/automate/libraries/delivery_project.rb +31 -31
- data/generator_files/cookbooks/automate/libraries/dsl.rb +4 -4
- data/generator_files/cookbooks/automate/metadata.rb +11 -11
- data/generator_files/cookbooks/automate/recipes/default.rb +118 -124
- data/generator_files/cookbooks/automate/recipes/update-users.rb +48 -48
- data/generator_files/cookbooks/automate/templates/delivery.erb +6 -6
- data/generator_files/cookbooks/automate/test/fixtures/cookbooks/mock_data/files/automate.crt +26 -26
- data/generator_files/cookbooks/automate/test/fixtures/cookbooks/mock_data/files/automate.key +27 -27
- data/generator_files/cookbooks/automate/test/fixtures/cookbooks/mock_data/files/chef.crt +25 -25
- data/generator_files/cookbooks/automate/test/fixtures/cookbooks/mock_data/files/chef.key +27 -27
- data/generator_files/cookbooks/automate/test/fixtures/cookbooks/mock_data/files/compliance.crt +26 -26
- data/generator_files/cookbooks/automate/test/fixtures/cookbooks/mock_data/files/compliance.key +27 -27
- data/generator_files/cookbooks/automate/test/fixtures/cookbooks/mock_data/files/private.pem +27 -27
- data/generator_files/cookbooks/automate/test/fixtures/cookbooks/mock_data/files/public.pub +1 -1
- data/generator_files/cookbooks/automate/test/fixtures/cookbooks/mock_data/metadata.rb +3 -3
- data/generator_files/cookbooks/automate/test/fixtures/cookbooks/mock_data/recipes/default.rb +27 -27
- data/generator_files/cookbooks/automate/test/integration/default/automate_spec.rb +56 -56
- data/generator_files/cookbooks/build_node/.gitignore +16 -16
- data/generator_files/cookbooks/build_node/.kitchen.ec2.yml +37 -37
- data/generator_files/cookbooks/build_node/.kitchen.yml +23 -23
- data/generator_files/cookbooks/build_node/Berksfile +8 -8
- data/generator_files/cookbooks/build_node/README.md +4 -4
- data/generator_files/cookbooks/build_node/chefignore +102 -102
- data/generator_files/cookbooks/build_node/metadata.rb +12 -12
- data/generator_files/cookbooks/build_node/recipes/default.rb +38 -38
- data/generator_files/cookbooks/build_node/templates/client.erb +2 -2
- data/generator_files/cookbooks/build_node/test/fixtures/cookbooks/mock_data/files/automate.crt +26 -26
- data/generator_files/cookbooks/build_node/test/fixtures/cookbooks/mock_data/files/automate.key +27 -27
- data/generator_files/cookbooks/build_node/test/fixtures/cookbooks/mock_data/files/chef.crt +25 -25
- data/generator_files/cookbooks/build_node/test/fixtures/cookbooks/mock_data/files/chef.key +27 -27
- data/generator_files/cookbooks/build_node/test/fixtures/cookbooks/mock_data/files/compliance.crt +26 -26
- data/generator_files/cookbooks/build_node/test/fixtures/cookbooks/mock_data/files/compliance.key +27 -27
- data/generator_files/cookbooks/build_node/test/fixtures/cookbooks/mock_data/files/private.pem +27 -27
- data/generator_files/cookbooks/build_node/test/fixtures/cookbooks/mock_data/files/public.pub +1 -1
- data/generator_files/cookbooks/build_node/test/fixtures/cookbooks/mock_data/metadata.rb +2 -2
- data/generator_files/cookbooks/build_node/test/fixtures/cookbooks/mock_data/recipes/default.rb +18 -18
- data/generator_files/cookbooks/build_node/test/integration/default/build-node_spec.rb +40 -40
- data/generator_files/cookbooks/chef_server/.gitignore +16 -16
- data/generator_files/cookbooks/chef_server/.kitchen.ec2.yml +34 -34
- data/generator_files/cookbooks/chef_server/.kitchen.yml +24 -24
- data/generator_files/cookbooks/chef_server/Berksfile +6 -6
- data/generator_files/cookbooks/chef_server/README.md +4 -4
- data/generator_files/cookbooks/chef_server/chefignore +102 -102
- data/generator_files/cookbooks/chef_server/metadata.rb +11 -11
- data/generator_files/cookbooks/chef_server/recipes/bootstrap_users.rb +91 -91
- data/generator_files/cookbooks/chef_server/recipes/default.rb +113 -113
- data/generator_files/cookbooks/chef_server/test/fixtures/cookbooks/mock_data/files/automate.crt +26 -26
- data/generator_files/cookbooks/chef_server/test/fixtures/cookbooks/mock_data/files/automate.key +27 -27
- data/generator_files/cookbooks/chef_server/test/fixtures/cookbooks/mock_data/files/chef.crt +25 -25
- data/generator_files/cookbooks/chef_server/test/fixtures/cookbooks/mock_data/files/chef.key +27 -27
- data/generator_files/cookbooks/chef_server/test/fixtures/cookbooks/mock_data/files/compliance.crt +26 -26
- data/generator_files/cookbooks/chef_server/test/fixtures/cookbooks/mock_data/files/compliance.key +27 -27
- data/generator_files/cookbooks/chef_server/test/fixtures/cookbooks/mock_data/files/private.pem +27 -27
- data/generator_files/cookbooks/chef_server/test/fixtures/cookbooks/mock_data/files/public.pub +1 -1
- data/generator_files/cookbooks/chef_server/test/fixtures/cookbooks/mock_data/metadata.rb +2 -2
- data/generator_files/cookbooks/chef_server/test/fixtures/cookbooks/mock_data/recipes/default.rb +23 -23
- data/generator_files/cookbooks/chef_server/test/integration/default/chef_server_spec.rb +50 -50
- data/generator_files/cookbooks/compliance/.gitignore +16 -16
- data/generator_files/cookbooks/compliance/.kitchen.ec2.yml +34 -34
- data/generator_files/cookbooks/compliance/.kitchen.yml +24 -24
- data/generator_files/cookbooks/compliance/Berksfile +7 -7
- data/generator_files/cookbooks/compliance/README.md +4 -4
- data/generator_files/cookbooks/compliance/chefignore +102 -102
- data/generator_files/cookbooks/compliance/metadata.rb +11 -11
- data/generator_files/cookbooks/compliance/recipes/default.rb +57 -57
- data/generator_files/cookbooks/compliance/spec/spec_helper.rb +2 -2
- data/generator_files/cookbooks/compliance/spec/unit/recipes/default_spec.rb +20 -20
- data/generator_files/cookbooks/compliance/test/fixtures/cookbooks/mock_data/files/automate.crt +26 -26
- data/generator_files/cookbooks/compliance/test/fixtures/cookbooks/mock_data/files/automate.key +27 -27
- data/generator_files/cookbooks/compliance/test/fixtures/cookbooks/mock_data/files/chef.crt +25 -25
- data/generator_files/cookbooks/compliance/test/fixtures/cookbooks/mock_data/files/chef.key +27 -27
- data/generator_files/cookbooks/compliance/test/fixtures/cookbooks/mock_data/files/compliance.crt +26 -26
- data/generator_files/cookbooks/compliance/test/fixtures/cookbooks/mock_data/files/compliance.key +27 -27
- data/generator_files/cookbooks/compliance/test/fixtures/cookbooks/mock_data/files/private.pem +27 -27
- data/generator_files/cookbooks/compliance/test/fixtures/cookbooks/mock_data/files/public.pub +1 -1
- data/generator_files/cookbooks/compliance/test/fixtures/cookbooks/mock_data/metadata.rb +4 -4
- data/generator_files/cookbooks/compliance/test/fixtures/cookbooks/mock_data/recipes/default.rb +21 -21
- data/generator_files/cookbooks/compliance/test/integration/default/compliance.rb +28 -28
- data/generator_files/cookbooks/infranodes/.gitignore +16 -16
- data/generator_files/cookbooks/infranodes/.kitchen.ec2.yml +48 -48
- data/generator_files/cookbooks/infranodes/.kitchen.yml +21 -21
- data/generator_files/cookbooks/infranodes/Berksfile +6 -6
- data/generator_files/cookbooks/infranodes/README.md +4 -4
- data/generator_files/cookbooks/infranodes/attributes/default.rb +2 -2
- data/generator_files/cookbooks/infranodes/chefignore +102 -102
- data/generator_files/cookbooks/infranodes/metadata.rb +13 -13
- data/generator_files/cookbooks/infranodes/recipes/default.rb +57 -57
- data/generator_files/cookbooks/infranodes/spec/spec_helper.rb +2 -2
- data/generator_files/cookbooks/infranodes/spec/unit/recipes/default_spec.rb +20 -20
- data/generator_files/cookbooks/infranodes/templates/default/client.rb.erb +5 -5
- data/generator_files/cookbooks/infranodes/test/fixtures/cookbooks/mock_data/files/automate.crt +26 -26
- data/generator_files/cookbooks/infranodes/test/fixtures/cookbooks/mock_data/files/automate.key +27 -27
- data/generator_files/cookbooks/infranodes/test/fixtures/cookbooks/mock_data/files/chef.crt +25 -25
- data/generator_files/cookbooks/infranodes/test/fixtures/cookbooks/mock_data/files/chef.key +27 -27
- data/generator_files/cookbooks/infranodes/test/fixtures/cookbooks/mock_data/files/compliance.crt +26 -26
- data/generator_files/cookbooks/infranodes/test/fixtures/cookbooks/mock_data/files/compliance.key +27 -27
- data/generator_files/cookbooks/infranodes/test/fixtures/cookbooks/mock_data/files/private.pem +27 -27
- data/generator_files/cookbooks/infranodes/test/fixtures/cookbooks/mock_data/files/public.pub +1 -1
- data/generator_files/cookbooks/infranodes/test/fixtures/cookbooks/mock_data/metadata.rb +3 -3
- data/generator_files/cookbooks/infranodes/test/fixtures/cookbooks/mock_data/recipes/default.rb +27 -27
- data/generator_files/cookbooks/infranodes/test/integration/default/infranodes_spec.rb +22 -22
- data/generator_files/cookbooks/infranodes/test/integration/helpers/serverspec/spec_helper.rb +8 -8
- data/generator_files/cookbooks/wombat/.gitignore +16 -16
- data/generator_files/cookbooks/wombat/.kitchen.yml +43 -43
- data/generator_files/cookbooks/wombat/Berksfile +5 -5
- data/generator_files/cookbooks/wombat/README.md +4 -4
- data/generator_files/cookbooks/wombat/attributes/default.rb +79 -80
- data/generator_files/cookbooks/wombat/attributes/packer.rb +18 -18
- data/generator_files/cookbooks/wombat/chefignore +102 -102
- data/generator_files/cookbooks/wombat/metadata.rb +13 -13
- data/generator_files/cookbooks/wombat/recipes/authorized-keys.rb +20 -20
- data/generator_files/cookbooks/wombat/recipes/default.rb +111 -111
- data/generator_files/cookbooks/wombat/recipes/etc-hosts.rb +51 -51
- data/generator_files/cookbooks/workstation/.gitignore +16 -16
- data/generator_files/cookbooks/workstation/.kitchen.azure.yml +45 -0
- data/generator_files/cookbooks/workstation/.kitchen.ec2.yml +46 -30
- data/generator_files/cookbooks/workstation/.kitchen.yml +42 -22
- data/generator_files/cookbooks/workstation/Berksfile +7 -7
- data/generator_files/cookbooks/workstation/README.md +3 -3
- data/generator_files/cookbooks/workstation/chefignore +106 -102
- data/generator_files/cookbooks/workstation/files/atom.apm.list +10 -7
- data/generator_files/cookbooks/workstation/files/atom.config.cson +6 -3
- data/generator_files/cookbooks/workstation/{templates/default/ise_profile.ps1.erb → files/ise_profile.ps1} +11 -11
- data/generator_files/cookbooks/workstation/libraries/home.rb +4 -4
- data/generator_files/cookbooks/workstation/metadata.rb +14 -14
- data/generator_files/cookbooks/workstation/recipes/browser.rb +53 -58
- data/generator_files/cookbooks/workstation/recipes/certs-keys.rb +41 -45
- data/generator_files/cookbooks/workstation/recipes/chef.rb +29 -28
- data/generator_files/cookbooks/workstation/recipes/default.rb +24 -21
- data/generator_files/cookbooks/workstation/recipes/dotnet.rb +19 -17
- data/generator_files/cookbooks/workstation/recipes/editor.rb +46 -18
- data/generator_files/cookbooks/workstation/recipes/profile.rb +14 -41
- data/generator_files/cookbooks/workstation/recipes/terminal.rb +11 -11
- data/generator_files/cookbooks/workstation/templates/default/bookmarks.html.erb +23 -23
- data/generator_files/cookbooks/workstation/templates/default/data_collector.rb.erb +2 -2
- data/generator_files/cookbooks/workstation/templates/default/knife.rb.erb +10 -10
- data/generator_files/cookbooks/workstation/templates/default/master_preferences.json.erb +28 -28
- data/generator_files/cookbooks/workstation/templates/default/ssh_config.erb +16 -16
- data/generator_files/cookbooks/workstation/test/fixtures/cookbooks/mock_data/files/automate.crt +26 -26
- data/generator_files/cookbooks/workstation/test/fixtures/cookbooks/mock_data/files/automate.key +27 -27
- data/generator_files/cookbooks/workstation/test/fixtures/cookbooks/mock_data/files/chef.crt +26 -26
- data/generator_files/cookbooks/workstation/test/fixtures/cookbooks/mock_data/files/chef.key +27 -27
- data/generator_files/cookbooks/workstation/test/fixtures/cookbooks/mock_data/files/compliance.crt +26 -26
- data/generator_files/cookbooks/workstation/test/fixtures/cookbooks/mock_data/files/compliance.key +27 -27
- data/generator_files/cookbooks/workstation/test/fixtures/cookbooks/mock_data/files/private.pem +27 -27
- data/generator_files/cookbooks/workstation/test/fixtures/cookbooks/mock_data/files/public.pub +1 -1
- data/generator_files/cookbooks/workstation/test/fixtures/cookbooks/mock_data/metadata.rb +2 -2
- data/generator_files/cookbooks/workstation/test/fixtures/cookbooks/mock_data/recipes/default.rb +21 -21
- data/generator_files/cookbooks/workstation/test/integration/default/workstation_spec.rb +77 -37
- data/generator_files/packer/automate.json +136 -136
- data/generator_files/packer/build-node.json +142 -142
- data/generator_files/packer/chef-server.json +137 -137
- data/generator_files/packer/compliance.json +133 -133
- data/generator_files/packer/infranodes-windows.json +143 -143
- data/generator_files/packer/infranodes.json +134 -134
- data/generator_files/packer/scripts/PreSysprep.ps1 +9 -0
- data/generator_files/packer/workstation.json +160 -142
- data/generator_files/templates/arm.md.json.erb +754 -754
- data/generator_files/templates/arm.vhd.json.erb +630 -630
- data/generator_files/templates/bootstrap-aws.erb +39 -39
- data/generator_files/templates/cfn.json.erb +675 -674
- data/generator_files/wombat.yml +75 -74
- data/lib/wombat/aws.rb +67 -67
- data/lib/wombat/build.rb +392 -392
- data/lib/wombat/cli.rb +254 -254
- data/lib/wombat/common.rb +420 -420
- data/lib/wombat/crypto.rb +65 -65
- data/lib/wombat/delete.rb +67 -67
- data/lib/wombat/deploy.rb +128 -128
- data/lib/wombat/init.rb +32 -32
- data/lib/wombat/latest.rb +27 -27
- data/lib/wombat/output.rb +101 -101
- data/lib/wombat/update.rb +20 -20
- data/lib/wombat/version.rb +3 -3
- data/lib/wombat.rb +8 -8
- data/spec/functional/common_spec.rb +26 -26
- data/spec/spec_helper.rb +103 -103
- data/spec/unit/common_spec.rb +116 -116
- data/terraform/README.md +13 -13
- data/terraform/templates/terraform.tfvars.erb +12 -12
- data/terraform/wombat.tf +328 -328
- data/wombat-cli.gemspec +36 -36
- metadata +6 -4
@@ -1,30 +1,46 @@
|
|
1
|
-
|
2
|
-
---
|
3
|
-
driver:
|
4
|
-
name: ec2
|
5
|
-
aws_ssh_key_id: <%= ENV["EC2_SSH_KEY_NAME"] %>
|
6
|
-
security_group_ids: ["sg-401e0e25"]
|
7
|
-
region: us-west-2
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
provisioner:
|
12
|
-
name: chef_zero
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
name:
|
1
|
+
|
2
|
+
---
|
3
|
+
driver:
|
4
|
+
name: ec2
|
5
|
+
aws_ssh_key_id: <%= ENV["EC2_SSH_KEY_NAME"] %>
|
6
|
+
security_group_ids: ["sg-401e0e25"]
|
7
|
+
region: us-west-2
|
8
|
+
instance_type: c4.large
|
9
|
+
ebs_optimized: true
|
10
|
+
|
11
|
+
provisioner:
|
12
|
+
name: chef_zero
|
13
|
+
require_chef_omnibus: latest
|
14
|
+
|
15
|
+
verifier:
|
16
|
+
name: inspec
|
17
|
+
|
18
|
+
platforms:
|
19
|
+
- name: windows-2012r2
|
20
|
+
# driver_config:
|
21
|
+
# image_id: ami-8d0c07f4
|
22
|
+
- name: windows-2016
|
23
|
+
# driver_config:
|
24
|
+
# image_id: ami-48b4bf31
|
25
|
+
|
26
|
+
transport:
|
27
|
+
ssh_key: <%= ENV["EC2_SSH_KEY_PATH"] %>
|
28
|
+
|
29
|
+
suites:
|
30
|
+
- name: default
|
31
|
+
run_list:
|
32
|
+
- recipe[mock_data]
|
33
|
+
- recipe[workstation]
|
34
|
+
attributes:
|
35
|
+
chocolatey:
|
36
|
+
upgrade: true
|
37
|
+
demo:
|
38
|
+
domain_prefix: ''
|
39
|
+
domain: 'animals.biz'
|
40
|
+
enterprise: 'mammals'
|
41
|
+
org: 'marsupials'
|
42
|
+
hosts:
|
43
|
+
workstations: 1
|
44
|
+
workstation-number: 1
|
45
|
+
versions:
|
46
|
+
chefdk: stable-latest
|
@@ -1,22 +1,42 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
name:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
1
|
+
|
2
|
+
---
|
3
|
+
driver:
|
4
|
+
name: vagrant
|
5
|
+
provider: virtualbox
|
6
|
+
linked_clone: true
|
7
|
+
customize:
|
8
|
+
memory: 4096
|
9
|
+
|
10
|
+
provisioner:
|
11
|
+
name: chef_zero
|
12
|
+
require_chef_omnibus: latest
|
13
|
+
|
14
|
+
verifier:
|
15
|
+
name: inspec
|
16
|
+
|
17
|
+
platforms:
|
18
|
+
- name: windows-2012r2
|
19
|
+
driver_config:
|
20
|
+
box: mwrock/Windows2012R2
|
21
|
+
- name: windows-2016
|
22
|
+
driver_config:
|
23
|
+
box: mwrock/Windows2016
|
24
|
+
|
25
|
+
suites:
|
26
|
+
- name: default
|
27
|
+
run_list:
|
28
|
+
- recipe[mock_data]
|
29
|
+
- recipe[workstation]
|
30
|
+
attributes:
|
31
|
+
chocolatey:
|
32
|
+
upgrade: true
|
33
|
+
demo:
|
34
|
+
domain_prefix: ''
|
35
|
+
domain: 'animals.biz'
|
36
|
+
enterprise: 'mammals'
|
37
|
+
org: 'marsupials'
|
38
|
+
hosts:
|
39
|
+
workstations: 1
|
40
|
+
workstation-number: 1
|
41
|
+
versions:
|
42
|
+
chefdk: stable-latest
|
@@ -1,7 +1,7 @@
|
|
1
|
-
source 'https://supermarket.chef.io'
|
2
|
-
|
3
|
-
metadata
|
4
|
-
|
5
|
-
cookbook 'wombat', path: '../wombat'
|
6
|
-
cookbook 'mock_data', path: 'test/fixtures/cookbooks/mock_data'
|
7
|
-
|
1
|
+
source 'https://supermarket.chef.io'
|
2
|
+
|
3
|
+
metadata
|
4
|
+
|
5
|
+
cookbook 'wombat', path: '../wombat'
|
6
|
+
cookbook 'mock_data', path: 'test/fixtures/cookbooks/mock_data'
|
7
|
+
|
@@ -1,3 +1,3 @@
|
|
1
|
-
# workstation
|
2
|
-
|
3
|
-
Configures a Windows workstation for use in a demo
|
1
|
+
# workstation
|
2
|
+
|
3
|
+
Configures a Windows workstation for use in a demo
|
@@ -1,102 +1,106 @@
|
|
1
|
-
# Put files/directories that should be ignored in this file when uploading
|
2
|
-
# to a chef-server or supermarket.
|
3
|
-
# Lines that start with '# ' are comments.
|
4
|
-
|
5
|
-
# OS generated files #
|
6
|
-
######################
|
7
|
-
.DS_Store
|
8
|
-
Icon?
|
9
|
-
nohup.out
|
10
|
-
ehthumbs.db
|
11
|
-
Thumbs.db
|
12
|
-
|
13
|
-
# SASS #
|
14
|
-
########
|
15
|
-
.sass-cache
|
16
|
-
|
17
|
-
# EDITORS #
|
18
|
-
###########
|
19
|
-
\#*
|
20
|
-
.#*
|
21
|
-
*~
|
22
|
-
*.sw[a-z]
|
23
|
-
*.bak
|
24
|
-
REVISION
|
25
|
-
TAGS*
|
26
|
-
tmtags
|
27
|
-
*_flymake.*
|
28
|
-
*_flymake
|
29
|
-
*.tmproj
|
30
|
-
.project
|
31
|
-
.settings
|
32
|
-
mkmf.log
|
33
|
-
|
34
|
-
## COMPILED ##
|
35
|
-
##############
|
36
|
-
a.out
|
37
|
-
*.o
|
38
|
-
*.pyc
|
39
|
-
*.so
|
40
|
-
*.com
|
41
|
-
*.class
|
42
|
-
*.dll
|
43
|
-
*.exe
|
44
|
-
*/rdoc/
|
45
|
-
|
46
|
-
# Testing #
|
47
|
-
###########
|
48
|
-
.watchr
|
49
|
-
.rspec
|
50
|
-
spec/*
|
51
|
-
spec/fixtures/*
|
52
|
-
test/*
|
53
|
-
features/*
|
54
|
-
examples/*
|
55
|
-
Guardfile
|
56
|
-
Procfile
|
57
|
-
.kitchen*
|
58
|
-
.rubocop.yml
|
59
|
-
spec/*
|
60
|
-
Rakefile
|
61
|
-
.travis.yml
|
62
|
-
.foodcritic
|
63
|
-
.codeclimate.yml
|
64
|
-
|
65
|
-
# SCM #
|
66
|
-
#######
|
67
|
-
.git
|
68
|
-
*/.git
|
69
|
-
.gitignore
|
70
|
-
.gitmodules
|
71
|
-
.gitconfig
|
72
|
-
.gitattributes
|
73
|
-
.svn
|
74
|
-
*/.bzr/*
|
75
|
-
*/.hg/*
|
76
|
-
*/.svn/*
|
77
|
-
|
78
|
-
# Berkshelf #
|
79
|
-
#############
|
80
|
-
Berksfile
|
81
|
-
Berksfile.lock
|
82
|
-
cookbooks/*
|
83
|
-
tmp
|
84
|
-
|
85
|
-
# Cookbooks #
|
86
|
-
#############
|
87
|
-
CONTRIBUTING*
|
88
|
-
CHANGELOG*
|
89
|
-
TESTING*
|
90
|
-
MAINTAINERS.toml
|
91
|
-
|
92
|
-
# Strainer #
|
93
|
-
############
|
94
|
-
Colanderfile
|
95
|
-
Strainerfile
|
96
|
-
.colander
|
97
|
-
.strainer
|
98
|
-
|
99
|
-
# Vagrant #
|
100
|
-
###########
|
101
|
-
.vagrant
|
102
|
-
Vagrantfile
|
1
|
+
# Put files/directories that should be ignored in this file when uploading
|
2
|
+
# to a chef-server or supermarket.
|
3
|
+
# Lines that start with '# ' are comments.
|
4
|
+
|
5
|
+
# OS generated files #
|
6
|
+
######################
|
7
|
+
.DS_Store
|
8
|
+
Icon?
|
9
|
+
nohup.out
|
10
|
+
ehthumbs.db
|
11
|
+
Thumbs.db
|
12
|
+
|
13
|
+
# SASS #
|
14
|
+
########
|
15
|
+
.sass-cache
|
16
|
+
|
17
|
+
# EDITORS #
|
18
|
+
###########
|
19
|
+
\#*
|
20
|
+
.#*
|
21
|
+
*~
|
22
|
+
*.sw[a-z]
|
23
|
+
*.bak
|
24
|
+
REVISION
|
25
|
+
TAGS*
|
26
|
+
tmtags
|
27
|
+
*_flymake.*
|
28
|
+
*_flymake
|
29
|
+
*.tmproj
|
30
|
+
.project
|
31
|
+
.settings
|
32
|
+
mkmf.log
|
33
|
+
|
34
|
+
## COMPILED ##
|
35
|
+
##############
|
36
|
+
a.out
|
37
|
+
*.o
|
38
|
+
*.pyc
|
39
|
+
*.so
|
40
|
+
*.com
|
41
|
+
*.class
|
42
|
+
*.dll
|
43
|
+
*.exe
|
44
|
+
*/rdoc/
|
45
|
+
|
46
|
+
# Testing #
|
47
|
+
###########
|
48
|
+
.watchr
|
49
|
+
.rspec
|
50
|
+
spec/*
|
51
|
+
spec/fixtures/*
|
52
|
+
test/*
|
53
|
+
features/*
|
54
|
+
examples/*
|
55
|
+
Guardfile
|
56
|
+
Procfile
|
57
|
+
.kitchen*
|
58
|
+
.rubocop.yml
|
59
|
+
spec/*
|
60
|
+
Rakefile
|
61
|
+
.travis.yml
|
62
|
+
.foodcritic
|
63
|
+
.codeclimate.yml
|
64
|
+
|
65
|
+
# SCM #
|
66
|
+
#######
|
67
|
+
.git
|
68
|
+
*/.git
|
69
|
+
.gitignore
|
70
|
+
.gitmodules
|
71
|
+
.gitconfig
|
72
|
+
.gitattributes
|
73
|
+
.svn
|
74
|
+
*/.bzr/*
|
75
|
+
*/.hg/*
|
76
|
+
*/.svn/*
|
77
|
+
|
78
|
+
# Berkshelf #
|
79
|
+
#############
|
80
|
+
Berksfile
|
81
|
+
Berksfile.lock
|
82
|
+
cookbooks/*
|
83
|
+
tmp
|
84
|
+
|
85
|
+
# Cookbooks #
|
86
|
+
#############
|
87
|
+
CONTRIBUTING*
|
88
|
+
CHANGELOG*
|
89
|
+
TESTING*
|
90
|
+
MAINTAINERS.toml
|
91
|
+
|
92
|
+
# Strainer #
|
93
|
+
############
|
94
|
+
Colanderfile
|
95
|
+
Strainerfile
|
96
|
+
.colander
|
97
|
+
.strainer
|
98
|
+
|
99
|
+
# Vagrant #
|
100
|
+
###########
|
101
|
+
.vagrant
|
102
|
+
Vagrantfile
|
103
|
+
|
104
|
+
# direnv #
|
105
|
+
###########
|
106
|
+
.envrc
|
@@ -1,7 +1,10 @@
|
|
1
|
-
base16-syntax
|
2
|
-
git-difftool
|
3
|
-
language-chef
|
4
|
-
linter
|
5
|
-
|
6
|
-
|
7
|
-
linter-
|
1
|
+
base16-syntax
|
2
|
+
git-difftool
|
3
|
+
language-chef
|
4
|
+
linter
|
5
|
+
intentions
|
6
|
+
busy-signal
|
7
|
+
linter-ui-default
|
8
|
+
linter-erb
|
9
|
+
linter-foodcritic
|
10
|
+
linter-js-yaml
|
@@ -1,11 +1,11 @@
|
|
1
|
-
# Load posh-git
|
2
|
-
Import-Module posh-git
|
3
|
-
|
4
|
-
# Load PSReadline
|
5
|
-
Import-Module PSReadLine
|
6
|
-
|
7
|
-
# set home
|
8
|
-
$env:HOME = $env:USERPROFILE
|
9
|
-
|
10
|
-
# setup environment for ChefDK
|
11
|
-
chef shell-init powershell | Invoke-Expression
|
1
|
+
# Load posh-git
|
2
|
+
Import-Module posh-git
|
3
|
+
|
4
|
+
# Load PSReadline
|
5
|
+
Import-Module PSReadLine
|
6
|
+
|
7
|
+
# set home
|
8
|
+
$env:HOME = $env:USERPROFILE
|
9
|
+
|
10
|
+
# setup environment for ChefDK
|
11
|
+
chef shell-init powershell | Invoke-Expression
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
def home
|
3
|
-
'C:\\Users\\Default'
|
4
|
-
end
|
1
|
+
|
2
|
+
def home
|
3
|
+
'C:\\Users\\Default'
|
4
|
+
end
|
@@ -1,14 +1,14 @@
|
|
1
|
-
name 'workstation'
|
2
|
-
maintainer 'Team Wombat'
|
3
|
-
maintainer_email 'cheeseplus@chef.io'
|
4
|
-
license 'Apache 2.0'
|
5
|
-
description 'Configures a Windows workstation'
|
6
|
-
long_description 'Configures a Windows workstation'
|
7
|
-
version '0.
|
8
|
-
supports 'windows'
|
9
|
-
|
10
|
-
depends 'chocolatey'
|
11
|
-
depends 'windows'
|
12
|
-
depends 'hostsfile'
|
13
|
-
depends 'chef-ingredient'
|
14
|
-
depends 'wombat'
|
1
|
+
name 'workstation'
|
2
|
+
maintainer 'Team Wombat'
|
3
|
+
maintainer_email 'cheeseplus@chef.io'
|
4
|
+
license 'Apache 2.0'
|
5
|
+
description 'Configures a Windows workstation'
|
6
|
+
long_description 'Configures a Windows workstation'
|
7
|
+
version '0.5.1'
|
8
|
+
supports 'windows'
|
9
|
+
|
10
|
+
depends 'chocolatey'
|
11
|
+
depends 'windows'
|
12
|
+
depends 'hostsfile'
|
13
|
+
depends 'chef-ingredient'
|
14
|
+
depends 'wombat'
|
@@ -1,58 +1,53 @@
|
|
1
|
-
chef_server_url = "https://#{node['demo']['domain_prefix']}chef.#{node['demo']['domain']}/organizations/#{node['demo']['org']}"
|
2
|
-
automate_url = "https://#{node['demo']['domain_prefix']}automate.#{node['demo']['domain']}/e/#{node['demo']['enterprise']}"
|
3
|
-
compliance_url = "https://#{node['demo']['domain_prefix']}compliance.#{node['demo']['domain']}"
|
4
|
-
|
5
|
-
template "#{home}/bookmarks.html" do
|
6
|
-
source 'bookmarks.html.erb'
|
7
|
-
action :create
|
8
|
-
variables(
|
9
|
-
automate_url: "#{automate_url}/#/dashboard",
|
10
|
-
viz_url: "https://#{node['demo']['domain_prefix']}automate.#{node['demo']['domain']}/viz",
|
11
|
-
chef_server_url: "#{chef_server_url}/nodes",
|
12
|
-
compliance_url: "#{compliance_url}/",
|
13
|
-
tutorial_url: node['demo']['tutorial_url']
|
14
|
-
)
|
15
|
-
end
|
16
|
-
|
17
|
-
prefs = 'C:\Program Files (x86)\Google\Chrome\Application\master_preferences'
|
18
|
-
|
19
|
-
template prefs do
|
20
|
-
source 'master_preferences.json.erb'
|
21
|
-
variables(
|
22
|
-
homepage: 'https://chef.io/',
|
23
|
-
import_bookmarks_from_file: "#{home}/bookmarks.html"
|
24
|
-
)
|
25
|
-
action :create
|
26
|
-
end
|
27
|
-
|
28
|
-
registry_key 'Set Chrome as default HTTP protocol association' do
|
29
|
-
action :create
|
30
|
-
key 'HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice'
|
31
|
-
values [
|
32
|
-
{:
|
33
|
-
{:
|
34
|
-
]
|
35
|
-
end
|
36
|
-
|
37
|
-
registry_key 'Set Chrome as default HTTPS protocol association' do
|
38
|
-
action :create
|
39
|
-
key 'HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice'
|
40
|
-
values [
|
41
|
-
{:
|
42
|
-
{:
|
43
|
-
]
|
44
|
-
end
|
45
|
-
|
46
|
-
# Enable ClearType for Chrome 52+
|
47
|
-
registry_key
|
48
|
-
values [
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
:type => :dword,
|
55
|
-
:data => 2
|
56
|
-
}]
|
57
|
-
action :create
|
58
|
-
end
|
1
|
+
chef_server_url = "https://#{node['demo']['domain_prefix']}chef.#{node['demo']['domain']}/organizations/#{node['demo']['org']}"
|
2
|
+
automate_url = "https://#{node['demo']['domain_prefix']}automate.#{node['demo']['domain']}/e/#{node['demo']['enterprise']}"
|
3
|
+
compliance_url = "https://#{node['demo']['domain_prefix']}compliance.#{node['demo']['domain']}"
|
4
|
+
|
5
|
+
template "#{home}/bookmarks.html" do
|
6
|
+
source 'bookmarks.html.erb'
|
7
|
+
action :create
|
8
|
+
variables(
|
9
|
+
automate_url: "#{automate_url}/#/dashboard",
|
10
|
+
viz_url: "https://#{node['demo']['domain_prefix']}automate.#{node['demo']['domain']}/viz",
|
11
|
+
chef_server_url: "#{chef_server_url}/nodes",
|
12
|
+
compliance_url: "#{compliance_url}/",
|
13
|
+
tutorial_url: node['demo']['tutorial_url']
|
14
|
+
)
|
15
|
+
end
|
16
|
+
|
17
|
+
prefs = 'C:\Program Files (x86)\Google\Chrome\Application\master_preferences'
|
18
|
+
|
19
|
+
template prefs do
|
20
|
+
source 'master_preferences.json.erb'
|
21
|
+
variables(
|
22
|
+
homepage: 'https://chef.io/',
|
23
|
+
import_bookmarks_from_file: "#{home}/bookmarks.html"
|
24
|
+
)
|
25
|
+
action :create
|
26
|
+
end
|
27
|
+
|
28
|
+
registry_key 'Set Chrome as default HTTP protocol association' do
|
29
|
+
action :create
|
30
|
+
key 'HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice'
|
31
|
+
values [
|
32
|
+
{ name: 'Hash', type: :string, data: 'TW2AqyYVQlM=' },
|
33
|
+
{ name: 'ProgId', type: :string, data: 'ChromeHTML' },
|
34
|
+
]
|
35
|
+
end
|
36
|
+
|
37
|
+
registry_key 'Set Chrome as default HTTPS protocol association' do
|
38
|
+
action :create
|
39
|
+
key 'HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice'
|
40
|
+
values [
|
41
|
+
{ name: 'Hash', type: :string, data: '4N1og3kLvcE=' },
|
42
|
+
{ name: 'ProgId', type: :string, data: 'ChromeHTML' },
|
43
|
+
]
|
44
|
+
end
|
45
|
+
|
46
|
+
# Enable ClearType for Chrome 52+
|
47
|
+
registry_key 'HKEY_CURRENT_USER\\Control Panel\\Desktop' do
|
48
|
+
values [
|
49
|
+
{ name: 'FontSmoothing', type: :string, data: '2' },
|
50
|
+
{ name: 'FontSmoothingType', type: :dword, data: 2 },
|
51
|
+
]
|
52
|
+
action :create
|
53
|
+
end
|
@@ -1,45 +1,41 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
#{home}/.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
content lazy { IO.read("C:/Windows/Temp/private.pem") }
|
43
|
-
action :create
|
44
|
-
end
|
45
|
-
end
|
1
|
+
%W(
|
2
|
+
#{home}/.chef
|
3
|
+
#{home}/.chef/trusted_certs
|
4
|
+
#{home}/.ssh
|
5
|
+
).each do |directory|
|
6
|
+
directory directory
|
7
|
+
end
|
8
|
+
|
9
|
+
template "#{home}/.ssh/config" do
|
10
|
+
source 'ssh_config.erb'
|
11
|
+
variables(
|
12
|
+
home: home,
|
13
|
+
server: "#{node['demo']['domain_prefix']}automate.#{node['demo']['domain']}",
|
14
|
+
ent: node['demo']['enterprise'],
|
15
|
+
automate_user: "workstation-#{node['demo']['workstation-number']}",
|
16
|
+
ssh_user: node['demo']['admin-user']
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
node['demo']['certs'].each do |f|
|
21
|
+
file "#{home}/.chef/trusted_certs/#{node['demo']['domain_prefix']}#{f}_#{node['demo']['domain'].tr('.', '_')}.crt" do
|
22
|
+
content lazy { IO.read("C:/Windows/Temp/#{f}.crt") }
|
23
|
+
action :create
|
24
|
+
end
|
25
|
+
|
26
|
+
powershell_script 'Install certs to Root CA' do
|
27
|
+
code "Import-Certificate -FilePath C:/Windows/Temp/#{f}.crt -CertStoreLocation Cert:/LocalMachine/Root"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
file "#{home}/.ssh/id_rsa.pub" do
|
32
|
+
content lazy { IO.read('C:/Windows/Temp/public.pub') }
|
33
|
+
action :create
|
34
|
+
end
|
35
|
+
|
36
|
+
%W(#{home}/.chef/private.pem #{home}/.ssh/id_rsa).each do |path|
|
37
|
+
file path do
|
38
|
+
content lazy { IO.read('C:/Windows/Temp/private.pem') }
|
39
|
+
action :create
|
40
|
+
end
|
41
|
+
end
|