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,137 +1,137 @@
|
|
1
|
-
{
|
2
|
-
"variables": {
|
3
|
-
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
|
4
|
-
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
|
5
|
-
"aws_region": "{{env `AWS_REGION`}}",
|
6
|
-
"aws_source_ami": "ami-8e0b9499",
|
7
|
-
"azure_client_id": "{{env `AZURE_CLIENT_ID`}}",
|
8
|
-
"azure_tenant_id": "{{env `AZURE_TENANT_ID`}}",
|
9
|
-
"azure_client_secret": "{{env `AZURE_CLIENT_SECRET`}}",
|
10
|
-
"azure_subscription_id": "{{env `AZURE_SUBSCRIPTION_ID`}}",
|
11
|
-
"azure_storage_account": "{{env `AZURE_STORAGE_ACCOUNT`}}",
|
12
|
-
"azure_resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
|
13
|
-
"azure_object_id": "{{env `AZURE_OBJECT_ID`}}",
|
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",
|
19
|
-
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
|
20
|
-
"gce_project_id": "{{env `GCE_PROJECT_ID`}}",
|
21
|
-
"gce_zone": "{{env `GCE_ZONE`}}",
|
22
|
-
"gce_source_image": "ubuntu-1404-trusty-v20160809a",
|
23
|
-
"build-nodes": "1",
|
24
|
-
"chef_channel": "stable",
|
25
|
-
"chef_install_url": "curl -L https://omnitruck.chef.io/install.sh",
|
26
|
-
"chef_ver": "latest",
|
27
|
-
"chefdk": "stable-latest",
|
28
|
-
"automate": "stable-latest",
|
29
|
-
"domain": "animals.biz",
|
30
|
-
"domain_prefix": "",
|
31
|
-
"enterprise": "mammals",
|
32
|
-
"org": "marsupials",
|
33
|
-
"workstations": "1",
|
34
|
-
"ssh_username": "ubuntu"
|
35
|
-
},
|
36
|
-
"builders": [
|
37
|
-
{
|
38
|
-
"type": "amazon-ebs",
|
39
|
-
"access_key": "{{user `aws_access_key`}}",
|
40
|
-
"secret_key": "{{user `aws_secret_key`}}",
|
41
|
-
"region": "{{user `aws_region`}}",
|
42
|
-
"source_ami": "{{user `aws_source_ami`}}",
|
43
|
-
"instance_type": "m4.large",
|
44
|
-
"communicator": "ssh",
|
45
|
-
"associate_public_ip_address": true,
|
46
|
-
"ssh_private_ip": false,
|
47
|
-
"ssh_username": "{{user `ssh_username`}}",
|
48
|
-
"ssh_pty": true,
|
49
|
-
"ami_name": "automate-{{timestamp}}"
|
50
|
-
},
|
51
|
-
{
|
52
|
-
"type": "azure-arm",
|
53
|
-
"subscription_id": "{{user `azure_subscription_id`}}",
|
54
|
-
"client_id": "{{user `azure_client_id`}}",
|
55
|
-
"client_secret": "{{user `azure_client_secret`}}",
|
56
|
-
"tenant_id": "{{user `azure_tenant_id`}}",
|
57
|
-
"resource_group_name": "{{user `azure_resource_group`}}",
|
58
|
-
"storage_account": "{{user `azure_storage_account`}}",
|
59
|
-
"object_id": "{{user `azure_object_id`}}",
|
60
|
-
"capture_container_name": "images",
|
61
|
-
"capture_name_prefix": "automate",
|
62
|
-
"os_type": "Linux",
|
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` }}",
|
67
|
-
"location": "{{user `azure_location`}}",
|
68
|
-
"vm_size": "Standard_DS3_v2",
|
69
|
-
"ssh_username": "{{user `ssh_username`}}",
|
70
|
-
"ssh_pty": true
|
71
|
-
},
|
72
|
-
{
|
73
|
-
"type": "googlecompute",
|
74
|
-
"account_file": "{{user `gce_account_file`}}",
|
75
|
-
"project_id": "{{user `gce_project_id`}}",
|
76
|
-
"source_image": "{{user `gce_source_image`}}",
|
77
|
-
"zone": "{{user `gce_zone`}}",
|
78
|
-
"disk_type": "pd-ssd",
|
79
|
-
"disk_size": "80",
|
80
|
-
"image_name": "automate-{{timestamp}}",
|
81
|
-
"machine_type": "n1-standard-2",
|
82
|
-
"ssh_username": "{{user `ssh_username`}}",
|
83
|
-
"ssh_pty": true
|
84
|
-
}
|
85
|
-
],
|
86
|
-
"provisioners": [
|
87
|
-
{
|
88
|
-
"type": "file",
|
89
|
-
"source": "{{pwd}}/files/",
|
90
|
-
"destination": "/tmp"
|
91
|
-
},
|
92
|
-
{
|
93
|
-
"type": "file",
|
94
|
-
"source": "{{pwd}}/keys/",
|
95
|
-
"destination": "/tmp"
|
96
|
-
},
|
97
|
-
{
|
98
|
-
"type": "chef-solo",
|
99
|
-
"install_command": "{{user `chef_install_url`}} | sudo bash -s -- -c {{user `chef_channel`}} -v {{user `chef_ver`}}",
|
100
|
-
"cookbook_paths": [
|
101
|
-
"{{pwd}}/vendored-cookbooks/automate"
|
102
|
-
],
|
103
|
-
"run_list": [
|
104
|
-
"automate",
|
105
|
-
"wombat::authorized-keys",
|
106
|
-
"wombat::etc-hosts"
|
107
|
-
],
|
108
|
-
"json": {
|
109
|
-
"demo": {
|
110
|
-
"admin-user": "{{user `ssh_username`}}",
|
111
|
-
"domain_prefix": "{{user `domain_prefix`}}",
|
112
|
-
"domain": "{{user `domain`}}",
|
113
|
-
"enterprise": "{{user `enterprise`}}",
|
114
|
-
"org": "{{user `org`}}",
|
115
|
-
"build-nodes": "{{user `build-nodes`}}",
|
116
|
-
"workstations": "{{user `workstations`}}",
|
117
|
-
"versions": {
|
118
|
-
"chefdk": "{{user `chefdk`}}",
|
119
|
-
"automate": "{{user `automate`}}"
|
120
|
-
}
|
121
|
-
}
|
122
|
-
}
|
123
|
-
},
|
124
|
-
{
|
125
|
-
"only": [
|
126
|
-
"azure-arm"
|
127
|
-
],
|
128
|
-
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
|
129
|
-
"inline": [
|
130
|
-
"/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
|
131
|
-
],
|
132
|
-
"inline_shebang": "/bin/sh -x",
|
133
|
-
"type": "shell",
|
134
|
-
"skip_clean": true
|
135
|
-
}
|
136
|
-
]
|
1
|
+
{
|
2
|
+
"variables": {
|
3
|
+
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
|
4
|
+
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
|
5
|
+
"aws_region": "{{env `AWS_REGION`}}",
|
6
|
+
"aws_source_ami": "ami-8e0b9499",
|
7
|
+
"azure_client_id": "{{env `AZURE_CLIENT_ID`}}",
|
8
|
+
"azure_tenant_id": "{{env `AZURE_TENANT_ID`}}",
|
9
|
+
"azure_client_secret": "{{env `AZURE_CLIENT_SECRET`}}",
|
10
|
+
"azure_subscription_id": "{{env `AZURE_SUBSCRIPTION_ID`}}",
|
11
|
+
"azure_storage_account": "{{env `AZURE_STORAGE_ACCOUNT`}}",
|
12
|
+
"azure_resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
|
13
|
+
"azure_object_id": "{{env `AZURE_OBJECT_ID`}}",
|
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",
|
19
|
+
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
|
20
|
+
"gce_project_id": "{{env `GCE_PROJECT_ID`}}",
|
21
|
+
"gce_zone": "{{env `GCE_ZONE`}}",
|
22
|
+
"gce_source_image": "ubuntu-1404-trusty-v20160809a",
|
23
|
+
"build-nodes": "1",
|
24
|
+
"chef_channel": "stable",
|
25
|
+
"chef_install_url": "curl -L https://omnitruck.chef.io/install.sh",
|
26
|
+
"chef_ver": "latest",
|
27
|
+
"chefdk": "stable-latest",
|
28
|
+
"automate": "stable-latest",
|
29
|
+
"domain": "animals.biz",
|
30
|
+
"domain_prefix": "",
|
31
|
+
"enterprise": "mammals",
|
32
|
+
"org": "marsupials",
|
33
|
+
"workstations": "1",
|
34
|
+
"ssh_username": "ubuntu"
|
35
|
+
},
|
36
|
+
"builders": [
|
37
|
+
{
|
38
|
+
"type": "amazon-ebs",
|
39
|
+
"access_key": "{{user `aws_access_key`}}",
|
40
|
+
"secret_key": "{{user `aws_secret_key`}}",
|
41
|
+
"region": "{{user `aws_region`}}",
|
42
|
+
"source_ami": "{{user `aws_source_ami`}}",
|
43
|
+
"instance_type": "m4.large",
|
44
|
+
"communicator": "ssh",
|
45
|
+
"associate_public_ip_address": true,
|
46
|
+
"ssh_private_ip": false,
|
47
|
+
"ssh_username": "{{user `ssh_username`}}",
|
48
|
+
"ssh_pty": true,
|
49
|
+
"ami_name": "automate-{{timestamp}}"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"type": "azure-arm",
|
53
|
+
"subscription_id": "{{user `azure_subscription_id`}}",
|
54
|
+
"client_id": "{{user `azure_client_id`}}",
|
55
|
+
"client_secret": "{{user `azure_client_secret`}}",
|
56
|
+
"tenant_id": "{{user `azure_tenant_id`}}",
|
57
|
+
"resource_group_name": "{{user `azure_resource_group`}}",
|
58
|
+
"storage_account": "{{user `azure_storage_account`}}",
|
59
|
+
"object_id": "{{user `azure_object_id`}}",
|
60
|
+
"capture_container_name": "images",
|
61
|
+
"capture_name_prefix": "automate",
|
62
|
+
"os_type": "Linux",
|
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` }}",
|
67
|
+
"location": "{{user `azure_location`}}",
|
68
|
+
"vm_size": "Standard_DS3_v2",
|
69
|
+
"ssh_username": "{{user `ssh_username`}}",
|
70
|
+
"ssh_pty": true
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"type": "googlecompute",
|
74
|
+
"account_file": "{{user `gce_account_file`}}",
|
75
|
+
"project_id": "{{user `gce_project_id`}}",
|
76
|
+
"source_image": "{{user `gce_source_image`}}",
|
77
|
+
"zone": "{{user `gce_zone`}}",
|
78
|
+
"disk_type": "pd-ssd",
|
79
|
+
"disk_size": "80",
|
80
|
+
"image_name": "automate-{{timestamp}}",
|
81
|
+
"machine_type": "n1-standard-2",
|
82
|
+
"ssh_username": "{{user `ssh_username`}}",
|
83
|
+
"ssh_pty": true
|
84
|
+
}
|
85
|
+
],
|
86
|
+
"provisioners": [
|
87
|
+
{
|
88
|
+
"type": "file",
|
89
|
+
"source": "{{pwd}}/files/",
|
90
|
+
"destination": "/tmp"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"type": "file",
|
94
|
+
"source": "{{pwd}}/keys/",
|
95
|
+
"destination": "/tmp"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"type": "chef-solo",
|
99
|
+
"install_command": "{{user `chef_install_url`}} | sudo bash -s -- -c {{user `chef_channel`}} -v {{user `chef_ver`}}",
|
100
|
+
"cookbook_paths": [
|
101
|
+
"{{pwd}}/vendored-cookbooks/automate"
|
102
|
+
],
|
103
|
+
"run_list": [
|
104
|
+
"automate",
|
105
|
+
"wombat::authorized-keys",
|
106
|
+
"wombat::etc-hosts"
|
107
|
+
],
|
108
|
+
"json": {
|
109
|
+
"demo": {
|
110
|
+
"admin-user": "{{user `ssh_username`}}",
|
111
|
+
"domain_prefix": "{{user `domain_prefix`}}",
|
112
|
+
"domain": "{{user `domain`}}",
|
113
|
+
"enterprise": "{{user `enterprise`}}",
|
114
|
+
"org": "{{user `org`}}",
|
115
|
+
"build-nodes": "{{user `build-nodes`}}",
|
116
|
+
"workstations": "{{user `workstations`}}",
|
117
|
+
"versions": {
|
118
|
+
"chefdk": "{{user `chefdk`}}",
|
119
|
+
"automate": "{{user `automate`}}"
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"only": [
|
126
|
+
"azure-arm"
|
127
|
+
],
|
128
|
+
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
|
129
|
+
"inline": [
|
130
|
+
"/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
|
131
|
+
],
|
132
|
+
"inline_shebang": "/bin/sh -x",
|
133
|
+
"type": "shell",
|
134
|
+
"skip_clean": true
|
135
|
+
}
|
136
|
+
]
|
137
137
|
}
|
@@ -1,143 +1,143 @@
|
|
1
|
-
{
|
2
|
-
"variables": {
|
3
|
-
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
|
4
|
-
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
|
5
|
-
"aws_region": "{{env `AWS_REGION`}}",
|
6
|
-
"aws_source_ami": "ami-8e0b9499",
|
7
|
-
"azure_client_id": "{{env `AZURE_CLIENT_ID`}}",
|
8
|
-
"azure_tenant_id": "{{env `AZURE_TENANT_ID`}}",
|
9
|
-
"azure_client_secret": "{{env `AZURE_CLIENT_SECRET`}}",
|
10
|
-
"azure_subscription_id": "{{env `AZURE_SUBSCRIPTION_ID`}}",
|
11
|
-
"azure_storage_account": "{{env `AZURE_STORAGE_ACCOUNT`}}",
|
12
|
-
"azure_resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
|
13
|
-
"azure_object_id": "{{env `AZURE_OBJECT_ID`}}",
|
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",
|
19
|
-
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
|
20
|
-
"gce_project_id": "{{env `GCE_PROJECT_ID`}}",
|
21
|
-
"gce_zone": "{{env `GCE_ZONE`}}",
|
22
|
-
"gce_source_image": "ubuntu-1404-trusty-v20160809a",
|
23
|
-
"build-nodes": "1",
|
24
|
-
"chef_channel": "stable",
|
25
|
-
"chef_install_url": "curl -L https://omnitruck.chef.io/install.sh",
|
26
|
-
"chef_ver": "latest",
|
27
|
-
"chefdk": "stable-latest",
|
28
|
-
"domain": "animals.biz",
|
29
|
-
"domain_prefix": "",
|
30
|
-
"enterprise": "mammals",
|
31
|
-
"node-number": "1",
|
32
|
-
"org": "marsupials",
|
33
|
-
"ssh_username": "ubuntu",
|
34
|
-
"workstations": "1"
|
35
|
-
},
|
36
|
-
"builders": [
|
37
|
-
{
|
38
|
-
"type": "amazon-ebs",
|
39
|
-
"access_key": "{{user `aws_access_key`}}",
|
40
|
-
"secret_key": "{{user `aws_secret_key`}}",
|
41
|
-
"region": "{{user `aws_region`}}",
|
42
|
-
"source_ami": "{{user `aws_source_ami`}}",
|
43
|
-
"instance_type": "t2.micro",
|
44
|
-
"communicator": "ssh",
|
45
|
-
"associate_public_ip_address": true,
|
46
|
-
"ssh_private_ip": false,
|
47
|
-
"ssh_username": "{{user `ssh_username`}}",
|
48
|
-
"ssh_pty": true,
|
49
|
-
"ami_name": "build-node-{{user `node-number`}}-{{timestamp}}"
|
50
|
-
},
|
51
|
-
{
|
52
|
-
"type": "azure-arm",
|
53
|
-
"subscription_id": "{{user `azure_subscription_id`}}",
|
54
|
-
"client_id": "{{user `azure_client_id`}}",
|
55
|
-
"client_secret": "{{user `azure_client_secret`}}",
|
56
|
-
"tenant_id": "{{user `azure_tenant_id`}}",
|
57
|
-
"resource_group_name": "{{user `azure_resource_group`}}",
|
58
|
-
"storage_account": "{{user `azure_storage_account`}}",
|
59
|
-
"object_id": "{{user `azure_object_id`}}",
|
60
|
-
"capture_container_name": "images",
|
61
|
-
"capture_name_prefix": "build-node",
|
62
|
-
"os_type": "Linux",
|
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` }}",
|
67
|
-
"location": "{{user `azure_location`}}",
|
68
|
-
"vm_size": "Standard_DS3_v2",
|
69
|
-
"ssh_username": "{{user `ssh_username`}}",
|
70
|
-
"ssh_pty": true
|
71
|
-
},
|
72
|
-
{
|
73
|
-
"type": "googlecompute",
|
74
|
-
"account_file": "{{user `gce_account_file`}}",
|
75
|
-
"project_id": "{{user `gce_project_id`}}",
|
76
|
-
"source_image": "{{user `gce_source_image`}}",
|
77
|
-
"zone": "{{user `gce_zone`}}",
|
78
|
-
"disk_type": "pd-ssd",
|
79
|
-
"disk_size": "80",
|
80
|
-
"image_name": "build-node-{{user `node-number`}}-{{timestamp}}",
|
81
|
-
"machine_type": "n1-standard-2",
|
82
|
-
"ssh_username": "{{user `ssh_username`}}",
|
83
|
-
"ssh_pty": true
|
84
|
-
}
|
85
|
-
],
|
86
|
-
"provisioners": [
|
87
|
-
{
|
88
|
-
"type": "file",
|
89
|
-
"source": "{{pwd}}/files/",
|
90
|
-
"destination": "/tmp"
|
91
|
-
},
|
92
|
-
{
|
93
|
-
"type": "file",
|
94
|
-
"source": "{{pwd}}/keys/",
|
95
|
-
"destination": "/tmp"
|
96
|
-
},
|
97
|
-
{
|
98
|
-
"type": "chef-solo",
|
99
|
-
"install_command": "{{user `chef_install_url`}} | sudo bash -s -- -c {{user `chef_channel`}} -v {{user `chef_ver`}}",
|
100
|
-
"cookbook_paths": [
|
101
|
-
"{{pwd}}/vendored-cookbooks/build_node"
|
102
|
-
],
|
103
|
-
"run_list": [
|
104
|
-
"build_node",
|
105
|
-
"wombat::authorized-keys",
|
106
|
-
"wombat::etc-hosts"
|
107
|
-
],
|
108
|
-
"json": {
|
109
|
-
"demo": {
|
110
|
-
"admin-user": "{{user `ssh_username`}}",
|
111
|
-
"domain_prefix": "{{user `domain_prefix`}}",
|
112
|
-
"domain": "{{user `domain`}}",
|
113
|
-
"enterprise": "{{user `enterprise`}}",
|
114
|
-
"org": "{{user `org`}}",
|
115
|
-
"node-number": "{{user `node-number`}}",
|
116
|
-
"build-nodes": "{{user `build-nodes`}}",
|
117
|
-
"workstations": "{{user `workstations`}}",
|
118
|
-
"versions": {
|
119
|
-
"chefdk": "{{user `chefdk`}}"
|
120
|
-
}
|
121
|
-
},
|
122
|
-
"delivery_build": {
|
123
|
-
"trusted_certs": {
|
124
|
-
"chef-server": "/tmp/chef.crt",
|
125
|
-
"delivery": "/tmp/automate.crt"
|
126
|
-
}
|
127
|
-
}
|
128
|
-
}
|
129
|
-
},
|
130
|
-
{
|
131
|
-
"only": [
|
132
|
-
"azure-arm"
|
133
|
-
],
|
134
|
-
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
|
135
|
-
"inline": [
|
136
|
-
"/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
|
137
|
-
],
|
138
|
-
"inline_shebang": "/bin/sh -x",
|
139
|
-
"type": "shell",
|
140
|
-
"skip_clean": true
|
141
|
-
}
|
142
|
-
]
|
1
|
+
{
|
2
|
+
"variables": {
|
3
|
+
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
|
4
|
+
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
|
5
|
+
"aws_region": "{{env `AWS_REGION`}}",
|
6
|
+
"aws_source_ami": "ami-8e0b9499",
|
7
|
+
"azure_client_id": "{{env `AZURE_CLIENT_ID`}}",
|
8
|
+
"azure_tenant_id": "{{env `AZURE_TENANT_ID`}}",
|
9
|
+
"azure_client_secret": "{{env `AZURE_CLIENT_SECRET`}}",
|
10
|
+
"azure_subscription_id": "{{env `AZURE_SUBSCRIPTION_ID`}}",
|
11
|
+
"azure_storage_account": "{{env `AZURE_STORAGE_ACCOUNT`}}",
|
12
|
+
"azure_resource_group": "{{env `AZURE_RESOURCE_GROUP`}}",
|
13
|
+
"azure_object_id": "{{env `AZURE_OBJECT_ID`}}",
|
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",
|
19
|
+
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
|
20
|
+
"gce_project_id": "{{env `GCE_PROJECT_ID`}}",
|
21
|
+
"gce_zone": "{{env `GCE_ZONE`}}",
|
22
|
+
"gce_source_image": "ubuntu-1404-trusty-v20160809a",
|
23
|
+
"build-nodes": "1",
|
24
|
+
"chef_channel": "stable",
|
25
|
+
"chef_install_url": "curl -L https://omnitruck.chef.io/install.sh",
|
26
|
+
"chef_ver": "latest",
|
27
|
+
"chefdk": "stable-latest",
|
28
|
+
"domain": "animals.biz",
|
29
|
+
"domain_prefix": "",
|
30
|
+
"enterprise": "mammals",
|
31
|
+
"node-number": "1",
|
32
|
+
"org": "marsupials",
|
33
|
+
"ssh_username": "ubuntu",
|
34
|
+
"workstations": "1"
|
35
|
+
},
|
36
|
+
"builders": [
|
37
|
+
{
|
38
|
+
"type": "amazon-ebs",
|
39
|
+
"access_key": "{{user `aws_access_key`}}",
|
40
|
+
"secret_key": "{{user `aws_secret_key`}}",
|
41
|
+
"region": "{{user `aws_region`}}",
|
42
|
+
"source_ami": "{{user `aws_source_ami`}}",
|
43
|
+
"instance_type": "t2.micro",
|
44
|
+
"communicator": "ssh",
|
45
|
+
"associate_public_ip_address": true,
|
46
|
+
"ssh_private_ip": false,
|
47
|
+
"ssh_username": "{{user `ssh_username`}}",
|
48
|
+
"ssh_pty": true,
|
49
|
+
"ami_name": "build-node-{{user `node-number`}}-{{timestamp}}"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"type": "azure-arm",
|
53
|
+
"subscription_id": "{{user `azure_subscription_id`}}",
|
54
|
+
"client_id": "{{user `azure_client_id`}}",
|
55
|
+
"client_secret": "{{user `azure_client_secret`}}",
|
56
|
+
"tenant_id": "{{user `azure_tenant_id`}}",
|
57
|
+
"resource_group_name": "{{user `azure_resource_group`}}",
|
58
|
+
"storage_account": "{{user `azure_storage_account`}}",
|
59
|
+
"object_id": "{{user `azure_object_id`}}",
|
60
|
+
"capture_container_name": "images",
|
61
|
+
"capture_name_prefix": "build-node",
|
62
|
+
"os_type": "Linux",
|
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` }}",
|
67
|
+
"location": "{{user `azure_location`}}",
|
68
|
+
"vm_size": "Standard_DS3_v2",
|
69
|
+
"ssh_username": "{{user `ssh_username`}}",
|
70
|
+
"ssh_pty": true
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"type": "googlecompute",
|
74
|
+
"account_file": "{{user `gce_account_file`}}",
|
75
|
+
"project_id": "{{user `gce_project_id`}}",
|
76
|
+
"source_image": "{{user `gce_source_image`}}",
|
77
|
+
"zone": "{{user `gce_zone`}}",
|
78
|
+
"disk_type": "pd-ssd",
|
79
|
+
"disk_size": "80",
|
80
|
+
"image_name": "build-node-{{user `node-number`}}-{{timestamp}}",
|
81
|
+
"machine_type": "n1-standard-2",
|
82
|
+
"ssh_username": "{{user `ssh_username`}}",
|
83
|
+
"ssh_pty": true
|
84
|
+
}
|
85
|
+
],
|
86
|
+
"provisioners": [
|
87
|
+
{
|
88
|
+
"type": "file",
|
89
|
+
"source": "{{pwd}}/files/",
|
90
|
+
"destination": "/tmp"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"type": "file",
|
94
|
+
"source": "{{pwd}}/keys/",
|
95
|
+
"destination": "/tmp"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"type": "chef-solo",
|
99
|
+
"install_command": "{{user `chef_install_url`}} | sudo bash -s -- -c {{user `chef_channel`}} -v {{user `chef_ver`}}",
|
100
|
+
"cookbook_paths": [
|
101
|
+
"{{pwd}}/vendored-cookbooks/build_node"
|
102
|
+
],
|
103
|
+
"run_list": [
|
104
|
+
"build_node",
|
105
|
+
"wombat::authorized-keys",
|
106
|
+
"wombat::etc-hosts"
|
107
|
+
],
|
108
|
+
"json": {
|
109
|
+
"demo": {
|
110
|
+
"admin-user": "{{user `ssh_username`}}",
|
111
|
+
"domain_prefix": "{{user `domain_prefix`}}",
|
112
|
+
"domain": "{{user `domain`}}",
|
113
|
+
"enterprise": "{{user `enterprise`}}",
|
114
|
+
"org": "{{user `org`}}",
|
115
|
+
"node-number": "{{user `node-number`}}",
|
116
|
+
"build-nodes": "{{user `build-nodes`}}",
|
117
|
+
"workstations": "{{user `workstations`}}",
|
118
|
+
"versions": {
|
119
|
+
"chefdk": "{{user `chefdk`}}"
|
120
|
+
}
|
121
|
+
},
|
122
|
+
"delivery_build": {
|
123
|
+
"trusted_certs": {
|
124
|
+
"chef-server": "/tmp/chef.crt",
|
125
|
+
"delivery": "/tmp/automate.crt"
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
},
|
130
|
+
{
|
131
|
+
"only": [
|
132
|
+
"azure-arm"
|
133
|
+
],
|
134
|
+
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
|
135
|
+
"inline": [
|
136
|
+
"/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
|
137
|
+
],
|
138
|
+
"inline_shebang": "/bin/sh -x",
|
139
|
+
"type": "shell",
|
140
|
+
"skip_clean": true
|
141
|
+
}
|
142
|
+
]
|
143
143
|
}
|