Created
September 25, 2015 21:19
-
-
Save afiune/d2bd09c91a64cce5b00d to your computer and use it in GitHub Desktop.
Full Delivery Cluster Run with Vagrant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ delivery-cluster git:(afiune/158/lazy_delivery_cert) ✗ rake maintenance:clean_cache | |
| ➜ delivery-cluster git:(afiune/158/lazy_delivery_cert) ✗ rake setup:cluster | |
| Install rubygem dependencies locally | |
| Using rake 10.4.2 | |
| Using addressable 2.3.8 | |
| Using artifactory 2.3.0 | |
| Using jmespath 1.1.3 | |
| Using aws-sdk-core 2.1.23 | |
| Using aws-sdk-resources 2.1.23 | |
| Using aws-sdk 2.1.23 | |
| Using json 1.8.3 | |
| Using mini_portile 0.6.2 | |
| Using nokogiri 1.6.6.2 | |
| Using aws-sdk-v1 1.66.0 | |
| Using multipart-post 2.0.0 | |
| Using faraday 0.9.1 | |
| Using httpclient 2.6.0.1 | |
| Using berkshelf-api-client 1.3.0 | |
| Using buff-extensions 1.0.0 | |
| Using hashie 2.1.2 | |
| Using varia_model 0.4.0 | |
| Using buff-config 1.0.1 | |
| Using buff-ruby_engine 0.1.0 | |
| Using buff-shell_out 0.2.0 | |
| Using hitimes 1.2.3 | |
| Using timers 4.0.4 | |
| Using celluloid 0.16.0 | |
| Using nio4r 1.1.1 | |
| Using celluloid-io 0.16.2 | |
| Using cleanroom 1.0.0 | |
| Using minitar 0.5.4 | |
| Using sawyer 0.6.0 | |
| Using octokit 3.8.0 | |
| Using retryable 2.0.2 | |
| Using buff-ignore 1.1.1 | |
| Using erubis 2.7.0 | |
| Using mixlib-log 1.6.0 | |
| Using mixlib-authentication 1.3.0 | |
| Using net-http-persistent 2.9.4 | |
| Using semverse 1.2.1 | |
| Using ridley 4.2.0 | |
| Using dep-selector-libgecode 1.0.2 | |
| Using ffi 1.9.10 | |
| Using dep_selector 1.0.3 | |
| Using solve 1.2.1 | |
| Using thor 0.19.1 | |
| Using berkshelf 3.2.4 | |
| Using builder 3.2.2 | |
| Using mixlib-config 2.2.1 | |
| Using mixlib-shellout 2.1.0 | |
| Using chef-config 12.4.3 | |
| Using libyajl2 1.2.0 | |
| Using ffi-yajl 2.2.2 | |
| Using rack 1.6.4 | |
| Using uuidtools 2.1.5 | |
| Using chef-zero 4.2.3 | |
| Using diff-lcs 1.2.5 | |
| Using highline 1.7.7 | |
| Using mixlib-cli 1.5.0 | |
| Using net-ssh 2.9.2 | |
| Using net-ssh-gateway 1.2.0 | |
| Using net-ssh-multi 1.2.1 | |
| Using ipaddress 0.8.0 | |
| Using mime-types 2.6.2 | |
| Using systemu 2.6.5 | |
| Using wmi-lite 1.0.0 | |
| Using ohai 8.5.1 | |
| Using plist 3.1.0 | |
| Using coderay 1.1.0 | |
| Using method_source 0.8.2 | |
| Using slop 3.6.0 | |
| Using pry 0.10.1 | |
| Using rspec-support 3.3.0 | |
| Using rspec-core 3.3.2 | |
| Using rspec-expectations 3.3.1 | |
| Using rspec-mocks 3.3.2 | |
| Using rspec_junit_formatter 0.2.3 | |
| Using multi_json 1.11.2 | |
| Using rspec 3.3.0 | |
| Using rspec-its 1.2.0 | |
| Using net-scp 1.2.1 | |
| Using net-telnet 0.1.1 | |
| Using sfl 2.2 | |
| Using specinfra 2.43.8 | |
| Using serverspec 2.24.1 | |
| Using syslog-logger 1.6.8 | |
| Using chef 12.4.3 | |
| Using cheffish 1.5.0 | |
| Using inifile 2.0.2 | |
| Using mixlib-install 0.7.0 | |
| Using gssapi 1.2.0 | |
| Using gyoku 1.3.1 | |
| Using little-plugger 1.1.4 | |
| Using logging 1.8.2 | |
| Using nori 2.6.0 | |
| Using rubyntlm 0.4.0 | |
| Using winrm 1.3.4 | |
| Using chef-provisioning 1.4.0 from https://github.com/chef/chef-provisioning.git (at master) | |
| Using ubuntu_ami 0.4.1 | |
| Using chef-provisioning-aws 1.4.1 from https://github.com/chef/chef-provisioning-aws.git (at master) | |
| Using chef-provisioning-ssh 0.0.9 from https://github.com/chef/chef-provisioning-ssh.git (at master) | |
| Using chef-provisioning-vagrant 0.10.0 from https://github.com/chef/chef-provisioning-vagrant.git (at master) | |
| Using chef-vault 2.6.1 | |
| Using safe_yaml 1.0.4 | |
| Using test-kitchen 1.4.2 | |
| Using kitchen-vagrant 0.16.0 | |
| Using bundler 1.10.0 | |
| Bundle complete! 9 Gemfile dependencies, 104 gems now installed. | |
| Use `bundle show [gemname]` to see where a bundled gem is installed. | |
| Download and vendor the necessary cookbooks locally | |
| Resolving cookbook dependencies... | |
| Fetching 'chef-server-12' from source at vendor/chef-server-12 | |
| Fetching 'delivery-cluster' from source at . | |
| Fetching cookbook index from https://supermarket.chef.io... | |
| Using 7-zip (1.0.2) | |
| Using apt (2.7.0) | |
| Using apt-chef (0.1.0) | |
| Using build-essential (2.2.3) | |
| Using chef-ingredient (0.10.1) from https://github.com/chef-cookbooks/chef-ingredient.git (at master) | |
| Using chef-server-12 (0.1.7) from source at vendor/chef-server-12 | |
| Using chef-splunk (1.3.1) from https://github.com/chef-cookbooks/chef-splunk.git (at master) | |
| Using chef-sugar (3.1.1) | |
| Using chef-vault (1.3.0) | |
| Using chef_handler (1.1.6) | |
| Using delivery-cluster (0.3.16) from source at . | |
| Using delivery_build (0.2.22) from https://github.com/chef-cookbooks/delivery_build.git (at master) | |
| Using dmg (2.2.2) | |
| Using homebrew (1.13.0) | |
| Using git (4.2.2) | |
| Using hostsfile (2.4.5) | |
| Using omnibus (2.6.13) | |
| Using packagecloud (0.1.0) from https://github.com/afiune/packagecloud-cookbook.git (at master) | |
| Using push-jobs (2.4.2) | |
| Using runit (1.7.2) | |
| Using windows (1.36.6) | |
| Using windows-sdk (1.0.2) | |
| Using wix (1.1.0) | |
| Using yum (3.6.0) | |
| Using yum-chef (0.1.0) | |
| Using yum-epel (0.6.0) | |
| Vendoring 7-zip (1.0.2) to cookbooks/7-zip | |
| Vendoring apt (2.7.0) to cookbooks/apt | |
| Vendoring apt-chef (0.1.0) to cookbooks/apt-chef | |
| Vendoring build-essential (2.2.3) to cookbooks/build-essential | |
| Vendoring chef-ingredient (0.10.1) to cookbooks/chef-ingredient | |
| Vendoring chef-server-12 (0.1.7) to cookbooks/chef-server-12 | |
| Vendoring chef-splunk (1.3.1) to cookbooks/chef-splunk | |
| Vendoring chef-sugar (3.1.1) to cookbooks/chef-sugar | |
| Vendoring chef-vault (1.3.0) to cookbooks/chef-vault | |
| Vendoring chef_handler (1.1.6) to cookbooks/chef_handler | |
| Vendoring delivery-cluster (0.3.16) to cookbooks/delivery-cluster | |
| Vendoring delivery_build (0.2.22) to cookbooks/delivery_build | |
| Vendoring dmg (2.2.2) to cookbooks/dmg | |
| Vendoring git (4.2.2) to cookbooks/git | |
| Vendoring homebrew (1.13.0) to cookbooks/homebrew | |
| Vendoring hostsfile (2.4.5) to cookbooks/hostsfile | |
| Vendoring omnibus (2.6.13) to cookbooks/omnibus | |
| Vendoring packagecloud (0.1.0) to cookbooks/packagecloud | |
| Vendoring push-jobs (2.4.2) to cookbooks/push-jobs | |
| Vendoring runit (1.7.2) to cookbooks/runit | |
| Vendoring windows (1.36.6) to cookbooks/windows | |
| Vendoring windows-sdk (1.0.2) to cookbooks/windows-sdk | |
| Vendoring wix (1.1.0) to cookbooks/wix | |
| Vendoring yum (3.6.0) to cookbooks/yum | |
| Vendoring yum-chef (0.1.0) to cookbooks/yum-chef | |
| Vendoring yum-epel (0.6.0) to cookbooks/yum-epel | |
| Current chef environment => environments/vagrant.json | |
| Setup the Chef Delivery cluster | |
| Starting Chef Client, version 12.4.3 | |
| [2015-09-25T12:27:51-07:00] WARN: Run List override has been provided. | |
| [2015-09-25T12:27:51-07:00] WARN: Original Run List: [] | |
| [2015-09-25T12:27:51-07:00] WARN: Overridden Run List: [recipe[delivery-cluster::setup]] | |
| resolving cookbooks for run list: ["delivery-cluster::setup"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster | |
| - chef-server-12 | |
| - chef-ingredient | |
| - git | |
| - apt | |
| - yum | |
| - delivery_build | |
| - chef-splunk | |
| - packagecloud | |
| - hostsfile | |
| - apt-chef | |
| - yum-chef | |
| - build-essential | |
| - dmg | |
| - windows | |
| - chef-sugar | |
| - yum-epel | |
| - omnibus | |
| - push-jobs | |
| - chef-vault | |
| - chef_handler | |
| - 7-zip | |
| - homebrew | |
| - wix | |
| - windows-sdk | |
| - runit | |
| Compiling Cookbooks... | |
| [2015-09-25T12:28:13-07:00] WARN: You are overriding windows_package on {:os=>"windows"} with Chef::Resource::WindowsCookbookPackage: used to be Chef::Resource::WindowsPackage. Use override: true if this is what you intended. | |
| [2015-09-25T12:28:13-07:00] WARN: You declared a new resource Chef::Provider::GitClient::Source for resource git_client, but it comes alphabetically after Chef::Provider::GitClient::Package and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for git_client. | |
| Converging 26 resources | |
| Recipe: delivery-cluster::_settings | |
| * link[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data] action create | |
| - unlink existing symlink to file at /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data | |
| - create symlink at /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant | |
| Recipe: delivery-cluster::setup_chef_server | |
| * machine[chef-server-vagrant] action converge[2015-09-25T12:28:13-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T12:28:13-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - create node chef-server-vagrant at chefzero://localhost:8890 | |
| - add normal.tags = nil | |
| - add normal.chef_provisioning = {"reference"=>{"driver_url"=>"vagrant:/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/vms", "driver_version"=>"0.10.0", "vm_name"=>"chef-server-vagrant", "vm_file_path"=>"/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/vms/chef-server-vagrant.vm", "allocated_at"=>"2015-09-25 19:28:13 UTC", "host_node"=>"chefzero://localhost:8890/nodes/"}} | |
| - run vagrant up chef-server-vagrant --provider virtualbox (status was 'not created') | |
| - update node chef-server-vagrant at chefzero://localhost:8890 | |
| - add normal.chef_provisioning.reference.needs_reload = false | |
| - add normal.chef_provisioning.reference.forwarded_ports = {}[2015-09-25T12:28:57-07:00] ERROR: Unable to download /etc/chef/client.pem to /tmp/client.pem.2543470894 on vagrant@127.0.0.1 -- Error: command 'cp /etc/chef/client.pem /tmp/client.pem.2543470894' exited with code 1. | |
| [2015-09-25T12:28:57-07:00] WARN: Unable to clean up /tmp/client.pem.2543470894 on vagrant@127.0.0.1 -- Error: command 'rm /tmp/client.pem.2543470894' exited with code 1. | |
| - generate private key (2048 bits) | |
| - create directory /etc/chef on chef-server-vagrant | |
| - write file /etc/chef/client.pem on chef-server-vagrant | |
| - create client chef-server-vagrant at clients | |
| - add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtn+EiaZgb4sCjqFijwtv\n5BjtphHvpGbXnW2UbuIZr4OMvqAHgIvBb06hl3gneeJA4TMBoTgjVH0Ytbjd92KQ\nq+vBlbbIbpiA3/5UCmkhuzTnhmN3Tbhr7gb2dfjdqC70t/E7Tl7cO9FQTzaHKQEk\n3Y+L/ETHqqaoy5MfldfJJzftffTIZIPggh9GHsaDScF1gggcYemmogwEbv1h3Q+w\nctZZRwvYSEpQril6UAuRkmfQJDKhI2vMd7QQjrxUB0oWqVjxZDN6RX9N6oDbZS+T\nULBU50yM2FSQ4M6zp60LzaBV+I5zoUAMhKI81Qr1WM9QCjp4WkRdfN7EWRk/bi/z\nwwIDAQAB\n-----END PUBLIC KEY-----\n" | |
| - write file /etc/chef/client.rb on chef-server-vagrant | |
| - write file /tmp/detect.sh on chef-server-vagrant | |
| - upload file /Users/salimafiune/.chef/package_cache/chef_12.4.3-1_amd64.deb to /tmp/chef_12.4.3-1_amd64.deb on chef-server-vagrant | |
| - run 'dpkg -i "/tmp/chef_12.4.3-1_amd64.deb"' on chef-server-vagrant | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.11.90.crt to /etc/chef/trusted_certs/10.194.11.90.crt on chef-server-vagrant | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.10.crt to /etc/chef/trusted_certs/33.33.33.10.crt on chef-server-vagrant | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.11.crt to /etc/chef/trusted_certs/33.33.33.11.crt on chef-server-vagrant | |
| [chef-server-vagrant] Starting Chef Client, version 12.4.3 | |
| resolving cookbooks for run list: [] | |
| Synchronizing Cookbooks: | |
| Compiling Cookbooks... | |
| [2015-09-25T19:29:13+00:00] WARN: Node chef-server-vagrant has an empty run list. | |
| Converging 0 resources | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 0/0 resources updated in 6.585760835 seconds | |
| - run 'chef-client -l auto' on chef-server-vagrant | |
| * machine[chef-server-vagrant] action converge[2015-09-25T12:29:20-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T12:29:20-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - update node chef-server-vagrant at chefzero://localhost:8890 | |
| - add normal.chef-server-12 = {"delivery"=>{"organization"=>"vagrant"}, "api_fqdn"=>"33.33.33.10", "store_keys_databag"=>false, "plugin"=>{"reporting"=>true}} | |
| - update run_list from [] to ["recipe[delivery-cluster::pkg_repo_management]", "recipe[chef-server-12]"] | |
| [chef-server-vagrant] Starting Chef Client, version 12.4.3 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "chef-server-12"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster | |
| - chef-server-12 | |
| - chef-ingredient | |
| - git | |
| - apt | |
| - yum | |
| - delivery_build | |
| - chef-splunk | |
| - packagecloud | |
| - hostsfile | |
| - apt-chef | |
| - yum-chef | |
| - build-essential | |
| - dmg | |
| - windows | |
| - yum-epel | |
| - chef-sugar | |
| - omnibus | |
| - push-jobs | |
| - chef-vault | |
| - chef_handler | |
| - 7-zip | |
| - homebrew | |
| - wix | |
| - windows-sdk | |
| - runit | |
| Compiling Cookbooks... | |
| [2015-09-25T19:29:51+00:00] WARN: You are overriding windows_package on {:os=>"windows"} with Chef::Resource::WindowsCookbookPackage: used to be Chef::Resource::WindowsPackage. Use override: true if this is what you intended. | |
| [2015-09-25T19:29:51+00:00] WARN: You declared a new resource Chef::Provider::GitClient::Source for resource git_client, but it comes alphabetically after Chef::Provider::GitClient::Package and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for git_client. | |
| Recipe: apt::default | |
| * bash[apt-get-update at compile time] action run | |
| - execute "bash" "/tmp/chef-script20150925-1860-1la6p1z" | |
| Converging 26 resources | |
| * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing) | |
| * bash[apt-get-update at compile time] action nothing (skipped due to action :nothing) | |
| * directory[/etc/apt/apt.conf.d] action create (up to date) | |
| * cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create | |
| - create new file /etc/apt/apt.conf.d/15update-stamp | |
| - update content in file /etc/apt/apt.conf.d/15update-stamp from none to 174cdb | |
| --- /etc/apt/apt.conf.d/15update-stamp 2015-09-25 19:30:10.666169438 +0000 | |
| +++ /etc/apt/apt.conf.d/.15update-stamp20150925-1860-2qq736 2015-09-25 19:30:10.666169438 +0000 | |
| @@ -1 +1,2 @@ | |
| +APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";}; | |
| * execute[apt-get-update] action run | |
| - execute apt-get update | |
| * file[/var/lib/apt/periodic/update-success-stamp] action touch | |
| - update utime on file /var/lib/apt/periodic/update-success-stamp | |
| * execute[apt-get update] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoremove] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoclean] action nothing (skipped due to action :nothing) | |
| * execute[apt-get-update-periodic] action run (skipped due to only_if) | |
| * directory[/var/cache/local] action create | |
| - create new directory /var/cache/local | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| - change group from '' to 'root' | |
| * directory[/var/cache/local/preseeding] action create | |
| - create new directory /var/cache/local/preseeding | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| - change group from '' to 'root' | |
| Recipe: chef-server-12::default | |
| * hostsfile_entry[10.0.2.15] action create (skipped due to not_if) | |
| * directory[/etc/opscode] action create | |
| - create new directory /etc/opscode | |
| * chef_ingredient[chef-server] action install | |
| * chef_gem[chef-server-mixlib-versioning] action install | |
| - install version 1.1.0 of package mixlib-versioning | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| Recipe: apt-chef::default | |
| * apt_repository[chef-stable] action add | |
| * remote_file[/var/chef/cache/gpg.key] action create | |
| - create new file /var/chef/cache/gpg.key | |
| - update content in file /var/chef/cache/gpg.key from none to e42d7e | |
| --- /var/chef/cache/gpg.key 2015-09-25 19:30:33.561323751 +0000 | |
| +++ /tmp/chef-rest20150925-1860-1fx5noc 2015-09-25 19:30:33.557321801 +0000 | |
| @@ -1 +1,65 @@ | |
| +-----BEGIN PGP PUBLIC KEY BLOCK----- | |
| +Version: GnuPG v1.4.11 (GNU/Linux) | |
| + | |
| +mQINBFLUbogBEADceEoxBDoE6QM5xV/13qiELbFIkQgy/eEi3UesXmJblFdU7wcD | |
| +LOW3NuOIx/dgbZljeMEerj6N1cR7r7X5sVoFVEZiK4RLkC3Cpdns0d90ud2f3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TurCZorIMHTA9cpAZoMUGKaSt19UKIMvSqtcDayhgf4c | |
| +Z2ay1z0fdJ2PuLeNnWeiGyfq78q6wqSaJq/h6JdAiwXplFd3gqJZTrFZz7A6Q6Pd | |
| +7B+9PZ/DUdEO3JeZlHJDfRmfU2XPoyPUoq79+whP5Tl3WwHUv7Fg357kRSdzKv9D | |
| +bgmhqRHlgVeKn9pwN4cpVBN+idzwPefQksSKH4lBDvVr/9j+V9mmrOx7QmQ5LCc/ | |
| +1on+L0dqo6suoajADhKy+lDQbzs2mVb4CLpPKncDup/9iJbjiR17DDFMwgyCoy5O | |
| +HJICQ5lckNNgkHTS6Xiogkt28YfK4P3S0GaZgIrhKQ7AmO3O+hB12Zr+olpeyhGB | |
| +OpBD80URntdEcenvfnXBY/BsuAVbTGXiBzrlBEyQxg656jUeqAdXg+nzCvP0yJlB | |
| +UOjEcwyhK/U2nw9nGyaR3u0a9r24LgijGpdGabIeJm6O9vuuqFHHGI72pWUEs355 | |
| +lt8q1pAoJUv8NehQmlaR0h5wcwhEtwM6fiSIUTnuJnyHT053GjsUD7ef5fY1KEFm | |
| +aZeW04kRtFDOPinz0faE8hvsxzsVgkKye1c2vkXKdOXvA3x+pZzlTHtcgMOhjKQA | |
| +sA== | |
| +=H60S | |
| +-----END PGP PUBLIC KEY BLOCK----- | |
| - change mode from '' to '0644' | |
| * execute[install-key gpg.key] action run | |
| - execute apt-key add /var/chef/cache/gpg.key | |
| * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing) | |
| * execute[apt-cache gencaches] action nothing (skipped due to action :nothing) | |
| * execute[apt-get update] action nothing (skipped due to action :nothing) | |
| * file[/etc/apt/sources.list.d/chef-stable.list] action create | |
| - create new file /etc/apt/sources.list.d/chef-stable.list | |
| - update content in file /etc/apt/sources.list.d/chef-stable.list from none to 232927 | |
| --- /etc/apt/sources.list.d/chef-stable.list 2015-09-25 19:30:34.049561616 +0000 | |
| +++ /etc/apt/sources.list.d/.chef-stable.list20150925-1860-11vo10m 2015-09-25 19:30:34.049561616 +0000 | |
| @@ -1 +1,2 @@ | |
| +deb [trusted=yes] https://packagecloud.io/chef/stable/ubuntu/ trusty main | |
| - change mode from '' to '0644' | |
| - change owner from '' to 'root' | |
| - change group from '' to 'root' | |
| * file[/var/lib/apt/periodic/update-success-stamp] action delete | |
| - delete file /var/lib/apt/periodic/update-success-stamp | |
| * execute[apt-get update] action run | |
| - execute apt-get update -o Dir::Etc::sourcelist='sources.list.d/chef-stable.list' -o Dir::Etc::sourceparts='-' -o APT::Get::List-Cleanup='0' | |
| Recipe: apt::default | |
| * file[/var/lib/apt/periodic/update-success-stamp] action touch | |
| - update utime on file /var/lib/apt/periodic/update-success-stamp | |
| * execute[apt-cache gencaches] action run | |
| - execute apt-cache gencaches | |
| * apt_package[chef-server] action install | |
| - install version 12.2.0-1 of package chef-server-core | |
| Recipe: chef-server-12::default | |
| * template[/etc/opscode/chef-server.rb] action create | |
| - update content in file /etc/opscode/chef-server.rb from e3b0c4 to b7ab49 | |
| --- /etc/opscode/chef-server.rb 2015-09-25 19:39:02.129093383 +0000 | |
| +++ /tmp/chef-rendered-template20150925-1860-1c4qo45 2015-09-25 19:39:04.114060442 +0000 | |
| @@ -1 +1,5 @@ | |
| +topology 'standalone' | |
| +api_fqdn '33.33.33.10' | |
| +nginx['server_name'] = '33.33.33.10' | |
| + | |
| * chef_ingredient[chef-server] action reconfigure | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * execute[reconfigure chef] action nothing (skipped due to action :nothing) | |
| * chef_ingredient[manage] action install | |
| * chef_gem[manage-mixlib-versioning] action install (up to date) | |
| * chef_gem[manage-mixlib-versioning] action install (up to date) | |
| * apt_package[manage] action install | |
| - install version 1.21.0-1 of package opscode-manage | |
| * ingredient_config[manage] action render | |
| * directory[/etc/opscode-manage] action create | |
| - create new directory /etc/opscode-manage | |
| * file[/etc/opscode-manage/manage.rb] action create | |
| - create new file /etc/opscode-manage/manage.rb | |
| - update content in file /etc/opscode-manage/manage.rb from none to e3b0c4 | |
| (no diff) | |
| * chef_ingredient[manage] action reconfigure | |
| * chef_gem[manage-mixlib-versioning] action install (up to date) | |
| * chef_gem[manage-mixlib-versioning] action install (up to date) | |
| * execute[opscode-manage-reconfigure] action run | |
| - execute opscode-manage-ctl reconfigure | |
| * chef_ingredient[chef-server] action reconfigure | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * chef_ingredient[reporting] action install | |
| * chef_gem[reporting-mixlib-versioning] action install (up to date) | |
| * chef_gem[reporting-mixlib-versioning] action install (up to date) | |
| * apt_package[reporting] action install | |
| - install version 1.5.1-1 of package opscode-reporting | |
| * ingredient_config[reporting] action render | |
| * directory[/etc/opscode-reporting] action create | |
| - create new directory /etc/opscode-reporting | |
| * file[/etc/opscode-reporting/opscode-reporting.rb] action create | |
| - create new file /etc/opscode-reporting/opscode-reporting.rb | |
| - update content in file /etc/opscode-reporting/opscode-reporting.rb from none to e3b0c4 | |
| (no diff) | |
| * chef_ingredient[reporting] action reconfigure | |
| * chef_gem[reporting-mixlib-versioning] action install (up to date) | |
| * chef_gem[reporting-mixlib-versioning] action install (up to date) | |
| * execute[opscode-reporting-reconfigure] action run | |
| - execute opscode-reporting-ctl reconfigure | |
| * chef_ingredient[chef-server] action reconfigure | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * chef_ingredient[push-server] action install | |
| * chef_gem[push-server-mixlib-versioning] action install (up to date) | |
| * chef_gem[push-server-mixlib-versioning] action install (up to date) | |
| * apt_package[push-server] action install | |
| - install version 1.1.6-1 of package opscode-push-jobs-server | |
| * ingredient_config[push-server] action render | |
| * directory[/etc/opscode-push-jobs-server] action create | |
| - create new directory /etc/opscode-push-jobs-server | |
| * file[/etc/opscode-push-jobs-server/opscode-push-jobs-server.rb] action create | |
| - create new file /etc/opscode-push-jobs-server/opscode-push-jobs-server.rb | |
| - update content in file /etc/opscode-push-jobs-server/opscode-push-jobs-server.rb from none to e3b0c4 | |
| (no diff) | |
| * chef_ingredient[push-server] action reconfigure | |
| * chef_gem[push-server-mixlib-versioning] action install (up to date) | |
| * chef_gem[push-server-mixlib-versioning] action install (up to date) | |
| * execute[opscode-push-jobs-server-reconfigure] action run | |
| - execute opscode-push-jobs-server-ctl reconfigure | |
| * chef_ingredient[chef-server] action reconfigure | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| Recipe: chef-server-12::delivery_setup | |
| * execute[Create delivery User] action run | |
| - execute chef-server-ctl user-create delivery Delivery User delivery@getchef.com delivery > /tmp/delivery.pem | |
| * execute[Create vagrant Organization] action run | |
| - execute chef-server-ctl org-create vagrant "Chef Continuous Delivery" -a delivery > /tmp/validator.pem | |
| * execute[Associate Delivery User to vagrant Organization] action run | |
| - execute chef-server-ctl org-user-add vagrant delivery -a | |
| * ruby_block[upload delivery key] action nothing (skipped due to action :nothing) | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 51/73 resources updated in 1910.897636676 seconds | |
| - run 'chef-client -l auto' on chef-server-vagrant | |
| * directory[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs] action create (up to date) | |
| * machine_file[chef-server-cert] action download | |
| - download file /var/opt/opscode/nginx/ca/33.33.33.10.crt on chef-server-vagrant to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.10.crt | |
| * directory[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant] action create (up to date) | |
| * machine_file[/tmp/validator.pem] action download | |
| - download file /tmp/validator.pem on chef-server-vagrant to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/validator.pem | |
| * machine_file[/tmp/delivery.pem] action download | |
| - download file /tmp/delivery.pem on chef-server-vagrant to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/delivery.pem | |
| * file[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/delivery.pem] action create (up to date) | |
| * template[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/knife.rb] action create (up to date) | |
| * execute[upload delivery cookbooks] action run | |
| - execute knife cookbook upload --all --cookbook-path /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/local-mode-cache/cache/cookbooks --force | |
| Recipe: delivery-cluster::setup_delivery_server | |
| * file[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/encrypted_data_bag_secret] action create (up to date) | |
| * execute[builder ssh key] action run (skipped due to not_if) | |
| * chef_data_bag[keys] action create | |
| - create data bag keys at https://33.33.33.10/organizations/vagrant | |
| * chef_data_bag_item[keys/delivery_builder_keys] action create | |
| - create data bag item delivery_builder_keys at https://33.33.33.10/organizations/vagrant | |
| - add builder_key | |
| - add delivery_pem | |
| * machine[delivery-server-vagrant] action converge[2015-09-25T13:01:48-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T13:01:48-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - create node delivery-server-vagrant at https://33.33.33.10/organizations/vagrant | |
| - add normal.tags = nil | |
| - add normal.chef_provisioning = {"reference"=>{"driver_url"=>"vagrant:/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/vms", "driver_version"=>"0.10.0", "vm_name"=>"delivery-server-vagrant", "vm_file_path"=>"/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/vms/delivery-server-vagrant.vm", "allocated_at"=>"2015-09-25 20:01:48 UTC", "host_node"=>"chefzero://localhost:8890/nodes/"}} | |
| - run vagrant up delivery-server-vagrant --provider virtualbox (status was 'not created') | |
| - update node delivery-server-vagrant at https://33.33.33.10/organizations/vagrant | |
| - add normal.chef_provisioning.reference.needs_reload = false | |
| - add normal.chef_provisioning.reference.forwarded_ports = {}[2015-09-25T13:02:33-07:00] ERROR: Unable to download /etc/chef/client.pem to /tmp/client.pem.3699703505 on vagrant@127.0.0.1 -- Error: command 'cp /etc/chef/client.pem /tmp/client.pem.3699703505' exited with code 1. | |
| [2015-09-25T13:02:33-07:00] WARN: Unable to clean up /tmp/client.pem.3699703505 on vagrant@127.0.0.1 -- Error: command 'rm /tmp/client.pem.3699703505' exited with code 1. | |
| - generate private key (2048 bits) | |
| - create directory /etc/chef on delivery-server-vagrant | |
| - write file /etc/chef/client.pem on delivery-server-vagrant | |
| - create client delivery-server-vagrant at clients | |
| - add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzVlfq35yOUI8Sa+HnCcB\nYPlG1FOqvqNCp3ig3Yg4Lvir0Vlpyf6LDzNXr9uI9zTZcENHEZn00o4+fS7cnFyG\nQ686gPTaqXav2Y/WHCodtDqlBpQMR1Jqd7e/cCV+UI3XVrpf47iZqLRtLlJNgBua\nO/Jqq0pf+dxY0c7Mu9oUy8alRRZy+suIrO+q5DmObXBNlVoi/YSKL+rGW/Fbh60Q\nlpcIQXBRTyrsdOJO7x6ftArhf/aYNYutPFSiwHN04g713gv+PvmTp/pEUoqil0kX\nUQ1gq0wtht/RLZZdPMmt/pS11L+9TzUtZYGKHY/T+7ItCHhOn9py6JUWMMCESdle\njQIDAQAB\n-----END PUBLIC KEY-----\n" | |
| - Add delivery-server-vagrant to client read ACLs | |
| - Add delivery-server-vagrant to client update ACLs | |
| - write file /etc/chef/client.rb on delivery-server-vagrant | |
| - write file /tmp/detect.sh on delivery-server-vagrant | |
| - upload file /Users/salimafiune/.chef/package_cache/chef_12.4.3-1_amd64.deb to /tmp/chef_12.4.3-1_amd64.deb on delivery-server-vagrant | |
| - run 'dpkg -i "/tmp/chef_12.4.3-1_amd64.deb"' on delivery-server-vagrant | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.10.crt to /etc/chef/trusted_certs/33.33.33.10.crt on delivery-server-vagrant | |
| [delivery-server-vagrant] Starting Chef Client, version 12.4.3 | |
| resolving cookbooks for run list: [] | |
| Synchronizing Cookbooks: | |
| Compiling Cookbooks... | |
| [2015-09-25T20:02:49+00:00] WARN: Node delivery-server-vagrant has an empty run list. | |
| Converging 0 resources | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 0/0 resources updated in 7.480461566 seconds | |
| - run 'chef-client -l auto' on delivery-server-vagrant | |
| * machine_execute[Create "/var/opt/delivery/license" directory on Delivery Server] action run[2015-09-25T13:02:56-07:00] WARN: Class Chef::Provider::MachineExecute does not declare 'resource_name :machine_execute'. | |
| [2015-09-25T13:02:56-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - run 'mkdir -p /var/opt/delivery/license' on delivery-server-vagrant | |
| * machine_file[/var/opt/delivery/license/delivery.license] action upload | |
| - upload file /Users/salimafiune/chef/delivery/delivery-licenses/delivery-solutions.license to /var/opt/delivery/license/delivery.license on delivery-server-vagrant | |
| * machine[delivery-server-vagrant] action converge[2015-09-25T13:03:01-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T13:03:01-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - update node delivery-server-vagrant at https://33.33.33.10/organizations/vagrant | |
| - add normal.delivery-cluster = {"driver"=>"vagrant", "aws"=>{"key_name"=>"salimafiune", "ssh_username"=>nil, "security_group_ids"=>nil, "image_id"=>nil, "bootstrap_proxy"=>nil, "use_private_ip_for_ssh"=>false}, "ssh"=>{"key_file"=>nil, "prefix"=>nil, "ssh_username"=>nil, "bootstrap_proxy"=>nil, "use_private_ip_for_ssh"=>false}, "vagrant"=>{"key_file"=>"/Users/salimafiune/.vagrant.d/insecure_private_key", "prefix"=>nil, "ssh_username"=>"vagrant", "vm_box"=>"opscode-ubuntu-14.04", "image_url"=>"https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-14.04_chef-provisionerless.box", "use_private_ip_for_ssh"=>true}, "azure"=>{"ssh_username"=>nil, "use_private_ip_for_ssh"=>false}, "id"=>"vagrant", "common_cluster_recipes"=>[], "trusted_certs"=>{}, "delivery"=>{"license_file"=>"/Users/salimafiune/chef/delivery/delivery-licenses/delivery-solutions.license", "hostname"=>"delivery-server-vagrant", "fqdn"=>"33.33.33.11", "chef_server"=>"https://33.33.33.10/organizations/vagrant", "flavor"=>"t2.medium", "enterprise"=>"vagrant", "recipes"=>[], "pass-through"=>true, "ldap"=>{}, "config"=>nil, "version"=>"latest", "packagecloud-channel"=>"stable", "artifactory"=>false, "vm_hostname"=>"delivery.example.com", "network"=>":private_network, {:ip => '33.33.33.11'}", "vm_memory"=>"2048", "vm_cpus"=>"2"}, "chef-server"=>{"hostname"=>"chef-server-vagrant", "fqdn"=>nil, "organization"=>"vagrant", "flavor"=>"t2.medium", "existing"=>false, "recipes"=>[], "enable-reporting"=>true, "vm_hostname"=>"chef.example.com", "network"=>":private_network, {:ip => '33.33.33.10'}", "vm_memory"=>"2048", "vm_cpus"=>"2"}, "analytics"=>{"hostname"=>nil, "fqdn"=>nil, "features"=>"false", "flavor"=>"t2.medium", "vm_hostname"=>"analytics.example.com", "network"=>":private_network, {:ip => '33.33.33.13'}", "vm_memory"=>"2048", "vm_cpus"=>"2"}, "splunk"=>{"hostname_prefix"=>nil, "username"=>"admin", "password"=>nil, "flavor"=>"c3.large"}, "supermarket"=>{"hostname"=>nil, "fqdn"=>nil, "flavor"=>"c3.large", "vm_hostname"=>"supermarket.example.com", "network"=>":private_network, {:ip => '33.33.33.12'}", "vm_memory"=>"2048", "vm_cpus"=>"2"}, "builders"=>{"hostname_prefix"=>"build-node-vagrant", "count"=>"2", "flavor"=>"t2.small", "additional_run_list"=>[], "delivery-cli"=>{}, "chefdk_version"=>nil, "1"=>{"hostname"=>"build-node-vagrant-1", "vm_memory"=>"2048", "network"=>":private_network, {:ip => '33.33.33.14'}", "vm_cpus"=>"2"}, "2"=>{"hostname"=>"build-node-vagrant-2", "vm_box"=>"opscode-centos-6.6", "vm_memory"=>"2048", "network"=>":private_network, {:ip => '33.33.33.15'}", "vm_cpus"=>"2"}}} | |
| - update run_list from [] to ["recipe[delivery-cluster::pkg_repo_management]", "recipe[delivery-cluster::delivery]"] | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/delivery.pem to /etc/delivery/delivery.pem on delivery-server-vagrant | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/builder_key to /etc/delivery/builder_key on delivery-server-vagrant | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/builder_key.pub to /etc/delivery/builder_key.pub on delivery-server-vagrant | |
| [delivery-server-vagrant] Starting Chef Client, version 12.4.3 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "delivery-cluster::delivery"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster | |
| - chef-server-12 | |
| - chef-ingredient | |
| - apt-chef | |
| - yum-chef | |
| - apt | |
| - yum | |
| - hostsfile | |
| - git | |
| - build-essential | |
| - dmg | |
| - windows | |
| - chef_handler | |
| - yum-epel | |
| - delivery_build | |
| - packagecloud | |
| - chef-sugar | |
| - omnibus | |
| - 7-zip | |
| - homebrew | |
| - wix | |
| - windows-sdk | |
| - push-jobs | |
| - runit | |
| - chef-splunk | |
| - chef-vault | |
| Compiling Cookbooks... | |
| [2015-09-25T20:03:19+00:00] WARN: You are overriding windows_package on {:os=>"windows"} with Chef::Resource::WindowsCookbookPackage: used to be Chef::Resource::WindowsPackage. Use override: true if this is what you intended. | |
| [2015-09-25T20:03:19+00:00] WARN: You declared a new resource Chef::Provider::GitClient::Source for resource git_client, but it comes alphabetically after Chef::Provider::GitClient::Package and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for git_client. | |
| Recipe: apt::default | |
| * bash[apt-get-update at compile time] action run | |
| - execute "bash" "/tmp/chef-script20150925-1921-1k2xw23" | |
| Converging 16 resources | |
| * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing) | |
| * bash[apt-get-update at compile time] action nothing (skipped due to action :nothing) | |
| * directory[/etc/apt/apt.conf.d] action create (up to date) | |
| * cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create | |
| - create new file /etc/apt/apt.conf.d/15update-stamp | |
| - update content in file /etc/apt/apt.conf.d/15update-stamp from none to 174cdb | |
| --- /etc/apt/apt.conf.d/15update-stamp 2015-09-25 20:03:47.388568588 +0000 | |
| +++ /etc/apt/apt.conf.d/.15update-stamp20150925-1921-1sw8ry0 2015-09-25 20:03:47.384566638 +0000 | |
| @@ -1 +1,2 @@ | |
| +APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";}; | |
| * execute[apt-get-update] action run | |
| - execute apt-get update | |
| * file[/var/lib/apt/periodic/update-success-stamp] action touch | |
| - update utime on file /var/lib/apt/periodic/update-success-stamp | |
| * execute[apt-get update] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoremove] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoclean] action nothing (skipped due to action :nothing) | |
| * execute[apt-get-update-periodic] action run (skipped due to only_if) | |
| * directory[/var/cache/local] action create | |
| - create new directory /var/cache/local | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| - change group from '' to 'root' | |
| * directory[/var/cache/local/preseeding] action create | |
| - create new directory /var/cache/local/preseeding | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| - change group from '' to 'root' | |
| Recipe: delivery-cluster::delivery | |
| * packagecloud_repo[chef/stable] action add | |
| * apt_package[apt-transport-https] action install (up to date) | |
| * template[/etc/apt/sources.list.d/chef_stable.list] action create | |
| - create new file /etc/apt/sources.list.d/chef_stable.list | |
| - update content in file /etc/apt/sources.list.d/chef_stable.list from none to 269da4 | |
| --- /etc/apt/sources.list.d/chef_stable.list 2015-09-25 20:04:00.703055286 +0000 | |
| +++ /tmp/chef-rendered-template20150925-1921-1qcexmb 2015-09-25 20:04:00.703055286 +0000 | |
| @@ -1 +1,3 @@ | |
| +deb https://packagecloud.io/chef/stable/ubuntu trusty main | |
| +deb-src https://packagecloud.io/chef/stable/ubuntu trusty main | |
| - change mode from '' to '0644' | |
| * execute[apt-key-add-chef_stable] action run | |
| - execute wget -qO - https://packagecloud.io/gpg.key | apt-key add - | |
| * execute[apt-get-update-chef_stable] action run | |
| - execute apt-get update -o Dir::Etc::sourcelist="sources.list.d/chef_stable.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | |
| * execute[apt-key-add-chef_stable] action nothing (skipped due to action :nothing) | |
| * execute[apt-get-update-chef_stable] action nothing (skipped due to action :nothing) | |
| * apt_package[delivery] action upgrade | |
| - upgrade package delivery from uninstalled to 0.3.304-1 | |
| * directory[/etc/delivery] action create (up to date) | |
| * template[/etc/delivery/delivery.rb] action create | |
| - create new file /etc/delivery/delivery.rb | |
| - update content in file /etc/delivery/delivery.rb from none to f97889 | |
| --- /etc/delivery/delivery.rb 2015-09-25 20:09:27.110077844 +0000 | |
| +++ /tmp/chef-rendered-template20150925-1921-18bnexs 2015-09-25 20:09:27.110077844 +0000 | |
| @@ -1 +1,10 @@ | |
| +delivery_fqdn "33.33.33.11" | |
| + | |
| +delivery['chef_username'] = "delivery" | |
| +delivery['chef_private_key'] = "/etc/delivery/delivery.pem" | |
| +delivery['chef_server'] = "https://33.33.33.10/organizations/vagrant" | |
| + | |
| +delivery['default_search'] = "((recipes:delivery_build OR recipes:delivery_build\\\\:\\\\:default) AND chef_environment:_default)" | |
| + | |
| + | |
| * execute[reconfigure delivery] action nothing (skipped due to action :nothing) | |
| * execute[reconfigure delivery] action run | |
| - execute /opt/delivery/bin/delivery-ctl reconfigure | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 13/16 resources updated in 434.446700872 seconds | |
| - run 'chef-client -l auto' on delivery-server-vagrant | |
| * machine_execute[Chown '/etc/delivery' to 'delivery' user] action run[2015-09-25T13:10:23-07:00] WARN: Class Chef::Provider::MachineExecute does not declare 'resource_name :machine_execute'. | |
| [2015-09-25T13:10:23-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - run 'chown -R delivery /etc/delivery' on delivery-server-vagrant | |
| * machine_file[delivery-server-cert] action download | |
| - download file /var/opt/delivery/nginx/ca/33.33.33.11.crt on delivery-server-vagrant to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.11.crt | |
| * machine_execute[Creating Enterprise] action run[2015-09-25T13:10:28-07:00] WARN: Class Chef::Provider::MachineExecute does not declare 'resource_name :machine_execute'. | |
| [2015-09-25T13:10:28-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - run 'sudo -E delivery-ctl list-enterprises | grep -w ^vagrant; [ $? -ne 0 ] && sudo -E delivery-ctl create-enterprise vagrant --ssh-pub-key-file=/etc/delivery/builder_key.pub > /tmp/vagrant.creds || echo 1' on delivery-server-vagrant | |
| * machine_file[/tmp/vagrant.creds] action download | |
| - download file /tmp/vagrant.creds on delivery-server-vagrant to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/vagrant.creds | |
| * ruby_block[print-delivery-credentials] action runCreated enterprise: vagrant | |
| Admin username: admin | |
| Admin password: ynN2Br4vB0tpa+HU+G+Oo6EDNfQw94Zb7fQ= | |
| Builder Password: yRMuDkoHwFT4YvJeSpL2Nyjb5Ne3o+DHkw8= | |
| Web login: https://33.33.33.11/e/vagrant/ | |
| - execute the ruby block print-delivery-credentials | |
| Recipe: delivery-cluster::setup_delivery_builders | |
| * chef_role[delivery_builders] action create | |
| - create role delivery_builders at https://33.33.33.10/organizations/vagrant | |
| - update description from "" to "Base Role for the Delivery Build Nodes" | |
| - update run_list from [] to ["recipe[push-jobs]", "recipe[delivery_build]"] | |
| * machine_batch[2-build-nodes] action converge[2015-09-25T13:10:36-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T13:10:36-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T13:10:36-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| [2015-09-25T13:10:36-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - [build-node-vagrant-1] create node build-node-vagrant-1 at https://33.33.33.10/organizations/vagrant | |
| - [build-node-vagrant-1] add normal.delivery_build = {"trusted_certs"=>{"Delivery Server Cert"=>"/etc/chef/trusted_certs/33.33.33.11.crt"}} | |
| - [build-node-vagrant-1] add normal.tags = nil | |
| - [build-node-vagrant-1] add normal.chef_provisioning = {"reference"=>{"driver_url"=>"vagrant:/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/vms", "driver_version"=>"0.10.0", "vm_name"=>"build-node-vagrant-1", "vm_file_path"=>"/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/vms/build-node-vagrant-1.vm", "allocated_at"=>"2015-09-25 20:10:36 UTC", "host_node"=>"chefzero://localhost:8890/nodes/"}} | |
| - [build-node-vagrant-1] update run_list from [] to ["recipe[delivery-cluster::pkg_repo_management]", "role[delivery_builders]"] | |
| - [build-node-vagrant-2] create node build-node-vagrant-2 at https://33.33.33.10/organizations/vagrant | |
| - [build-node-vagrant-2] add normal.delivery_build = {"trusted_certs"=>{"Delivery Server Cert"=>"/etc/chef/trusted_certs/33.33.33.11.crt"}} | |
| - [build-node-vagrant-2] add normal.tags = nil | |
| - [build-node-vagrant-2] add normal.chef_provisioning = {"reference"=>{"driver_url"=>"vagrant:/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/vms", "driver_version"=>"0.10.0", "vm_name"=>"build-node-vagrant-2", "vm_file_path"=>"/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/vms/build-node-vagrant-2.vm", "allocated_at"=>"2015-09-25 20:10:36 UTC", "host_node"=>"chefzero://localhost:8890/nodes/"}} | |
| - [build-node-vagrant-2] update run_list from [] to ["recipe[delivery-cluster::pkg_repo_management]", "role[delivery_builders]"] | |
| - run vagrant up --parallel build-node-vagrant-1 build-node-vagrant-2 (status was 'not created, not created') | |
| - update node build-node-vagrant-1 at https://33.33.33.10/organizations/vagrant | |
| - add normal.chef_provisioning.reference.needs_reload = false | |
| - add normal.chef_provisioning.reference.forwarded_ports = {}[2015-09-25T13:12:19-07:00] ERROR: Unable to download /etc/chef/client.pem to /tmp/client.pem.3816787626 on vagrant@127.0.0.1 -- Error: command 'cp /etc/chef/client.pem /tmp/client.pem.3816787626' exited with code 1. | |
| [2015-09-25T13:12:19-07:00] WARN: Unable to clean up /tmp/client.pem.3816787626 on vagrant@127.0.0.1 -- Error: command 'rm /tmp/client.pem.3816787626' exited with code 1. | |
| - [build-node-vagrant-1] generate private key (2048 bits) | |
| - [build-node-vagrant-1] create directory /etc/chef on build-node-vagrant-1 | |
| - [build-node-vagrant-1] write file /etc/chef/client.pem on build-node-vagrant-1 | |
| - [build-node-vagrant-1] create client build-node-vagrant-1 at clients | |
| - [build-node-vagrant-1] add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvvsWbv63EGQGkG7dOaoL\nJKO0hZsPQoGOHMgCWVumDcSO9r/lTjJH0RGqinfKIjT4fSxR9rMhKsxfLCHWB9CV\nty1Ba1f1mBCZ7mkfEuZIz75oVnniVdB86GZQHiPh0NRrd5PrMnBG516QltwLOBWW\nlf8dFCqU1N8ttgyPtD/z0g5xle6LBYuTRt6ARLEGBvo2F5kFBzeIuc1zYr0HrmAf\nPkCGCC7YEgn9O83KDp1eE4m/jfDzy0Ax8IR+7fIElsPVBwuTTnFgNh23kTmIPbIf\nI5syMzKMOLIM4Oz18dAXkZVC8mUGippwzQMGzbvHqrkla4RIWX9npeQuSgKVfpKN\nVwIDAQAB\n-----END PUBLIC KEY-----\n" | |
| - [build-node-vagrant-1] Add build-node-vagrant-1 to client read ACLs | |
| - [build-node-vagrant-1] Add build-node-vagrant-1 to client update ACLs | |
| - [build-node-vagrant-1] write file /etc/chef/client.rb on build-node-vagrant-1 | |
| - [build-node-vagrant-1] write file /tmp/detect.sh on build-node-vagrant-1 | |
| - [build-node-vagrant-1] upload file /Users/salimafiune/.chef/package_cache/chef_12.4.3-1_amd64.deb to /tmp/chef_12.4.3-1_amd64.deb on build-node-vagrant-1 | |
| - [build-node-vagrant-1] run 'dpkg -i "/tmp/chef_12.4.3-1_amd64.deb"' on build-node-vagrant-1 | |
| - [build-node-vagrant-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.11.crt to /etc/chef/trusted_certs/33.33.33.11.crt on build-node-vagrant-1 | |
| - [build-node-vagrant-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/encrypted_data_bag_secret to /etc/chef/encrypted_data_bag_secret on build-node-vagrant-1 | |
| [build-node-vagrant-1] Starting Chef Client, version 12.4.3 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "push-jobs", "delivery_build"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster | |
| - chef-server-12 | |
| - chef-ingredient | |
| - apt-chef | |
| - apt | |
| - yum-chef | |
| - yum | |
| - hostsfile | |
| - git | |
| - build-essential | |
| - dmg | |
| - windows | |
| - chef_handler | |
| - yum-epel | |
| - delivery_build | |
| - chef-sugar | |
| - packagecloud | |
| - omnibus | |
| - 7-zip | |
| - homebrew | |
| - wix | |
| - windows-sdk | |
| - push-jobs | |
| - runit | |
| - chef-splunk | |
| - chef-vault | |
| Compiling Cookbooks... | |
| [2015-09-25T20:12:43+00:00] WARN: You are overriding windows_package on {:os=>"windows"} with Chef::Resource::WindowsCookbookPackage: used to be Chef::Resource::WindowsPackage. Use override: true if this is what you intended. | |
| [2015-09-25T20:12:43+00:00] WARN: You declared a new resource Chef::Provider::GitClient::Source for resource git_client, but it comes alphabetically after Chef::Provider::GitClient::Package and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for git_client. | |
| Recipe: apt::default | |
| * bash[apt-get-update at compile time] action run | |
| - execute "bash" "/tmp/chef-script20150925-1759-r0h947" | |
| Recipe: chef-sugar::default | |
| * chef_gem[chef-sugar] action install | |
| - install version 3.1.1 of package chef-sugar | |
| [2015-09-25T20:13:19+00:00] WARN: Cloning resource attributes for directory[/etc/chef] from prior resource (CHEF-3694) | |
| [2015-09-25T20:13:19+00:00] WARN: Previous directory[/etc/chef]: /var/chef/cache/cookbooks/push-jobs/recipes/config.rb:25:in `from_file' | |
| [2015-09-25T20:13:19+00:00] WARN: Current directory[/etc/chef]: /var/chef/cache/cookbooks/delivery_build/recipes/chef_client.rb:27:in `from_file' | |
| Converging 49 resources | |
| Recipe: apt::default | |
| * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing) | |
| * bash[apt-get-update at compile time] action nothing (skipped due to action :nothing) | |
| * directory[/etc/apt/apt.conf.d] action create (up to date) | |
| * cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create | |
| - create new file /etc/apt/apt.conf.d/15update-stamp | |
| - update content in file /etc/apt/apt.conf.d/15update-stamp from none to 174cdb | |
| --- /etc/apt/apt.conf.d/15update-stamp 2015-09-25 20:13:19.676279179 +0000 | |
| +++ /etc/apt/apt.conf.d/.15update-stamp20150925-1759-1v5tz58 2015-09-25 20:13:19.676279179 +0000 | |
| @@ -1 +1,2 @@ | |
| +APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";}; | |
| * execute[apt-get-update] action run | |
| - execute apt-get update | |
| * file[/var/lib/apt/periodic/update-success-stamp] action touch | |
| - update utime on file /var/lib/apt/periodic/update-success-stamp | |
| * execute[apt-get update] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoremove] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoclean] action nothing (skipped due to action :nothing) | |
| * execute[apt-get-update-periodic] action run (skipped due to only_if) | |
| * directory[/var/cache/local] action create | |
| - create new directory /var/cache/local | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| - change group from '' to 'root' | |
| * directory[/var/cache/local/preseeding] action create | |
| - create new directory /var/cache/local/preseeding | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| - change group from '' to 'root' | |
| Recipe: push-jobs::linux | |
| * remote_file[/var/chef/cache/opscode-push-jobs-client_1.0.1-1.ubuntu.12.04_amd64.deb] action create | |
| - create new file /var/chef/cache/opscode-push-jobs-client_1.0.1-1.ubuntu.12.04_amd64.deb | |
| - update content in file /var/chef/cache/opscode-push-jobs-client_1.0.1-1.ubuntu.12.04_amd64.deb from none to 72ad9b | |
| (file sizes exceed 10000000 bytes, diff output suppressed) | |
| - change mode from '' to '0644' | |
| * chef_ingredient[push-client] action install | |
| * chef_gem[push-client-mixlib-versioning] action install | |
| - install version 1.1.0 of package mixlib-versioning | |
| * chef_gem[push-client-mixlib-versioning] action install (up to date) | |
| * dpkg_package[push-client] action install | |
| - install version 1.0.1-1.ubuntu.12.04 of package opscode-push-jobs-client | |
| Recipe: push-jobs::config | |
| * directory[/etc/chef] action create (up to date) | |
| * template[/etc/chef/push-jobs-client.rb] action create | |
| - create new file /etc/chef/push-jobs-client.rb | |
| - update content in file /etc/chef/push-jobs-client.rb from none to c47c8e | |
| --- /etc/chef/push-jobs-client.rb 2015-09-25 20:16:58.138712107 +0000 | |
| +++ /tmp/chef-rendered-template20150925-1759-g437ll 2015-09-25 20:16:58.138712107 +0000 | |
| @@ -1 +1,19 @@ | |
| +# Generated by Chef for build-node-vagrant-1 | |
| +# | |
| +# Local modifications will be overwritten! | |
| + | |
| +LC_ALL='en_US.UTF-8' | |
| + | |
| +# Chef server connect options | |
| +chef_server_url 'https://33.33.33.10/organizations/vagrant' | |
| +node_name 'build-node-vagrant-1' | |
| +client_key '/etc/chef/client.pem' | |
| +trusted_certs_dir '/etc/chef/trusted_certs' | |
| +verify_api_cert false | |
| + | |
| +# The whitelist comes from node['push_jobs']['whitelist'] | |
| +whitelist({"chef-client"=>"chef-client", /^delivery-cmd (.+)$/=>"/var/opt/delivery/workspace/bin/delivery-cmd '\\1'"}) | |
| + | |
| +# We're under runit, so don't output timestamp | |
| +Mixlib::Log::Formatter.show_time = false | |
| - change mode from '' to '0644' | |
| - change owner from '' to 'root' | |
| - change group from '' to 'root' | |
| Recipe: runit::default | |
| * service[runit] action nothing (skipped due to action :nothing) | |
| * execute[start-runsvdir] action nothing (skipped due to action :nothing) | |
| * execute[runit-hup-init] action nothing (skipped due to action :nothing) | |
| * apt_package[runit] action install | |
| Recipe: <Dynamically Defined Resource> | |
| * cookbook_file[/var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed] action create | |
| - create new file /var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed | |
| - update content in file /var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed from none to 9c6758 | |
| --- /var/chef/cache/preseed/runit/runit-2.1.1-6.2ubuntu3.seed 2015-09-25 20:16:58.474875883 +0000 | |
| +++ /var/chef/cache/preseed/runit/.runit-2.1.1-6.2ubuntu3.seed20150925-1759-ck6cf 2015-09-25 20:16:58.474875883 +0000 | |
| @@ -1 +1,2 @@ | |
| +runit runit/signalinit boolean true | |
| - preseed package runit | |
| - install version 2.1.1-6.2ubuntu3 of package runit | |
| Recipe: runit::default | |
| * execute[start-runsvdir] action nothing (skipped due to action :nothing) | |
| * execute[runit-hup-init] action nothing (skipped due to action :nothing) | |
| Recipe: <Dynamically Defined Resource> | |
| * service[opscode-push-jobs-client] action nothing (skipped due to action :nothing) | |
| Recipe: push-jobs::service_runit | |
| * runit_service[opscode-push-jobs-client] action enable | |
| * directory[/etc/sv/opscode-push-jobs-client] action create | |
| - create new directory /etc/sv/opscode-push-jobs-client | |
| - change mode from '' to '0755' | |
| * template[/etc/sv/opscode-push-jobs-client/run] action create | |
| - create new file /etc/sv/opscode-push-jobs-client/run | |
| - update content in file /etc/sv/opscode-push-jobs-client/run from none to 454913 | |
| --- /etc/sv/opscode-push-jobs-client/run 2015-09-25 20:17:07.223137957 +0000 | |
| +++ /tmp/chef-rendered-template20150925-1759-1g0hii 2015-09-25 20:17:07.223137957 +0000 | |
| @@ -1 +1,6 @@ | |
| +#!/bin/sh | |
| +exec 2>&1 | |
| +exec /opt/opscode-push-jobs-client/bin/pushy-client -l info -c /etc/chef/push-jobs-client.rb | |
| + | |
| +#exec /opt/opscode-push-jobs-client/bin/pushy-client -l -c | |
| - change mode from '' to '0755' | |
| * directory[/etc/sv/opscode-push-jobs-client/log] action create | |
| - create new directory /etc/sv/opscode-push-jobs-client/log | |
| * directory[/etc/sv/opscode-push-jobs-client/log/main] action create | |
| - create new directory /etc/sv/opscode-push-jobs-client/log/main | |
| - change mode from '' to '0755' | |
| * directory[/var/log/opscode-push-jobs-client] action create | |
| - create new directory /var/log/opscode-push-jobs-client | |
| - change mode from '' to '0755' | |
| * link[/var/log/opscode-push-jobs-client/config] action create | |
| - create symlink at /var/log/opscode-push-jobs-client/config to /etc/sv/opscode-push-jobs-client/log/config | |
| * file[/etc/sv/opscode-push-jobs-client/log/run] action create | |
| - create new file /etc/sv/opscode-push-jobs-client/log/run | |
| - update content in file /etc/sv/opscode-push-jobs-client/log/run from none to c8e3d3 | |
| --- /etc/sv/opscode-push-jobs-client/log/run 2015-09-25 20:17:07.247149656 +0000 | |
| +++ /etc/sv/opscode-push-jobs-client/log/.run20150925-1759-1dv2pm2 2015-09-25 20:17:07.247149656 +0000 | |
| @@ -1 +1,3 @@ | |
| +#!/bin/sh | |
| +exec svlogd -tt /var/log/opscode-push-jobs-client | |
| - change mode from '' to '0755' | |
| * template[/etc/sv/opscode-push-jobs-client/log/config] action create | |
| - create new file /etc/sv/opscode-push-jobs-client/log/config | |
| - update content in file /etc/sv/opscode-push-jobs-client/log/config from none to e3b0c4 | |
| (no diff) | |
| - change mode from '' to '0644' | |
| * directory[/etc/sv/opscode-push-jobs-client/env] action create | |
| - create new directory /etc/sv/opscode-push-jobs-client/env | |
| - change mode from '' to '0755' | |
| * ruby_block[zap extra env files] action run (skipped due to only_if) | |
| * directory[/etc/sv/opscode-push-jobs-client/control] action create | |
| - create new directory /etc/sv/opscode-push-jobs-client/control | |
| - change mode from '' to '0755' | |
| * link[/etc/init.d/opscode-push-jobs-client] action create | |
| - create symlink at /etc/init.d/opscode-push-jobs-client to /usr/bin/sv | |
| * file[/etc/sv/opscode-push-jobs-client/down] action nothing (skipped due to action :nothing) | |
| * link[/etc/service/opscode-push-jobs-client] action create | |
| - create symlink at /etc/service/opscode-push-jobs-client to /etc/sv/opscode-push-jobs-client | |
| * runit_service[opscode-push-jobs-client] action start (up to date) | |
| Recipe: chef-sugar::default | |
| * chef_gem[chef-sugar] action install (up to date) | |
| Recipe: delivery_build::chef_client | |
| * directory[/etc/chef] action create (up to date) | |
| * file[/etc/chef/client.rb] action create | |
| - change mode from '0640' to '0644' | |
| * directory[/etc/chef/trusted_certs] action create (up to date) | |
| * file[/etc/chef/trusted_certs/33.33.33.11.crt] action create (up to date) | |
| Recipe: git::default | |
| * git_client[default] action install | |
| * apt_package[default :create git] action install | |
| - install version 1:1.9.1-1ubuntu0.1 of package git | |
| Recipe: delivery_build::repo | |
| * packagecloud_repo[chef/stable] action add | |
| * apt_package[apt-transport-https] action install (up to date) | |
| * template[/etc/apt/sources.list.d/chef_stable.list] action create | |
| - create new file /etc/apt/sources.list.d/chef_stable.list | |
| - update content in file /etc/apt/sources.list.d/chef_stable.list from none to 269da4 | |
| --- /etc/apt/sources.list.d/chef_stable.list 2015-09-25 20:17:40.875533101 +0000 | |
| +++ /tmp/chef-rendered-template20150925-1759-8dgerg 2015-09-25 20:17:40.875533101 +0000 | |
| @@ -1 +1,3 @@ | |
| +deb https://packagecloud.io/chef/stable/ubuntu trusty main | |
| +deb-src https://packagecloud.io/chef/stable/ubuntu trusty main | |
| - change mode from '' to '0644' | |
| * execute[apt-key-add-chef_stable] action run | |
| - execute wget -qO - https://packagecloud.io/gpg.key | apt-key add - | |
| * execute[apt-get-update-chef_stable] action run | |
| - execute apt-get update -o Dir::Etc::sourcelist="sources.list.d/chef_stable.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" | |
| * execute[apt-key-add-chef_stable] action nothing (skipped due to action :nothing) | |
| * execute[apt-get-update-chef_stable] action nothing (skipped due to action :nothing) | |
| Recipe: delivery_build::user | |
| * directory[/var/opt/delivery] action create | |
| - create new directory /var/opt/delivery | |
| - change mode from '' to '0755' | |
| * user[dbuild] action create | |
| - create user dbuild | |
| Recipe: delivery_build::chefdk | |
| * apt_package[chefdk] action upgrade | |
| - upgrade package chefdk from uninstalled to 0.8.0-1 | |
| * file[/root/.gemrc] action create | |
| - create new file /root/.gemrc | |
| - update content in file /root/.gemrc from none to 6936fa | |
| --- /root/.gemrc 2015-09-25 20:21:04.734851523 +0000 | |
| +++ /root/..gemrc20150925-1759-1nh1oef 2015-09-25 20:21:04.734851523 +0000 | |
| @@ -1 +1,12 @@ | |
| +--- | |
| +:benchmark: false | |
| +:verbose: true | |
| +:update_sources: true | |
| +gem: --no-rdoc --no-ri | |
| +install: --no-user-install | |
| +:sources: | |
| +- http://rubygems.org/ | |
| +- http://gems.github.com/ | |
| +:backtrace: true | |
| +:bulk_threshold: 1000 | |
| - change mode from '' to '0644' | |
| Recipe: delivery_build::workspace | |
| * directory[/var/opt/delivery/workspace] action create | |
| - create new directory /var/opt/delivery/workspace | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'dbuild' | |
| * directory[/var/opt/delivery/workspace/.chef] action create | |
| - create new directory /var/opt/delivery/workspace/.chef | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'dbuild' | |
| * directory[/var/opt/delivery/workspace/bin] action create | |
| - create new directory /var/opt/delivery/workspace/bin | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| * directory[/var/opt/delivery/workspace/lib] action create | |
| - create new directory /var/opt/delivery/workspace/lib | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| * directory[/var/opt/delivery/workspace/etc] action create | |
| - create new directory /var/opt/delivery/workspace/etc | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| * template[/var/opt/delivery/workspace/bin/git_ssh] action create | |
| - create new file /var/opt/delivery/workspace/bin/git_ssh | |
| - update content in file /var/opt/delivery/workspace/bin/git_ssh from none to 0da630 | |
| --- /var/opt/delivery/workspace/bin/git_ssh 2015-09-25 20:21:04.774871020 +0000 | |
| +++ /tmp/chef-rendered-template20150925-1759-1fnb1qp 2015-09-25 20:21:04.774871020 +0000 | |
| @@ -1 +1,15 @@ | |
| +#!/bin/bash | |
| +# Martin Emde | |
| +# https://github.com/martinemde/git-ssh-wrapper | |
| + | |
| +unset SSH_AUTH_SOCK | |
| +ssh -o CheckHostIP=no \ | |
| + -o IdentitiesOnly=yes \ | |
| + -o LogLevel=INFO \ | |
| + -o StrictHostKeyChecking=no \ | |
| + -o PasswordAuthentication=no \ | |
| + -o UserKnownHostsFile=/var/opt/delivery/workspace/etc/delivery-git-ssh-known-hosts \ | |
| + -o IdentityFile=/var/opt/delivery/workspace/etc/builder_key \ | |
| + -l builder \ | |
| + $* | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| * file[/var/opt/delivery/workspace/etc/delivery-git-ssh-known-hosts] action create | |
| - create new file /var/opt/delivery/workspace/etc/delivery-git-ssh-known-hosts | |
| - change mode from '' to '0644' | |
| - change owner from '' to 'dbuild' | |
| * template[/var/opt/delivery/workspace/bin/delivery-cmd] action create | |
| - create new file /var/opt/delivery/workspace/bin/delivery-cmd | |
| - update content in file /var/opt/delivery/workspace/bin/delivery-cmd from none to 5c6ddf | |
| --- /var/opt/delivery/workspace/bin/delivery-cmd 2015-09-25 20:21:04.798882718 +0000 | |
| +++ /tmp/chef-rendered-template20150925-1759-1n64cvt 2015-09-25 20:21:04.798882718 +0000 | |
| @@ -1 +1,175 @@ | |
| +#!/opt/chefdk/embedded/bin/ruby | |
| + | |
| +require 'chef' | |
| +require 'chef/config' | |
| +require 'chef/rest' | |
| +require 'chef/client' | |
| +require 'base64' | |
| +require 'uri' | |
| +require 'date' | |
| + | |
| +module Delivery | |
| + # Helper methods for our build node job runner workflow. | |
| + module JobHelpers | |
| + | |
| + # All build nodes currently leverage a built-in internal user that | |
| + # all enterprises have; its name is "builder". | |
| + # | |
| + # This is my builder. There are many like it, but this is mine. | |
| + BUILDER_USER = "builder" | |
| + | |
| + # Create appropriate authentication headers for a builder, given a | |
| + # job data hash. If no token is present in `job_data` (because the | |
| + # build nodes were updated before the server began handing tokens | |
| + # out), an empty set of headers is returned. | |
| + # | |
| + # @param job_data [Hash] Describes the job being run; we're | |
| + # looking for a `token` key. | |
| + # | |
| + # @return [Hash] authentication headers, suitable for passing into | |
| + # a `Chef::REST` call. | |
| + def self.builder_auth_headers(job_data) | |
| + if job_token = job_data["token"] | |
| + {"chef-delivery-token" => job_token, | |
| + "chef-delivery-user" => BUILDER_USER} | |
| + else | |
| + {} | |
| + end | |
| + end | |
| + | |
| + end # JobHelpers | |
| +end # Delivery | |
| + | |
| +class Streamy | |
| + attr_accessor :output, :rest, :path, :builder_auth_headers | |
| + | |
| + def initialize(rest, path, headers) | |
| + @rest = rest | |
| + @path = path | |
| + @builder_auth_headers = headers | |
| + @output = "" | |
| + end | |
| + | |
| + def <<(arg) | |
| + begin | |
| + # Force the chef-client output into UTF-8 to prevent issues | |
| + # sending it to our REST API. | |
| + @output << arg.force_encoding('utf-8') | |
| + rest.post(path, | |
| + { | |
| + "run_success" => false, | |
| + "run_log" => @output, | |
| + "run_status" => "running", | |
| + "run_complete" => false | |
| + }, | |
| + builder_auth_headers | |
| + ) | |
| + rescue | |
| + # If we hit this block it means 1 of 2 things went wrong: | |
| + # 1) There was an error encoding the String | |
| + # 2) There was an error talking to the Delivery Server | |
| + # | |
| + # The first case, while unlikely, shouldn't cause the entire phase | |
| + # run to fail. We would rather have a successful phase runs without | |
| + # logs than a failed phase runs due to logging errors. | |
| + # | |
| + # The second case, if it happens with the request, the logs will continue | |
| + # to aggregate and be sent on the next attempt. If we continue to get | |
| + # request errors than eventually the job will time out and we will know | |
| + # there is something wrong with the build node or the delivery server. | |
| + end | |
| + end | |
| + | |
| + def to_str | |
| + @output | |
| + end | |
| +end | |
| + | |
| +workspace_root = "/var/opt/delivery/workspace" | |
| +workspace_bin = "/var/opt/delivery/workspace/bin" | |
| + | |
| +Chef::Config.from_file("/etc/chef/client.rb") | |
| +client = Chef::Client.new | |
| +client.run_ohai | |
| +client.node_name | |
| + | |
| +change_file = File.join(workspace_root, 'change.json') | |
| +raw_json = Base64.decode64(ARGV[0]) | |
| +File.open(change_file, 'w') do |file| | |
| + file.puts(raw_json) | |
| +end | |
| + | |
| +job_data = Chef::JSONCompat.from_json(raw_json) | |
| + | |
| +builder_auth_headers = Delivery::JobHelpers.builder_auth_headers(job_data) | |
| + | |
| +rest = Chef::REST.new(job_data["delivery_api_url"]) | |
| +path = File.join(job_data['enterprise'], | |
| + 'orgs', job_data['organization'], | |
| + 'projects', job_data['project'], | |
| + 'pipelines', job_data['pipeline'], | |
| + 'phase_runs', job_data['phase_run_id'].to_s) | |
| + | |
| +streamy = Streamy.new(rest, path, builder_auth_headers) | |
| +server = URI(job_data['delivery_api_url']) | |
| + | |
| +command_line = if job_data['stage'] == "verify" | |
| + "delivery job #{job_data['stage']} #{job_data['phase']} --server #{server.host} --user builder --ent #{job_data['enterprise']} --org #{job_data['organization']} --project #{job_data['project']} --for #{job_data['pipeline']} --change-id #{job_data['change_id']} --branch #{job_data['patchset_branch']} --git-url #{job_data['git_url']}" | |
| +else | |
| + "delivery job #{job_data['stage']} #{job_data['phase']} --server #{server.host} --user builder --ent #{job_data['enterprise']} --org #{job_data['organization']} --project #{job_data['project']} --for #{job_data['pipeline']} --change-id #{job_data['change_id']} --shasum #{job_data['sha']} --git-url #{job_data['git_url']}" | |
| +end | |
| + | |
| +https_proxy = Chef::Config[:https_proxy] || ENV['HTTPS_PROXY'] || ENV['https_proxy'] | |
| +http_proxy = Chef::Config[:http_proxy] || ENV['HTTP_PROXY'] || ENV['http_proxy'] | |
| +no_proxy = Chef::Config[:no_proxy] || ENV['NO_PROXY'] || ENV['no_proxy'] | |
| +cli_env = { | |
| + 'PATH' => "/opt/chefdk/bin:/opt/chefdk/embedded/bin:#{ENV['PATH']}", | |
| + 'LC_ALL' => 'en_US.UTF-8', | |
| + 'GIT_SSH' => File.join(workspace_bin, 'git_ssh'), | |
| + 'HOME' => workspace_root, | |
| + 'TERM' => 'screen-256color' | |
| +} | |
| +cli_env['https_proxy'] = https_proxy if https_proxy && !https_proxy.strip.empty? | |
| +cli_env['http_proxy'] = http_proxy if http_proxy && !http_proxy.strip.empty? | |
| +cli_env['no_proxy'] = no_proxy if no_proxy && !no_proxy.strip.empty? | |
| + | |
| +cmd = Mixlib::ShellOut.new("#{command_line} --no-spinner", :environment => cli_env) | |
| + | |
| +start_datetime = DateTime.now | |
| + | |
| +streamy << "Starting job on builder #{client.node_name} at #{start_datetime.iso8601}.\nCommand: #{command_line}\n" | |
| +## This we will want to be configurable. but for now make it big and | |
| +## and rely on pushy to timeout. | |
| +cmd.timeout = 6600 | |
| +cmd.log_level = :error | |
| +cmd.live_stream = streamy | |
| +cmd.cwd = workspace_root | |
| +cmd.run_command | |
| + | |
| +end_datetime = DateTime.now | |
| +# difference between 2 DateTimes is expressed in days | |
| +elapsed_time = ((end_datetime - start_datetime) * 24 * 60 * 60).to_i | |
| +streamy << "\nJob ended at #{end_datetime.iso8601} (ran in #{elapsed_time} seconds)" | |
| + | |
| +if cmd.error? | |
| + rest.post(path, | |
| + { | |
| + "run_success" => false, | |
| + "run_log" => streamy.output, | |
| + "run_status" => "failed", | |
| + "run_complete" => true | |
| + }, | |
| + builder_auth_headers | |
| + ) | |
| +else | |
| + rest.post(path, | |
| + { | |
| + "run_success" => true, | |
| + "run_log" => streamy.output, | |
| + "run_status" => "finished", | |
| + "run_complete" => true | |
| + }, | |
| + builder_auth_headers | |
| + ) | |
| +end | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| * file[/var/opt/delivery/workspace/etc/builder_key] action create | |
| - create new file /var/opt/delivery/workspace/etc/builder_key | |
| - update content in file /var/opt/delivery/workspace/etc/builder_key from none to 474445 | |
| --- /var/opt/delivery/workspace/etc/builder_key 2015-09-25 20:21:04.890927562 +0000 | |
| +++ /var/opt/delivery/workspace/etc/.builder_key20150925-1759-kix2kf 2015-09-25 20:21:04.890927562 +0000 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +M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xLQo4tiUgI8IEzByfOca+XUbUnayT | |
| +yQlubmY5fr0fL6n8BUF3vrIhA8E01N/qoNEBzrMCgYB2TwPZmNBTuvY/a29YaWqF | |
| +VSNKEs9b+MsYfAnM71lUzeaB9fFZtcBYSDo3LqiFsRXKesE0BEOoY6PBr7LJLzEp | |
| +RNTGRUblRNbjMWAnQceRFfqHVMPPqMZRMtIswOOtaAxI23Mvyb1uUCrgG2pPts1/ | |
| +tIROuMhC3w90COzxL7WLIQKBgD/QP4tIfWHPoxpxrjRkKRzMFnQbJ8slXwxu9aXo | |
| +VijoSLN/Xf2jmYKrF7sJzsD/nVNUu0kDxhxLkSn50YK3WLyfT5v2xkBmeUT/WWf0 | |
| +h++sCPTPj9qlZYJsnxNLEq0KXaL5nSGZAYGXcXZhcrGw4WcebtiBwPoDYsa2Bb20 | |
| +Fl7LAoGAdMLZ+Pp9+NR48kcIIjU87hd2thhEOKXgn788hVbqtj2ryOloBVR+PPka | |
| +Va0v+ZueyDXpErAnwaoQ6yT43trC8ygJn3FiNAsVZ2sAP3u7TYY2J2QOgsEUu0bz | |
| +rkTm7FA1Rk1UO51dmGuicFa9wfiwy15rr/DJX6obDmWJ4NqnlKo= | |
| +-----END RSA PRIVATE KEY----- | |
| - change mode from '' to '0600' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'root' | |
| * file[/var/opt/delivery/workspace/.chef/builder_key] action create | |
| - create new file /var/opt/delivery/workspace/.chef/builder_key | |
| - update content in file /var/opt/delivery/workspace/.chef/builder_key from none to 474445 | |
| --- /var/opt/delivery/workspace/.chef/builder_key 2015-09-25 20:21:04.914939260 +0000 | |
| +++ /var/opt/delivery/workspace/.chef/.builder_key20150925-1759-l4wik9 2015-09-25 20:21:04.914939260 +0000 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +MIIEogIBAAKCAQEAxApDogZvMWJK4UIZlkiqHMsfGy3X6g9vuP+geHyXI7mz0vue | |
| +i3pX2qAfU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2TwPZmNBTuvY/a29YaWqF | |
| +VSNKEs9b+MsYfAnM71lUzeaB9fFZtcBYSDo3LqiFsRXKesE0BEOoY6PBr7LJLzEp | |
| +RNTGRUblRNbjMWAnQceRFfqHVMPPqMZRMtIswOOtaAxI23Mvyb1uUCrgG2pPts1/ | |
| +tIROuMhC3w90COzxL7WLIQKBgD/QP4tIfWHPoxpxrjRkKRzMFnQbJ8slXwxu9aXo | |
| +VijoSLN/Xf2jmYKrF7sJzsD/nVNUu0kDxhxLkSn50YK3WLyfT5v2xkBmeUT/WWf0 | |
| +h++sCPTPj9qlZYJsnxNLEq0KXaL5nSGZAYGXcXZhcrGw4WcebtiBwPoDYsa2Bb20 | |
| +Fl7LAoGAdMLZ+Pp9+NR48kcIIjU87hd2thhEOKXgn788hVbqtj2ryOloBVR+PPka | |
| +Va0v+ZueyDXpErAnwaoQ6yT43trC8ygJn3FiNAsVZ2sAP3u7TYY2J2QOgsEUu0bz | |
| +rkTm7FA1Rk1UO51dmGuicFa9wfiwy15rr/DJX6obDmWJ4NqnlKo= | |
| +-----END RSA PRIVATE KEY----- | |
| - change mode from '' to '0600' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'root' | |
| * file[/var/opt/delivery/workspace/etc/delivery.pem] action create | |
| - create new file /var/opt/delivery/workspace/etc/delivery.pem | |
| - update content in file /var/opt/delivery/workspace/etc/delivery.pem from none to a90bab | |
| --- /var/opt/delivery/workspace/etc/delivery.pem 2015-09-25 20:21:04.938950958 +0000 | |
| +++ /var/opt/delivery/workspace/etc/.delivery.pem20150925-1759-kc2rd4 2015-09-25 20:21:04.938950958 +0000 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +MIIEogIBAAKCAQEA7jcVdMZvl1bwoiobzrbBrOzQe0c9H75xuBu1/nvICwYxYQvG | |
| +3bDMxaZUbAKaEkQP9YnvPefANgKYbYox5nKNVLJQtJCjA3bzA1lad7EuxxlXGy+n | |
| +e/zMRzUnx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fGP9/5rjrTpxD5b/vYFCyC5NW | |
| +sVczXOhtyVpCdhxo10XFpI1z2YvS1HFDa8hp9zYyA6NV9Rn4I7Dr1Ah13oEgMzMz | |
| +VWtfu+AwhA0Ksg2jkSsu4QKBgAvBChAF0/wiC3AjqfQf7ipmeaCKv9k88IIyxaNz | |
| +4OovOJfaT8oMFjLpGDNs15Gmu4JpLdiIyT6bwF0iEbAoUNvWqutuZq/aGixlCn31 | |
| +VSN4qcGb3rbQdS5Kgnl45PAaFJX+5cOZBxv+FVRKlSlbiYsTIwwkPSu1n19heLh+ | |
| +ohlRAoGASHrzFnMtXYSwiqyM8+k1+TV/KAyN4Xk+Kk9mObRwNBuSwEBHYHFVslHJ | |
| ++yFh9Hdp/HDn6rSKjhtEwPPqGu/XZyBozprrRzzy7m4z3nthMp8nk+Vu3CXl8Mfu | |
| +vHjYq5s7/UjxWuzvfJm4TOxtb/khGlggCYuIVPS/VLXOuhpc7Ag= | |
| +-----END RSA PRIVATE KEY----- | |
| - change mode from '' to '0600' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'root' | |
| * file[/var/opt/delivery/workspace/.chef/delivery.pem] action create | |
| - create new file /var/opt/delivery/workspace/.chef/delivery.pem | |
| - update content in file /var/opt/delivery/workspace/.chef/delivery.pem from none to a90bab | |
| --- /var/opt/delivery/workspace/.chef/delivery.pem 2015-09-25 20:21:04.962962657 +0000 | |
| +++ /var/opt/delivery/workspace/.chef/.delivery.pem20150925-1759-12hly0u 2015-09-25 20:21:04.962962657 +0000 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +MIIEogIBAAKCAQEA7jcVdMZvl1bwoiobzrbBrOzQe0c9H75xuBu1/nvICwYxYQvG | |
| +3bDMxaZUbAKaEkQP9YnvPefANgKYbYox5nKNVLJQtJCjA3bzA1lad7EuxxlXGy+n | |
| +e/zMRzUnx1C6u49ztXQa2JGvX+GUReroCY/EGWBE3h/ckZ00YPwqn92vNR44NRnU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1z2YvS1HFDa8hp9zYyA6NV9Rn4I7Dr1Ah13oEgMzMz | |
| +VWtfu+AwhA0Ksg2jkSsu4QKBgAvBChAF0/wiC3AjqfQf7ipmeaCKv9k88IIyxaNz | |
| +4OovOJfaT8oMFjLpGDNs15Gmu4JpLdiIyT6bwF0iEbAoUNvWqutuZq/aGixlCn31 | |
| +VSN4qcGb3rbQdS5Kgnl45PAaFJX+5cOZBxv+FVRKlSlbiYsTIwwkPSu1n19heLh+ | |
| +ohlRAoGASHrzFnMtXYSwiqyM8+k1+TV/KAyN4Xk+Kk9mObRwNBuSwEBHYHFVslHJ | |
| ++yFh9Hdp/HDn6rSKjhtEwPPqGu/XZyBozprrRzzy7m4z3nthMp8nk+Vu3CXl8Mfu | |
| +vHjYq5s7/UjxWuzvfJm4TOxtb/khGlggCYuIVPS/VLXOuhpc7Ag= | |
| +-----END RSA PRIVATE KEY----- | |
| - change mode from '' to '0600' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'root' | |
| * template[/var/opt/delivery/workspace/etc/delivery.rb] action create | |
| - create new file /var/opt/delivery/workspace/etc/delivery.rb | |
| - update content in file /var/opt/delivery/workspace/etc/delivery.rb from none to 04e435 | |
| --- /var/opt/delivery/workspace/etc/delivery.rb 2015-09-25 20:21:04.990976305 +0000 | |
| +++ /tmp/chef-rendered-template20150925-1759-1romocn 2015-09-25 20:21:04.986974355 +0000 | |
| @@ -1 +1,8 @@ | |
| +require 'chef/config' | |
| +current_dir = File.dirname(__FILE__) | |
| +Chef::Config.from_file("/etc/chef/client.rb") | |
| +log_location STDOUT | |
| +node_name "delivery" | |
| +client_key "#{current_dir}/delivery.pem" | |
| +trusted_certs_dir "/etc/chef/trusted_certs" | |
| - change mode from '' to '0644' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'root' | |
| * template[/var/opt/delivery/workspace/.chef/knife.rb] action create | |
| - create new file /var/opt/delivery/workspace/.chef/knife.rb | |
| - update content in file /var/opt/delivery/workspace/.chef/knife.rb from none to 04e435 | |
| --- /var/opt/delivery/workspace/.chef/knife.rb 2015-09-25 20:21:05.002982154 +0000 | |
| +++ /tmp/chef-rendered-template20150925-1759-1fzu17s 2015-09-25 20:21:05.002982154 +0000 | |
| @@ -1 +1,8 @@ | |
| +require 'chef/config' | |
| +current_dir = File.dirname(__FILE__) | |
| +Chef::Config.from_file("/etc/chef/client.rb") | |
| +log_location STDOUT | |
| +node_name "delivery" | |
| +client_key "#{current_dir}/delivery.pem" | |
| +trusted_certs_dir "/etc/chef/trusted_certs" | |
| - change mode from '' to '0644' | |
| - change owner from '' to 'dbuild' | |
| * execute[fetch_ssl_certificate] action run | |
| - execute knife ssl fetch -c /var/opt/delivery/workspace/etc/delivery.rb | |
| Recipe: delivery_build::cli | |
| * apt_package[delivery-cli] action upgrade | |
| - upgrade package delivery-cli from uninstalled to 20150811030759+20150811030759-1 | |
| Recipe: delivery_build::trusted_certs | |
| * trusted_cert[Delivery Server Cert] action append | |
| - Append Delivery Server Cert to /opt/chefdk/embedded/ssl/certs/cacert.pem | |
| Recipe: push-jobs::service_runit | |
| * runit_service[opscode-push-jobs-client] action restart (up to date) | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 55/65 resources updated in 547.064789394 seconds | |
| - [build-node-vagrant-1] run 'chef-client -l auto' on build-node-vagrant-1 | |
| - update node build-node-vagrant-2 at https://33.33.33.10/organizations/vagrant | |
| - add normal.chef_provisioning.reference.needs_reload = false | |
| - add normal.chef_provisioning.reference.forwarded_ports = {}[2015-09-25T13:21:43-07:00] ERROR: Unable to download /etc/chef/client.pem to /tmp/client.pem.2706329526 on vagrant@127.0.0.1 -- Error: command 'cp /etc/chef/client.pem /tmp/client.pem.2706329526' exited with code 1. | |
| [2015-09-25T13:21:43-07:00] WARN: Unable to clean up /tmp/client.pem.2706329526 on vagrant@127.0.0.1 -- Error: command 'rm /tmp/client.pem.2706329526' exited with code 1. | |
| - [build-node-vagrant-2] generate private key (2048 bits) | |
| - [build-node-vagrant-2] create directory /etc/chef on build-node-vagrant-2 | |
| - [build-node-vagrant-2] write file /etc/chef/client.pem on build-node-vagrant-2 | |
| - [build-node-vagrant-2] create client build-node-vagrant-2 at clients | |
| - [build-node-vagrant-2] add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA09UAJZZ0Jobh4o46bSCc\naNd12u91TS4YDZ572+WAJ1FIaxz1I1TdKMOWnfAxt+5m/L0yjS4W0EFoLdfiRa1E\nbo/58Dgv1mQLYLglPDf39KCghnDmovCPkRX63dzl47r+6Wc65eN2eAj/jQ/cYg5Y\nLSWyQ0g5lv5kIMHDG3FabN3f1E8OZDozSyBxVwlex3Hw1dR18QuNmtMbbmchfZdQ\neGgmNI+aKKWSpK7Ie6vR8R8c9Vcrf3LOu/ExreMhk922RF8XoDgWP4783sHuxKP2\nIi4QS0ALbadvXZ2o8QnsPWWpAZ0Igtz5cc5hAGtKUYhP51DrCs2f5G0LfCgiLcNj\nnwIDAQAB\n-----END PUBLIC KEY-----\n" | |
| - [build-node-vagrant-2] Add build-node-vagrant-2 to client read ACLs | |
| - [build-node-vagrant-2] Add build-node-vagrant-2 to client update ACLs | |
| - [build-node-vagrant-2] write file /etc/chef/client.rb on build-node-vagrant-2 | |
| - [build-node-vagrant-2] write file /tmp/detect.sh on build-node-vagrant-2 | |
| - [build-node-vagrant-2] upload file /Users/salimafiune/.chef/package_cache/chef-12.4.3-1.el6.x86_64.rpm to /tmp/chef-12.4.3-1.el6.x86_64.rpm on build-node-vagrant-2 | |
| - [build-node-vagrant-2] run 'rpm -Uvh --oldpackage --replacepkgs "/tmp/chef-12.4.3-1.el6.x86_64.rpm"' on build-node-vagrant-2 | |
| - [build-node-vagrant-2] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.11.crt to /etc/chef/trusted_certs/33.33.33.11.crt on build-node-vagrant-2 | |
| - [build-node-vagrant-2] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/encrypted_data_bag_secret to /etc/chef/encrypted_data_bag_secret on build-node-vagrant-2 | |
| [build-node-vagrant-2] Starting Chef Client, version 12.4.3 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "push-jobs", "delivery_build"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster | |
| - chef-server-12 | |
| - apt-chef | |
| - chef-ingredient | |
| - yum-chef | |
| - apt | |
| - yum | |
| - hostsfile | |
| - git | |
| - build-essential | |
| - dmg | |
| - windows | |
| - chef_handler | |
| - yum-epel | |
| - delivery_build | |
| - packagecloud | |
| - chef-sugar | |
| - 7-zip | |
| - omnibus | |
| - homebrew | |
| - wix | |
| - windows-sdk | |
| - push-jobs | |
| - runit | |
| - chef-splunk | |
| - chef-vault | |
| Compiling Cookbooks... | |
| [2015-09-25T20:22:04+00:00] WARN: You are overriding windows_package on {:os=>"windows"} with Chef::Resource::WindowsCookbookPackage: used to be Chef::Resource::WindowsPackage. Use override: true if this is what you intended. | |
| [2015-09-25T20:22:04+00:00] WARN: You declared a new resource Chef::Provider::GitClient::Source for resource git_client, but it comes alphabetically after Chef::Provider::GitClient::Package and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for git_client. | |
| Recipe: delivery-cluster::pkg_repo_management | |
| * execute[yum clean all] action run | |
| - execute yum clean all | |
| Recipe: chef-sugar::default | |
| * chef_gem[chef-sugar] action install | |
| - install version 3.1.1 of package chef-sugar | |
| [2015-09-25T20:22:17+00:00] WARN: Cloning resource attributes for directory[/etc/chef] from prior resource (CHEF-3694) | |
| [2015-09-25T20:22:17+00:00] WARN: Previous directory[/etc/chef]: /var/chef/cache/cookbooks/push-jobs/recipes/config.rb:25:in `from_file' | |
| [2015-09-25T20:22:17+00:00] WARN: Current directory[/etc/chef]: /var/chef/cache/cookbooks/delivery_build/recipes/chef_client.rb:27:in `from_file' | |
| Converging 41 resources | |
| Recipe: yum::default | |
| * yum_globalconfig[/etc/yum.conf] action create | |
| * template[/etc/yum.conf] action create | |
| - update content in file /etc/yum.conf from 9fab17 to 31c39a | |
| --- /etc/yum.conf 2014-10-16 15:15:03.000000000 +0000 | |
| +++ /tmp/chef-rendered-template20150925-7254-6b9wk1 2015-09-25 20:22:18.085722246 +0000 | |
| @@ -1,26 +1,15 @@ | |
| +# This file was generated by Chef | |
| +# Do NOT modify this file by hand. | |
| + | |
| [main] | |
| cachedir=/var/cache/yum/$basearch/$releasever | |
| -keepcache=0 | |
| debuglevel=2 | |
| -logfile=/var/log/yum.log | |
| +distroverpkg=centos-release | |
| exactarch=1 | |
| -obsoletes=1 | |
| gpgcheck=1 | |
| +installonly_limit=3 | |
| +keepcache=0 | |
| +logfile=/var/log/yum.log | |
| +obsoletes=1 | |
| plugins=1 | |
| -installonly_limit=5 | |
| -bugtracker_url=http://bugs.centos.org/set_project.php?project_id=19&ref=http://bugs.centos.org/bug_report_page.php?category=yum | |
| -distroverpkg=centos-release | |
| - | |
| -# This is the default, if you make this bigger yum won't see if the metadata | |
| -# is newer on the remote and so you'll "gain" the bandwidth of not having to | |
| -# download the new metadata and "pay" for it by yum not having correct | |
| -# information. | |
| -# It is esp. important, to have correct metadata, for distributions like | |
| -# Fedora which don't keep old packages around. If you don't like this checking | |
| -# interupting your command line usage, it's much better to have something | |
| -# manually check the metadata once an hour (yum-updatesd will do this). | |
| -# metadata_expire=90m | |
| - | |
| -# PUT YOUR REPOS HERE OR IN separate files named file.repo | |
| -# in /etc/yum.repos.d | |
| - restore selinux security context | |
| Recipe: delivery-cluster::pkg_repo_management | |
| * execute[yum clean all] action nothing (skipped due to action :nothing) | |
| Recipe: push-jobs::linux | |
| * remote_file[/var/chef/cache/opscode-push-jobs-client-1.1.5-1.el6.x86_64.rpm] action create | |
| - create new file /var/chef/cache/opscode-push-jobs-client-1.1.5-1.el6.x86_64.rpm | |
| - update content in file /var/chef/cache/opscode-push-jobs-client-1.1.5-1.el6.x86_64.rpm from none to f5e6be | |
| (file sizes exceed 10000000 bytes, diff output suppressed) | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * chef_ingredient[push-client] action install | |
| * chef_gem[push-client-mixlib-versioning] action install | |
| - install version 1.1.0 of package mixlib-versioning | |
| * chef_gem[push-client-mixlib-versioning] action install (up to date) | |
| * rpm_package[push-client] action install | |
| - install version 1.1.5-1.el6 of package opscode-push-jobs-client | |
| Recipe: push-jobs::config | |
| * directory[/etc/chef] action create (up to date) | |
| * template[/etc/chef/push-jobs-client.rb] action create | |
| - create new file /etc/chef/push-jobs-client.rb | |
| - update content in file /etc/chef/push-jobs-client.rb from none to 4e6803 | |
| --- /etc/chef/push-jobs-client.rb 2015-09-25 20:24:07.716429828 +0000 | |
| +++ /tmp/chef-rendered-template20150925-7254-1ydq4pi 2015-09-25 20:24:07.716429828 +0000 | |
| @@ -1 +1,19 @@ | |
| +# Generated by Chef for build-node-vagrant-2 | |
| +# | |
| +# Local modifications will be overwritten! | |
| + | |
| +LC_ALL='en_US.UTF-8' | |
| + | |
| +# Chef server connect options | |
| +chef_server_url 'https://33.33.33.10/organizations/vagrant' | |
| +node_name 'build-node-vagrant-2' | |
| +client_key '/etc/chef/client.pem' | |
| +trusted_certs_dir '/etc/chef/trusted_certs' | |
| +verify_api_cert false | |
| + | |
| +# The whitelist comes from node['push_jobs']['whitelist'] | |
| +whitelist({"chef-client"=>"chef-client", /^delivery-cmd (.+)$/=>"/var/opt/delivery/workspace/bin/delivery-cmd '\\1'"}) | |
| + | |
| +# We're under runit, so don't output timestamp | |
| +Mixlib::Log::Formatter.show_time = false | |
| - change mode from '' to '0644' | |
| - change owner from '' to 'root' | |
| - change group from '' to 'root' | |
| - restore selinux security context | |
| Recipe: runit::default | |
| * service[runit] action nothing (skipped due to action :nothing) | |
| * execute[start-runsvdir] action nothing (skipped due to action :nothing) | |
| * execute[runit-hup-init] action nothing (skipped due to action :nothing) | |
| * packagecloud_repo[imeyer/runit] action add | |
| * yum_package[pygpgme] action install (up to date) | |
| * log[pygpgme_warning] action write (skipped due to not_if) | |
| * ruby_block[disable repo_gpgcheck if no pygpgme] action run (skipped due to not_if) | |
| * remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io] action create | |
| - create new file /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io | |
| - update content in file /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io from none to e42d7e | |
| --- /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io 2015-09-25 20:24:21.122831868 +0000 | |
| +++ /tmp/chef-rest20150925-7254-1rdrcj0 2015-09-25 20:24:21.121831240 +0000 | |
| @@ -1 +1,65 @@ | |
| +-----BEGIN PGP PUBLIC KEY BLOCK----- | |
| +Version: GnuPG v1.4.11 (GNU/Linux) | |
| + | |
| +mQINBFLUbogBEADceEoxBDoE6QM5xV/13qiELbFIkQgy/eEi3UesXmJblFdU7wcD | |
| +LOW3NuOIx/dgbZljeMEerj6N1cR7r7X5sVoFVEZiK4RLkC3Cpdns0d90ud2f3VyK | |
| +K7PXRBstdLm3JlW9OWZoe4VSADSMGWm1mIhT601qLKKAuWJoBIhnKY/RhA/RBXt7 | |
| +z22g4ta9bT67PlliTo1a8y6DhUA7gd+5TsVHaxDRrzc3mKObdyS5LOT/gf8Ti2tY | |
| +BY5MBbQ8NUGExls4dXKlieePhKutFbde7sq3n5sdp1Ndoran1u0LsWnaSDx11R3x | |
| +iYfXJ6xGukAc6pYlUD1yYjU4oRGhD2fPyuewqhHNUVwqupTBQtEGULrtdwK04kgI | |
| +H93ssGRsLqUKe88uZeeBczVuupv8ZLd1YcQ29AfJHe6nsevsgjF+eajYlzsvC8BN | |
| +q3nOvvedcuI6BW4WWFjraH06GNTyMAZi0HibTg65guZXpLcpPW9hTzXMoUrZz8Mv | |
| +J9yUBcFPKuFOLDpRP6uaIbxJsYqiituoltl0vgS/vJcpIVVRwSaqPHa6S63dmKm2 | |
| +6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aR3u0a9r24LgijGpdGabIeJm6O9vuuqFHHGI72pWUEs355 | |
| +lt8q1pAoJUv8NehQmlaR0h5wcwhEtwM6fiSIUTnuJnyHT053GjsUD7ef5fY1KEFm | |
| +aZeW04kRtFDOPinz0faE8hvsxzsVgkKye1c2vkXKdOXvA3x+pZzlTHtcgMOhjKQA | |
| +sA== | |
| +=H60S | |
| +-----END PGP PUBLIC KEY BLOCK----- | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * template[/etc/yum.repos.d/imeyer_runit.repo] action create | |
| - create new file /etc/yum.repos.d/imeyer_runit.repo | |
| - update content in file /etc/yum.repos.d/imeyer_runit.repo from none to 437004 | |
| --- /etc/yum.repos.d/imeyer_runit.repo 2015-09-25 20:24:21.252913391 +0000 | |
| +++ /tmp/chef-rendered-template20150925-7254-cj38r8 2015-09-25 20:24:21.252913391 +0000 | |
| @@ -1 +1,10 @@ | |
| +[imeyer_runit] | |
| +name=imeyer_runit | |
| +baseurl=https://packagecloud.io/imeyer/runit/el/6/$basearch | |
| +repo_gpgcheck=1 | |
| +gpgcheck=0 | |
| +enabled=1 | |
| +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io | |
| +sslverify=1 | |
| +sslcacert=/etc/pki/tls/certs/ca-bundle.crt | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * execute[yum-makecache-imeyer_runit] action run | |
| - execute yum -q makecache -y --disablerepo=* --enablerepo=imeyer_runit | |
| * ruby_block[yum-cache-reload-imeyer_runit] action create | |
| - execute the ruby block yum-cache-reload-imeyer_runit | |
| * execute[yum-makecache-imeyer_runit] action nothing (skipped due to action :nothing) | |
| * ruby_block[yum-cache-reload-imeyer_runit] action nothing (skipped due to action :nothing) | |
| * yum_package[runit] action install | |
| - install version 2.1.2-1.el6 of package runit | |
| Recipe: <Dynamically Defined Resource> | |
| * service[opscode-push-jobs-client] action nothing (skipped due to action :nothing) | |
| Recipe: push-jobs::service_runit | |
| * runit_service[opscode-push-jobs-client] action enable | |
| * directory[/etc/sv/opscode-push-jobs-client] action create | |
| - create new directory /etc/sv/opscode-push-jobs-client | |
| - change mode from '' to '0755' | |
| - restore selinux security context | |
| * template[/etc/sv/opscode-push-jobs-client/run] action create | |
| - create new file /etc/sv/opscode-push-jobs-client/run | |
| - update content in file /etc/sv/opscode-push-jobs-client/run from none to 454913 | |
| --- /etc/sv/opscode-push-jobs-client/run 2015-09-25 20:24:27.750985863 +0000 | |
| +++ /tmp/chef-rendered-template20150925-7254-1dxij9n 2015-09-25 20:24:27.750985863 +0000 | |
| @@ -1 +1,6 @@ | |
| +#!/bin/sh | |
| +exec 2>&1 | |
| +exec /opt/opscode-push-jobs-client/bin/pushy-client -l info -c /etc/chef/push-jobs-client.rb | |
| + | |
| +#exec /opt/opscode-push-jobs-client/bin/pushy-client -l -c | |
| - change mode from '' to '0755' | |
| - restore selinux security context | |
| * directory[/etc/sv/opscode-push-jobs-client/log] action create | |
| - create new directory /etc/sv/opscode-push-jobs-client/log | |
| - restore selinux security context | |
| * directory[/etc/sv/opscode-push-jobs-client/log/main] action create | |
| - create new directory /etc/sv/opscode-push-jobs-client/log/main | |
| - change mode from '' to '0755' | |
| - restore selinux security context | |
| * directory[/var/log/opscode-push-jobs-client] action create | |
| - create new directory /var/log/opscode-push-jobs-client | |
| - change mode from '' to '0755' | |
| - restore selinux security context | |
| * link[/var/log/opscode-push-jobs-client/config] action create | |
| - create symlink at /var/log/opscode-push-jobs-client/config to /etc/sv/opscode-push-jobs-client/log/config | |
| * file[/etc/sv/opscode-push-jobs-client/log/run] action create | |
| - create new file /etc/sv/opscode-push-jobs-client/log/run | |
| - update content in file /etc/sv/opscode-push-jobs-client/log/run from none to c8e3d3 | |
| --- /etc/sv/opscode-push-jobs-client/log/run 2015-09-25 20:24:28.210273697 +0000 | |
| +++ /etc/sv/opscode-push-jobs-client/log/.run20150925-7254-1vtd19b 2015-09-25 20:24:28.210273697 +0000 | |
| @@ -1 +1,3 @@ | |
| +#!/bin/sh | |
| +exec svlogd -tt /var/log/opscode-push-jobs-client | |
| - change mode from '' to '0755' | |
| - restore selinux security context | |
| * template[/etc/sv/opscode-push-jobs-client/log/config] action create | |
| - create new file /etc/sv/opscode-push-jobs-client/log/config | |
| - update content in file /etc/sv/opscode-push-jobs-client/log/config from none to e3b0c4 | |
| (no diff) | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * directory[/etc/sv/opscode-push-jobs-client/env] action create | |
| - create new directory /etc/sv/opscode-push-jobs-client/env | |
| - change mode from '' to '0755' | |
| - restore selinux security context | |
| * ruby_block[zap extra env files] action run (skipped due to only_if) | |
| * directory[/etc/sv/opscode-push-jobs-client/control] action create | |
| - create new directory /etc/sv/opscode-push-jobs-client/control | |
| - change mode from '' to '0755' | |
| - restore selinux security context | |
| * link[/etc/init.d/opscode-push-jobs-client] action create | |
| - create symlink at /etc/init.d/opscode-push-jobs-client to /sbin/sv | |
| * file[/etc/sv/opscode-push-jobs-client/down] action nothing (skipped due to action :nothing) | |
| * link[/etc/service/opscode-push-jobs-client] action create | |
| - create symlink at /etc/service/opscode-push-jobs-client to /etc/sv/opscode-push-jobs-client | |
| * runit_service[opscode-push-jobs-client] action start (up to date) | |
| Recipe: chef-sugar::default | |
| * chef_gem[chef-sugar] action install (up to date) | |
| Recipe: delivery_build::chef_client | |
| * directory[/etc/chef] action create (up to date) | |
| * file[/etc/chef/client.rb] action create | |
| - change mode from '0640' to '0644' | |
| - restore selinux security context | |
| * directory[/etc/chef/trusted_certs] action create (up to date) | |
| * file[/etc/chef/trusted_certs/33.33.33.11.crt] action create (up to date) | |
| Recipe: git::default | |
| * git_client[default] action install | |
| * yum_package[default :create git] action install | |
| - install version 1.7.1-3.el6_4.1 of package git | |
| Recipe: delivery_build::repo | |
| * packagecloud_repo[chef/stable] action add | |
| * yum_package[pygpgme] action install (up to date) | |
| * log[pygpgme_warning] action write (skipped due to not_if) | |
| * ruby_block[disable repo_gpgcheck if no pygpgme] action run (skipped due to not_if) | |
| * remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io] action create (up to date) | |
| * template[/etc/yum.repos.d/chef_stable.repo] action create | |
| - create new file /etc/yum.repos.d/chef_stable.repo | |
| - update content in file /etc/yum.repos.d/chef_stable.repo from none to 3d2e45 | |
| --- /etc/yum.repos.d/chef_stable.repo 2015-09-25 20:25:08.264376343 +0000 | |
| +++ /tmp/chef-rendered-template20150925-7254-t4l6f5 2015-09-25 20:25:08.264376343 +0000 | |
| @@ -1 +1,10 @@ | |
| +[chef_stable] | |
| +name=chef_stable | |
| +baseurl=https://packagecloud.io/chef/stable/el/6/$basearch | |
| +repo_gpgcheck=1 | |
| +gpgcheck=0 | |
| +enabled=1 | |
| +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io | |
| +sslverify=1 | |
| +sslcacert=/etc/pki/tls/certs/ca-bundle.crt | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * execute[yum-makecache-chef_stable] action run | |
| - execute yum -q makecache -y --disablerepo=* --enablerepo=chef_stable | |
| * ruby_block[yum-cache-reload-chef_stable] action create | |
| - execute the ruby block yum-cache-reload-chef_stable | |
| * execute[yum-makecache-chef_stable] action nothing (skipped due to action :nothing) | |
| * ruby_block[yum-cache-reload-chef_stable] action nothing (skipped due to action :nothing) | |
| Recipe: delivery_build::user | |
| * directory[/var/opt/delivery] action create | |
| - create new directory /var/opt/delivery | |
| - change mode from '' to '0755' | |
| - restore selinux security context | |
| * user[dbuild] action create | |
| - create user dbuild | |
| Recipe: delivery_build::chefdk | |
| * yum_package[chefdk] action upgrade | |
| - upgrade package chefdk from uninstalled to 0.8.0-1.el6 | |
| * file[/root/.gemrc] action create | |
| - create new file /root/.gemrc | |
| - update content in file /root/.gemrc from none to 6936fa | |
| --- /root/.gemrc 2015-09-25 20:28:48.780577908 +0000 | |
| +++ /root/..gemrc20150925-7254-twuesp 2015-09-25 20:28:48.780577908 +0000 | |
| @@ -1 +1,12 @@ | |
| +--- | |
| +:benchmark: false | |
| +:verbose: true | |
| +:update_sources: true | |
| +gem: --no-rdoc --no-ri | |
| +install: --no-user-install | |
| +:sources: | |
| +- http://rubygems.org/ | |
| +- http://gems.github.com/ | |
| +:backtrace: true | |
| +:bulk_threshold: 1000 | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| Recipe: delivery_build::workspace | |
| * directory[/var/opt/delivery/workspace] action create | |
| - change mode from '0700' to '0755' | |
| - restore selinux security context | |
| * directory[/var/opt/delivery/workspace/.chef] action create | |
| - create new directory /var/opt/delivery/workspace/.chef | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'dbuild' | |
| - restore selinux security context | |
| * directory[/var/opt/delivery/workspace/bin] action create | |
| - create new directory /var/opt/delivery/workspace/bin | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| - restore selinux security context | |
| * directory[/var/opt/delivery/workspace/lib] action create | |
| - create new directory /var/opt/delivery/workspace/lib | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| - restore selinux security context | |
| * directory[/var/opt/delivery/workspace/etc] action create | |
| - create new directory /var/opt/delivery/workspace/etc | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| - restore selinux security context | |
| * template[/var/opt/delivery/workspace/bin/git_ssh] action create | |
| - create new file /var/opt/delivery/workspace/bin/git_ssh | |
| - update content in file /var/opt/delivery/workspace/bin/git_ssh from none to 0da630 | |
| --- /var/opt/delivery/workspace/bin/git_ssh 2015-09-25 20:28:49.519040734 +0000 | |
| +++ /tmp/chef-rendered-template20150925-7254-nx2a49 2015-09-25 20:28:49.519040734 +0000 | |
| @@ -1 +1,15 @@ | |
| +#!/bin/bash | |
| +# Martin Emde | |
| +# https://github.com/martinemde/git-ssh-wrapper | |
| + | |
| +unset SSH_AUTH_SOCK | |
| +ssh -o CheckHostIP=no \ | |
| + -o IdentitiesOnly=yes \ | |
| + -o LogLevel=INFO \ | |
| + -o StrictHostKeyChecking=no \ | |
| + -o PasswordAuthentication=no \ | |
| + -o UserKnownHostsFile=/var/opt/delivery/workspace/etc/delivery-git-ssh-known-hosts \ | |
| + -o IdentityFile=/var/opt/delivery/workspace/etc/builder_key \ | |
| + -l builder \ | |
| + $* | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| - restore selinux security context | |
| * file[/var/opt/delivery/workspace/etc/delivery-git-ssh-known-hosts] action create | |
| - create new file /var/opt/delivery/workspace/etc/delivery-git-ssh-known-hosts | |
| - change mode from '' to '0644' | |
| - change owner from '' to 'dbuild' | |
| - restore selinux security context | |
| * template[/var/opt/delivery/workspace/bin/delivery-cmd] action create | |
| - create new file /var/opt/delivery/workspace/bin/delivery-cmd | |
| - update content in file /var/opt/delivery/workspace/bin/delivery-cmd from none to 5c6ddf | |
| --- /var/opt/delivery/workspace/bin/delivery-cmd 2015-09-25 20:28:49.775201285 +0000 | |
| +++ /tmp/chef-rendered-template20150925-7254-1qgvcli 2015-09-25 20:28:49.775201285 +0000 | |
| @@ -1 +1,175 @@ | |
| +#!/opt/chefdk/embedded/bin/ruby | |
| + | |
| +require 'chef' | |
| +require 'chef/config' | |
| +require 'chef/rest' | |
| +require 'chef/client' | |
| +require 'base64' | |
| +require 'uri' | |
| +require 'date' | |
| + | |
| +module Delivery | |
| + # Helper methods for our build node job runner workflow. | |
| + module JobHelpers | |
| + | |
| + # All build nodes currently leverage a built-in internal user that | |
| + # all enterprises have; its name is "builder". | |
| + # | |
| + # This is my builder. There are many like it, but this is mine. | |
| + BUILDER_USER = "builder" | |
| + | |
| + # Create appropriate authentication headers for a builder, given a | |
| + # job data hash. If no token is present in `job_data` (because the | |
| + # build nodes were updated before the server began handing tokens | |
| + # out), an empty set of headers is returned. | |
| + # | |
| + # @param job_data [Hash] Describes the job being run; we're | |
| + # looking for a `token` key. | |
| + # | |
| + # @return [Hash] authentication headers, suitable for passing into | |
| + # a `Chef::REST` call. | |
| + def self.builder_auth_headers(job_data) | |
| + if job_token = job_data["token"] | |
| + {"chef-delivery-token" => job_token, | |
| + "chef-delivery-user" => BUILDER_USER} | |
| + else | |
| + {} | |
| + end | |
| + end | |
| + | |
| + end # JobHelpers | |
| +end # Delivery | |
| + | |
| +class Streamy | |
| + attr_accessor :output, :rest, :path, :builder_auth_headers | |
| + | |
| + def initialize(rest, path, headers) | |
| + @rest = rest | |
| + @path = path | |
| + @builder_auth_headers = headers | |
| + @output = "" | |
| + end | |
| + | |
| + def <<(arg) | |
| + begin | |
| + # Force the chef-client output into UTF-8 to prevent issues | |
| + # sending it to our REST API. | |
| + @output << arg.force_encoding('utf-8') | |
| + rest.post(path, | |
| + { | |
| + "run_success" => false, | |
| + "run_log" => @output, | |
| + "run_status" => "running", | |
| + "run_complete" => false | |
| + }, | |
| + builder_auth_headers | |
| + ) | |
| + rescue | |
| + # If we hit this block it means 1 of 2 things went wrong: | |
| + # 1) There was an error encoding the String | |
| + # 2) There was an error talking to the Delivery Server | |
| + # | |
| + # The first case, while unlikely, shouldn't cause the entire phase | |
| + # run to fail. We would rather have a successful phase runs without | |
| + # logs than a failed phase runs due to logging errors. | |
| + # | |
| + # The second case, if it happens with the request, the logs will continue | |
| + # to aggregate and be sent on the next attempt. If we continue to get | |
| + # request errors than eventually the job will time out and we will know | |
| + # there is something wrong with the build node or the delivery server. | |
| + end | |
| + end | |
| + | |
| + def to_str | |
| + @output | |
| + end | |
| +end | |
| + | |
| +workspace_root = "/var/opt/delivery/workspace" | |
| +workspace_bin = "/var/opt/delivery/workspace/bin" | |
| + | |
| +Chef::Config.from_file("/etc/chef/client.rb") | |
| +client = Chef::Client.new | |
| +client.run_ohai | |
| +client.node_name | |
| + | |
| +change_file = File.join(workspace_root, 'change.json') | |
| +raw_json = Base64.decode64(ARGV[0]) | |
| +File.open(change_file, 'w') do |file| | |
| + file.puts(raw_json) | |
| +end | |
| + | |
| +job_data = Chef::JSONCompat.from_json(raw_json) | |
| + | |
| +builder_auth_headers = Delivery::JobHelpers.builder_auth_headers(job_data) | |
| + | |
| +rest = Chef::REST.new(job_data["delivery_api_url"]) | |
| +path = File.join(job_data['enterprise'], | |
| + 'orgs', job_data['organization'], | |
| + 'projects', job_data['project'], | |
| + 'pipelines', job_data['pipeline'], | |
| + 'phase_runs', job_data['phase_run_id'].to_s) | |
| + | |
| +streamy = Streamy.new(rest, path, builder_auth_headers) | |
| +server = URI(job_data['delivery_api_url']) | |
| + | |
| +command_line = if job_data['stage'] == "verify" | |
| + "delivery job #{job_data['stage']} #{job_data['phase']} --server #{server.host} --user builder --ent #{job_data['enterprise']} --org #{job_data['organization']} --project #{job_data['project']} --for #{job_data['pipeline']} --change-id #{job_data['change_id']} --branch #{job_data['patchset_branch']} --git-url #{job_data['git_url']}" | |
| +else | |
| + "delivery job #{job_data['stage']} #{job_data['phase']} --server #{server.host} --user builder --ent #{job_data['enterprise']} --org #{job_data['organization']} --project #{job_data['project']} --for #{job_data['pipeline']} --change-id #{job_data['change_id']} --shasum #{job_data['sha']} --git-url #{job_data['git_url']}" | |
| +end | |
| + | |
| +https_proxy = Chef::Config[:https_proxy] || ENV['HTTPS_PROXY'] || ENV['https_proxy'] | |
| +http_proxy = Chef::Config[:http_proxy] || ENV['HTTP_PROXY'] || ENV['http_proxy'] | |
| +no_proxy = Chef::Config[:no_proxy] || ENV['NO_PROXY'] || ENV['no_proxy'] | |
| +cli_env = { | |
| + 'PATH' => "/opt/chefdk/bin:/opt/chefdk/embedded/bin:#{ENV['PATH']}", | |
| + 'LC_ALL' => 'en_US.UTF-8', | |
| + 'GIT_SSH' => File.join(workspace_bin, 'git_ssh'), | |
| + 'HOME' => workspace_root, | |
| + 'TERM' => 'screen-256color' | |
| +} | |
| +cli_env['https_proxy'] = https_proxy if https_proxy && !https_proxy.strip.empty? | |
| +cli_env['http_proxy'] = http_proxy if http_proxy && !http_proxy.strip.empty? | |
| +cli_env['no_proxy'] = no_proxy if no_proxy && !no_proxy.strip.empty? | |
| + | |
| +cmd = Mixlib::ShellOut.new("#{command_line} --no-spinner", :environment => cli_env) | |
| + | |
| +start_datetime = DateTime.now | |
| + | |
| +streamy << "Starting job on builder #{client.node_name} at #{start_datetime.iso8601}.\nCommand: #{command_line}\n" | |
| +## This we will want to be configurable. but for now make it big and | |
| +## and rely on pushy to timeout. | |
| +cmd.timeout = 6600 | |
| +cmd.log_level = :error | |
| +cmd.live_stream = streamy | |
| +cmd.cwd = workspace_root | |
| +cmd.run_command | |
| + | |
| +end_datetime = DateTime.now | |
| +# difference between 2 DateTimes is expressed in days | |
| +elapsed_time = ((end_datetime - start_datetime) * 24 * 60 * 60).to_i | |
| +streamy << "\nJob ended at #{end_datetime.iso8601} (ran in #{elapsed_time} seconds)" | |
| + | |
| +if cmd.error? | |
| + rest.post(path, | |
| + { | |
| + "run_success" => false, | |
| + "run_log" => streamy.output, | |
| + "run_status" => "failed", | |
| + "run_complete" => true | |
| + }, | |
| + builder_auth_headers | |
| + ) | |
| +else | |
| + rest.post(path, | |
| + { | |
| + "run_success" => true, | |
| + "run_log" => streamy.output, | |
| + "run_status" => "finished", | |
| + "run_complete" => true | |
| + }, | |
| + builder_auth_headers | |
| + ) | |
| +end | |
| - change mode from '' to '0755' | |
| - change owner from '' to 'root' | |
| - restore selinux security context | |
| * file[/var/opt/delivery/workspace/etc/builder_key] action create | |
| - create new file /var/opt/delivery/workspace/etc/builder_key | |
| - update content in file /var/opt/delivery/workspace/etc/builder_key from none to 474445 | |
| --- /var/opt/delivery/workspace/etc/builder_key 2015-09-25 20:28:49.910285946 +0000 | |
| +++ /var/opt/delivery/workspace/etc/.builder_key20150925-7254-anxuf7 2015-09-25 20:28:49.909285319 +0000 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +MIIEogIBAAKCAQEAxApDogZvMWJK4UIZlkiqHMsfGy3X6g9vuP+geHyXI7mz0vue | |
| +i3pX2qAfUqgbJdniWu1Q154JwZskRBN5qsCVLJBZmKAKQLRNsTcbXSfaNwdb2EVI | |
| +VY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3LqiFsRXKesE0BEOoY6PBr7LJLzEp | |
| +RNTGRUblRNbjMWAnQceRFfqHVMPPqMZRMtIswOOtaAxI23Mvyb1uUCrgG2pPts1/ | |
| +tIROuMhC3w90COzxL7WLIQKBgD/QP4tIfWHPoxpxrjRkKRzMFnQbJ8slXwxu9aXo | |
| +VijoSLN/Xf2jmYKrF7sJzsD/nVNUu0kDxhxLkSn50YK3WLyfT5v2xkBmeUT/WWf0 | |
| +h++sCPTPj9qlZYJsnxNLEq0KXaL5nSGZAYGXcXZhcrGw4WcebtiBwPoDYsa2Bb20 | |
| +Fl7LAoGAdMLZ+Pp9+NR48kcIIjU87hd2thhEOKXgn788hVbqtj2ryOloBVR+PPka | |
| +Va0v+ZueyDXpErAnwaoQ6yT43trC8ygJn3FiNAsVZ2sAP3u7TYY2J2QOgsEUu0bz | |
| +rkTm7FA1Rk1UO51dmGuicFa9wfiwy15rr/DJX6obDmWJ4NqnlKo= | |
| +-----END RSA PRIVATE KEY----- | |
| - change mode from '' to '0600' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'root' | |
| - restore selinux security context | |
| * file[/var/opt/delivery/workspace/.chef/builder_key] action create | |
| - create new file /var/opt/delivery/workspace/.chef/builder_key | |
| - update content in file /var/opt/delivery/workspace/.chef/builder_key from none to 474445 | |
| --- /var/opt/delivery/workspace/.chef/builder_key 2015-09-25 20:28:50.041368097 +0000 | |
| +++ /var/opt/delivery/workspace/.chef/.builder_key20150925-7254-oijagr 2015-09-25 20:28:50.041368097 +0000 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +MIIEogIBAAKCAQEAxApDogZvMWJK4UIZlkiqHMsfGy3X6g9vuP+geHyXI7mz0vue | |
| +i3pX2qAfUqgbJdniWu1Q154JwZskRBN5qsCVLJBZmKAKQLRNsTcbXSfaNwdb2EVI | |
| +VYIxCG7qxb5B3OqVFK8w4nWI7hQhr+pLAFHV+CJ0GbqGqzvqrxVZ7ZAq4Z6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ZRMtIswOOtaAxI23Mvyb1uUCrgG2pPts1/ | |
| +tIROuMhC3w90COzxL7WLIQKBgD/QP4tIfWHPoxpxrjRkKRzMFnQbJ8slXwxu9aXo | |
| +VijoSLN/Xf2jmYKrF7sJzsD/nVNUu0kDxhxLkSn50YK3WLyfT5v2xkBmeUT/WWf0 | |
| +h++sCPTPj9qlZYJsnxNLEq0KXaL5nSGZAYGXcXZhcrGw4WcebtiBwPoDYsa2Bb20 | |
| +Fl7LAoGAdMLZ+Pp9+NR48kcIIjU87hd2thhEOKXgn788hVbqtj2ryOloBVR+PPka | |
| +Va0v+ZueyDXpErAnwaoQ6yT43trC8ygJn3FiNAsVZ2sAP3u7TYY2J2QOgsEUu0bz | |
| +rkTm7FA1Rk1UO51dmGuicFa9wfiwy15rr/DJX6obDmWJ4NqnlKo= | |
| +-----END RSA PRIVATE KEY----- | |
| - change mode from '' to '0600' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'root' | |
| - restore selinux security context | |
| * file[/var/opt/delivery/workspace/etc/delivery.pem] action create | |
| - create new file /var/opt/delivery/workspace/etc/delivery.pem | |
| - update content in file /var/opt/delivery/workspace/etc/delivery.pem from none to a90bab | |
| --- /var/opt/delivery/workspace/etc/delivery.pem 2015-09-25 20:28:50.171449610 +0000 | |
| +++ /var/opt/delivery/workspace/etc/.delivery.pem20150925-7254-1nrnoci 2015-09-25 20:28:50.171449610 +0000 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +MIIEogIBAAKCAQEA7jcVdMZvl1bwoiobzrbBrOzQe0c9H75xuBu1/nvICwYxYQvG | |
| +3bDMxaZUbAKaEkQP9YnvPefANgKYbYox5nKNVLJQtJCjA3bzA1lad7EuxxlXGy+n | |
| +e/zMRzUnx1C6u49ztXQa2JGvX+GUReroCY/EGWBE3h/ckZ00YPwqn92vNR44NRnU | |
| +kT1g9/KvjyPCLWyLH47cLUBcgbI7VpNC58/blRsI65BOKEZSbUJE8E9j0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A0Ksg2jkSsu4QKBgAvBChAF0/wiC3AjqfQf7ipmeaCKv9k88IIyxaNz | |
| +4OovOJfaT8oMFjLpGDNs15Gmu4JpLdiIyT6bwF0iEbAoUNvWqutuZq/aGixlCn31 | |
| +VSN4qcGb3rbQdS5Kgnl45PAaFJX+5cOZBxv+FVRKlSlbiYsTIwwkPSu1n19heLh+ | |
| +ohlRAoGASHrzFnMtXYSwiqyM8+k1+TV/KAyN4Xk+Kk9mObRwNBuSwEBHYHFVslHJ | |
| ++yFh9Hdp/HDn6rSKjhtEwPPqGu/XZyBozprrRzzy7m4z3nthMp8nk+Vu3CXl8Mfu | |
| +vHjYq5s7/UjxWuzvfJm4TOxtb/khGlggCYuIVPS/VLXOuhpc7Ag= | |
| +-----END RSA PRIVATE KEY----- | |
| - change mode from '' to '0600' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'root' | |
| - restore selinux security context | |
| * file[/var/opt/delivery/workspace/.chef/delivery.pem] action create | |
| - create new file /var/opt/delivery/workspace/.chef/delivery.pem | |
| - update content in file /var/opt/delivery/workspace/.chef/delivery.pem from none to a90bab | |
| --- /var/opt/delivery/workspace/.chef/delivery.pem 2015-09-25 20:28:50.287522348 +0000 | |
| +++ /var/opt/delivery/workspace/.chef/.delivery.pem20150925-7254-rgpp13 2015-09-25 20:28:50.287522348 +0000 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +MIIEogIBAAKCAQEA7jcVdMZvl1bwoiobzrbBrOzQe0c9H75xuBu1/nvICwYxYQvG | |
| +3bDMxaZUbAKaEkQP9YnvPefANgKYbYox5nKNVLJQtJCjA3bzA1lad7EuxxlXGy+n | |
| +e/zMRzUnx1C6u49ztXQa2JGvX+GUReroCY/EGWBE3h/ckZ00YPwqn92vNR44NRnU | |
| +kT1g9/KvjyPCLWyLH47cLUBcgbI7VpNC58/blRsI65BOKEZSbUJE8E9j0LKb665g | |
| +VgiRA7idPaTj5G8koDT18ltF6/aJHq/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meaCKv9k88IIyxaNz | |
| +4OovOJfaT8oMFjLpGDNs15Gmu4JpLdiIyT6bwF0iEbAoUNvWqutuZq/aGixlCn31 | |
| +VSN4qcGb3rbQdS5Kgnl45PAaFJX+5cOZBxv+FVRKlSlbiYsTIwwkPSu1n19heLh+ | |
| +ohlRAoGASHrzFnMtXYSwiqyM8+k1+TV/KAyN4Xk+Kk9mObRwNBuSwEBHYHFVslHJ | |
| ++yFh9Hdp/HDn6rSKjhtEwPPqGu/XZyBozprrRzzy7m4z3nthMp8nk+Vu3CXl8Mfu | |
| +vHjYq5s7/UjxWuzvfJm4TOxtb/khGlggCYuIVPS/VLXOuhpc7Ag= | |
| +-----END RSA PRIVATE KEY----- | |
| - change mode from '' to '0600' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'root' | |
| - restore selinux security context | |
| * template[/var/opt/delivery/workspace/etc/delivery.rb] action create | |
| - create new file /var/opt/delivery/workspace/etc/delivery.rb | |
| - update content in file /var/opt/delivery/workspace/etc/delivery.rb from none to 04e435 | |
| --- /var/opt/delivery/workspace/etc/delivery.rb 2015-09-25 20:28:50.422606997 +0000 | |
| +++ /tmp/chef-rendered-template20150925-7254-123odwx 2015-09-25 20:28:50.422606997 +0000 | |
| @@ -1 +1,8 @@ | |
| +require 'chef/config' | |
| +current_dir = File.dirname(__FILE__) | |
| +Chef::Config.from_file("/etc/chef/client.rb") | |
| +log_location STDOUT | |
| +node_name "delivery" | |
| +client_key "#{current_dir}/delivery.pem" | |
| +trusted_certs_dir "/etc/chef/trusted_certs" | |
| - change mode from '' to '0644' | |
| - change owner from '' to 'dbuild' | |
| - change group from '' to 'root' | |
| - restore selinux security context | |
| * template[/var/opt/delivery/workspace/.chef/knife.rb] action create | |
| - create new file /var/opt/delivery/workspace/.chef/knife.rb | |
| - update content in file /var/opt/delivery/workspace/.chef/knife.rb from none to 04e435 | |
| --- /var/opt/delivery/workspace/.chef/knife.rb 2015-09-25 20:28:50.552688522 +0000 | |
| +++ /tmp/chef-rendered-template20150925-7254-19u2hok 2015-09-25 20:28:50.552688522 +0000 | |
| @@ -1 +1,8 @@ | |
| +require 'chef/config' | |
| +current_dir = File.dirname(__FILE__) | |
| +Chef::Config.from_file("/etc/chef/client.rb") | |
| +log_location STDOUT | |
| +node_name "delivery" | |
| +client_key "#{current_dir}/delivery.pem" | |
| +trusted_certs_dir "/etc/chef/trusted_certs" | |
| - change mode from '' to '0644' | |
| - change owner from '' to 'dbuild' | |
| - restore selinux security context | |
| * execute[fetch_ssl_certificate] action run | |
| - execute knife ssl fetch -c /var/opt/delivery/workspace/etc/delivery.rb | |
| Recipe: delivery_build::cli | |
| * yum_package[delivery-cli] action upgrade | |
| - upgrade package delivery-cli from uninstalled to 20150811030818+20150811030818-1.el6 | |
| Recipe: delivery_build::trusted_certs | |
| * trusted_cert[Delivery Server Cert] action append | |
| - Append Delivery Server Cert to /opt/chefdk/embedded/ssl/certs/cacert.pem | |
| Recipe: push-jobs::service_runit | |
| * runit_service[opscode-push-jobs-client] action restart (up to date) | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 56/67 resources updated in 425.399699961 seconds | |
| - [build-node-vagrant-2] run 'chef-client -l auto' on build-node-vagrant-2 | |
| [2015-09-25T13:28:59-07:00] WARN: Skipping final node save because override_runlist was given | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 20/25 resources updated in 3671.936087 seconds | |
| ➜ delivery-cluster git:(afiune/158/lazy_delivery_cert) ✗ rake setup:cluster | |
| Install rubygem dependencies locally | |
| Using rake 10.4.2 | |
| Using addressable 2.3.8 | |
| Using artifactory 2.3.0 | |
| Using jmespath 1.1.3 | |
| Using aws-sdk-core 2.1.23 | |
| Using aws-sdk-resources 2.1.23 | |
| Using aws-sdk 2.1.23 | |
| Using json 1.8.3 | |
| Using mini_portile 0.6.2 | |
| Using nokogiri 1.6.6.2 | |
| Using aws-sdk-v1 1.66.0 | |
| Using multipart-post 2.0.0 | |
| Using faraday 0.9.1 | |
| Using httpclient 2.6.0.1 | |
| Using berkshelf-api-client 1.3.0 | |
| Using buff-extensions 1.0.0 | |
| Using hashie 2.1.2 | |
| Using varia_model 0.4.0 | |
| Using buff-config 1.0.1 | |
| Using buff-ruby_engine 0.1.0 | |
| Using buff-shell_out 0.2.0 | |
| Using hitimes 1.2.3 | |
| Using timers 4.0.4 | |
| Using celluloid 0.16.0 | |
| Using nio4r 1.1.1 | |
| Using celluloid-io 0.16.2 | |
| Using cleanroom 1.0.0 | |
| Using minitar 0.5.4 | |
| Using sawyer 0.6.0 | |
| Using octokit 3.8.0 | |
| Using retryable 2.0.2 | |
| Using buff-ignore 1.1.1 | |
| Using erubis 2.7.0 | |
| Using mixlib-log 1.6.0 | |
| Using mixlib-authentication 1.3.0 | |
| Using net-http-persistent 2.9.4 | |
| Using semverse 1.2.1 | |
| Using ridley 4.2.0 | |
| Using dep-selector-libgecode 1.0.2 | |
| Using ffi 1.9.10 | |
| Using dep_selector 1.0.3 | |
| Using solve 1.2.1 | |
| Using thor 0.19.1 | |
| Using berkshelf 3.2.4 | |
| Using builder 3.2.2 | |
| Using mixlib-config 2.2.1 | |
| Using mixlib-shellout 2.1.0 | |
| Using chef-config 12.4.3 | |
| Using libyajl2 1.2.0 | |
| Using ffi-yajl 2.2.2 | |
| Using rack 1.6.4 | |
| Using uuidtools 2.1.5 | |
| Using chef-zero 4.2.3 | |
| Using diff-lcs 1.2.5 | |
| Using highline 1.7.7 | |
| Using mixlib-cli 1.5.0 | |
| Using net-ssh 2.9.2 | |
| Using net-ssh-gateway 1.2.0 | |
| Using net-ssh-multi 1.2.1 | |
| Using ipaddress 0.8.0 | |
| Using mime-types 2.6.2 | |
| Using systemu 2.6.5 | |
| Using wmi-lite 1.0.0 | |
| Using ohai 8.5.1 | |
| Using plist 3.1.0 | |
| Using coderay 1.1.0 | |
| Using method_source 0.8.2 | |
| Using slop 3.6.0 | |
| Using pry 0.10.1 | |
| Using rspec-support 3.3.0 | |
| Using rspec-core 3.3.2 | |
| Using rspec-expectations 3.3.1 | |
| Using rspec-mocks 3.3.2 | |
| Using rspec_junit_formatter 0.2.3 | |
| Using multi_json 1.11.2 | |
| Using rspec 3.3.0 | |
| Using rspec-its 1.2.0 | |
| Using net-scp 1.2.1 | |
| Using net-telnet 0.1.1 | |
| Using sfl 2.2 | |
| Using specinfra 2.43.8 | |
| Using serverspec 2.24.1 | |
| Using syslog-logger 1.6.8 | |
| Using chef 12.4.3 | |
| Using cheffish 1.5.0 | |
| Using inifile 2.0.2 | |
| Using mixlib-install 0.7.0 | |
| Using gssapi 1.2.0 | |
| Using gyoku 1.3.1 | |
| Using little-plugger 1.1.4 | |
| Using logging 1.8.2 | |
| Using nori 2.6.0 | |
| Using rubyntlm 0.4.0 | |
| Using winrm 1.3.4 | |
| Using chef-provisioning 1.4.0 from https://github.com/chef/chef-provisioning.git (at master) | |
| Using ubuntu_ami 0.4.1 | |
| Using chef-provisioning-aws 1.4.1 from https://github.com/chef/chef-provisioning-aws.git (at master) | |
| Using chef-provisioning-ssh 0.0.9 from https://github.com/chef/chef-provisioning-ssh.git (at master) | |
| Using chef-provisioning-vagrant 0.10.0 from https://github.com/chef/chef-provisioning-vagrant.git (at master) | |
| Using chef-vault 2.6.1 | |
| Using safe_yaml 1.0.4 | |
| Using test-kitchen 1.4.2 | |
| Using kitchen-vagrant 0.16.0 | |
| Using bundler 1.10.0 | |
| Bundle complete! 9 Gemfile dependencies, 104 gems now installed. | |
| Use `bundle show [gemname]` to see where a bundled gem is installed. | |
| Download and vendor the necessary cookbooks locally | |
| Resolving cookbook dependencies... | |
| Fetching 'chef-server-12' from source at vendor/chef-server-12 | |
| Fetching 'delivery-cluster' from source at . | |
| Fetching cookbook index from https://supermarket.chef.io... | |
| Using 7-zip (1.0.2) | |
| Using apt-chef (0.1.0) | |
| Using apt (2.7.0) | |
| Using build-essential (2.2.3) | |
| Using chef-server-12 (0.1.7) from source at vendor/chef-server-12 | |
| Using chef-ingredient (0.10.1) from https://github.com/chef-cookbooks/chef-ingredient.git (at master) | |
| Using chef-splunk (1.3.1) from https://github.com/chef-cookbooks/chef-splunk.git (at master) | |
| Using chef-sugar (3.1.1) | |
| Using chef_handler (1.1.6) | |
| Using chef-vault (1.3.0) | |
| Using delivery-cluster (0.3.16) from source at . | |
| Using delivery_build (0.2.22) from https://github.com/chef-cookbooks/delivery_build.git (at master) | |
| Using dmg (2.2.2) | |
| Using git (4.2.2) | |
| Using homebrew (1.13.0) | |
| Using hostsfile (2.4.5) | |
| Using omnibus (2.6.13) | |
| Using push-jobs (2.4.2) | |
| Using packagecloud (0.1.0) from https://github.com/afiune/packagecloud-cookbook.git (at master) | |
| Using runit (1.7.2) | |
| Using windows (1.36.6) | |
| Using wix (1.1.0) | |
| Using windows-sdk (1.0.2) | |
| Using yum (3.6.0) | |
| Using yum-chef (0.1.0) | |
| Using yum-epel (0.6.0) | |
| Vendoring 7-zip (1.0.2) to cookbooks/7-zip | |
| Vendoring apt (2.7.0) to cookbooks/apt | |
| Vendoring apt-chef (0.1.0) to cookbooks/apt-chef | |
| Vendoring build-essential (2.2.3) to cookbooks/build-essential | |
| Vendoring chef-ingredient (0.10.1) to cookbooks/chef-ingredient | |
| Vendoring chef-server-12 (0.1.7) to cookbooks/chef-server-12 | |
| Vendoring chef-splunk (1.3.1) to cookbooks/chef-splunk | |
| Vendoring chef-sugar (3.1.1) to cookbooks/chef-sugar | |
| Vendoring chef-vault (1.3.0) to cookbooks/chef-vault | |
| Vendoring chef_handler (1.1.6) to cookbooks/chef_handler | |
| Vendoring delivery-cluster (0.3.16) to cookbooks/delivery-cluster | |
| Vendoring delivery_build (0.2.22) to cookbooks/delivery_build | |
| Vendoring dmg (2.2.2) to cookbooks/dmg | |
| Vendoring git (4.2.2) to cookbooks/git | |
| Vendoring homebrew (1.13.0) to cookbooks/homebrew | |
| Vendoring hostsfile (2.4.5) to cookbooks/hostsfile | |
| Vendoring omnibus (2.6.13) to cookbooks/omnibus | |
| Vendoring packagecloud (0.1.0) to cookbooks/packagecloud | |
| Vendoring push-jobs (2.4.2) to cookbooks/push-jobs | |
| Vendoring runit (1.7.2) to cookbooks/runit | |
| Vendoring windows (1.36.6) to cookbooks/windows | |
| Vendoring windows-sdk (1.0.2) to cookbooks/windows-sdk | |
| Vendoring wix (1.1.0) to cookbooks/wix | |
| Vendoring yum (3.6.0) to cookbooks/yum | |
| Vendoring yum-chef (0.1.0) to cookbooks/yum-chef | |
| Vendoring yum-epel (0.6.0) to cookbooks/yum-epel | |
| Current chef environment => environments/vagrant.json | |
| Setup the Chef Delivery cluster | |
| Starting Chef Client, version 12.4.3 | |
| [2015-09-25T13:31:18-07:00] WARN: Run List override has been provided. | |
| [2015-09-25T13:31:18-07:00] WARN: Original Run List: [] | |
| [2015-09-25T13:31:18-07:00] WARN: Overridden Run List: [recipe[delivery-cluster::setup]] | |
| resolving cookbooks for run list: ["delivery-cluster::setup"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster | |
| - chef-server-12 | |
| - chef-ingredient | |
| - git | |
| - apt | |
| - yum | |
| - delivery_build | |
| - chef-splunk | |
| - packagecloud | |
| - hostsfile | |
| - apt-chef | |
| - yum-chef | |
| - build-essential | |
| - dmg | |
| - windows | |
| - yum-epel | |
| - chef-sugar | |
| - omnibus | |
| - chef-vault | |
| - push-jobs | |
| - chef_handler | |
| - 7-zip | |
| - homebrew | |
| - wix | |
| - windows-sdk | |
| - runit | |
| Compiling Cookbooks... | |
| [2015-09-25T13:31:24-07:00] WARN: You are overriding windows_package on {:os=>"windows"} with Chef::Resource::WindowsCookbookPackage: used to be Chef::Resource::WindowsPackage. Use override: true if this is what you intended. | |
| [2015-09-25T13:31:24-07:00] WARN: You declared a new resource Chef::Provider::GitClient::Source for resource git_client, but it comes alphabetically after Chef::Provider::GitClient::Package and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for git_client. | |
| Converging 26 resources | |
| Recipe: delivery-cluster::_settings | |
| * link[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data] action create (up to date) | |
| Recipe: delivery-cluster::setup_chef_server | |
| * machine[chef-server-vagrant] action converge[2015-09-25T13:31:24-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T13:31:24-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.10.crt to /etc/chef/trusted_certs/33.33.33.10.crt on chef-server-vagrant | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/33.33.33.11.crt to /etc/chef/trusted_certs/33.33.33.11.crt on chef-server-vagrant | |
| [chef-server-vagrant] Starting Chef Client, version 12.4.3 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "chef-server-12"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster | |
| - chef-server-12 | |
| - chef-ingredient | |
| - git | |
| - apt | |
| - yum | |
| - delivery_build | |
| - chef-splunk | |
| - packagecloud | |
| - hostsfile | |
| - apt-chef | |
| - yum-chef | |
| - build-essential | |
| - dmg | |
| - windows | |
| - yum-epel | |
| - chef-sugar | |
| - omnibus | |
| - push-jobs | |
| - chef-vault | |
| - chef_handler | |
| - 7-zip | |
| - homebrew | |
| - wix | |
| - windows-sdk | |
| - runit | |
| Compiling Cookbooks... | |
| [2015-09-25T20:31:50+00:00] WARN: You are overriding windows_package on {:os=>"windows"} with Chef::Resource::WindowsCookbookPackage: used to be Chef::Resource::WindowsPackage. Use override: true if this is what you intended. | |
| [2015-09-25T20:31:50+00:00] WARN: You declared a new resource Chef::Provider::GitClient::Source for resource git_client, but it comes alphabetically after Chef::Provider::GitClient::Package and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for git_client. | |
| Converging 25 resources | |
| Recipe: apt::default | |
| * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing) | |
| * directory[/etc/apt/apt.conf.d] action create (up to date) | |
| * cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create (up to date) | |
| * execute[apt-get-update] action run (skipped due to not_if) | |
| * execute[apt-get update] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoremove] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoclean] action nothing (skipped due to action :nothing) | |
| * execute[apt-get-update-periodic] action run (skipped due to only_if) | |
| * directory[/var/cache/local] action create (up to date) | |
| * directory[/var/cache/local/preseeding] action create (up to date) | |
| Recipe: chef-server-12::default | |
| * hostsfile_entry[10.0.2.15] action create (skipped due to not_if) | |
| * directory[/etc/opscode] action create (up to date) | |
| * chef_ingredient[chef-server] action install | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| Recipe: apt-chef::default | |
| * apt_repository[chef-stable] action add | |
| * remote_file[/var/chef/cache/gpg.key] action create (up to date) | |
| * execute[install-key gpg.key] action run (skipped due to not_if) | |
| * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing) | |
| * execute[apt-cache gencaches] action nothing (skipped due to action :nothing) | |
| * execute[apt-get update] action nothing (skipped due to action :nothing) | |
| * file[/etc/apt/sources.list.d/chef-stable.list] action create | |
| - update content in file /etc/apt/sources.list.d/chef-stable.list from cb32f2 to 232927 | |
| --- /etc/apt/sources.list.d/chef-stable.list 2015-09-25 19:39:20.774177100 +0000 | |
| +++ /etc/apt/sources.list.d/.chef-stable.list20150925-11996-1ehdlu2 2015-09-25 20:31:59.473066723 +0000 | |
| @@ -1,3 +1,2 @@ | |
| -deb [trusted=yes] https://packagecloud.io/chef/stable/ubuntu/ lucid main | |
| -deb-src [trusted=yes] https://packagecloud.io/chef/stable/ubuntu/ lucid main | |
| +deb [trusted=yes] https://packagecloud.io/chef/stable/ubuntu/ trusty main | |
| * file[/var/lib/apt/periodic/update-success-stamp] action delete | |
| - delete file /var/lib/apt/periodic/update-success-stamp | |
| * execute[apt-get update] action run | |
| - execute apt-get update -o Dir::Etc::sourcelist='sources.list.d/chef-stable.list' -o Dir::Etc::sourceparts='-' -o APT::Get::List-Cleanup='0' | |
| Recipe: apt::default | |
| * file[/var/lib/apt/periodic/update-success-stamp] action touch | |
| - update utime on file /var/lib/apt/periodic/update-success-stamp | |
| * execute[apt-cache gencaches] action run | |
| - execute apt-cache gencaches | |
| * apt_package[chef-server] action install (up to date) | |
| Recipe: chef-server-12::default | |
| * template[/etc/opscode/chef-server.rb] action create (up to date) | |
| * execute[reconfigure chef] action nothing (skipped due to action :nothing) | |
| * chef_ingredient[manage] action install | |
| * chef_gem[manage-mixlib-versioning] action install (up to date) | |
| * chef_gem[manage-mixlib-versioning] action install (up to date) | |
| * apt_package[manage] action install (up to date) | |
| (up to date) | |
| * ingredient_config[manage] action render | |
| * directory[/etc/opscode-manage] action create (up to date) | |
| * file[/etc/opscode-manage/manage.rb] action create (up to date) | |
| (up to date) | |
| * chef_ingredient[reporting] action install | |
| * chef_gem[reporting-mixlib-versioning] action install (up to date) | |
| * chef_gem[reporting-mixlib-versioning] action install (up to date) | |
| * apt_package[reporting] action install (up to date) | |
| (up to date) | |
| * ingredient_config[reporting] action render | |
| * directory[/etc/opscode-reporting] action create (up to date) | |
| * file[/etc/opscode-reporting/opscode-reporting.rb] action create (up to date) | |
| (up to date) | |
| * chef_ingredient[push-server] action install | |
| * chef_gem[push-server-mixlib-versioning] action install (up to date) | |
| * chef_gem[push-server-mixlib-versioning] action install (up to date) | |
| * apt_package[push-server] action install (up to date) | |
| (up to date) | |
| * ingredient_config[push-server] action render | |
| * directory[/etc/opscode-push-jobs-server] action create (up to date) | |
| * file[/etc/opscode-push-jobs-server/opscode-push-jobs-server.rb] action create (up to date) | |
| (up to date) | |
| Recipe: chef-server-12::delivery_setup | |
| * execute[Create delivery User] action run (skipped due to not_if) | |
| * execute[Create vagrant Organization] action run (skipped due to not_if) | |
| * execute[Associate Delivery User to vagrant Organization] action run | |
| - execute chef-server-ctl org-user-add vagrant delivery -a | |
| * ruby_block[upload delivery key] action nothing (skipped due to action :nothing) | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 8/39 resources updated in 61.808269437 seconds | |
| - run 'chef-client -l auto' on chef-server-vagrant | |
| * machine[chef-server-vagrant] action converge[2015-09-25T13:32:38-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T13:32:38-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - update node chef-server-vagrant at chefzero://localhost:8890 | |
| - remove normal.apt | |
| [chef-server-vagrant] Starting Chef Client, version 12.4.3 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "chef-server-12"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster | |
| - chef-server-12 | |
| - chef-ingredient | |
| - git | |
| - apt | |
| - yum | |
| - delivery_build | |
| - chef-splunk | |
| - packagecloud | |
| - hostsfile | |
| - apt-chef | |
| - yum-chef | |
| - build-essential | |
| - dmg | |
| - windows | |
| - yum-epel | |
| - chef-sugar | |
| - omnibus | |
| - push-jobs | |
| - chef-vault | |
| - chef_handler | |
| - 7-zip | |
| - homebrew | |
| - wix | |
| - windows-sdk | |
| - runit | |
| Compiling Cookbooks... | |
| [2015-09-25T20:33:04+00:00] WARN: You are overriding windows_package on {:os=>"windows"} with Chef::Resource::WindowsCookbookPackage: used to be Chef::Resource::WindowsPackage. Use override: true if this is what you intended. | |
| [2015-09-25T20:33:04+00:00] WARN: You declared a new resource Chef::Provider::GitClient::Source for resource git_client, but it comes alphabetically after Chef::Provider::GitClient::Package and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for git_client. | |
| Converging 25 resources | |
| Recipe: apt::default | |
| * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing) | |
| * directory[/etc/apt/apt.conf.d] action create (up to date) | |
| * cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create (up to date) | |
| * execute[apt-get-update] action run (skipped due to not_if) | |
| * execute[apt-get update] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoremove] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoclean] action nothing (skipped due to action :nothing) | |
| * execute[apt-get-update-periodic] action run (skipped due to only_if) | |
| * directory[/var/cache/local] action create (up to date) | |
| * directory[/var/cache/local/preseeding] action create (up to date) | |
| Recipe: chef-server-12::default | |
| * hostsfile_entry[10.0.2.15] action create (skipped due to not_if) | |
| * directory[/etc/opscode] action create (up to date) | |
| * chef_ingredient[chef-server] action install | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| * chef_gem[chef-server-mixlib-versioning] action install (up to date) | |
| Recipe: apt-chef::default | |
| * apt_repository[chef-stable] action add | |
| * remote_file[/var/chef/cache/gpg.key] action create (up to date) | |
| * execute[install-key gpg.key] action run (skipped due to not_if) | |
| * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing) | |
| * execute[apt-cache gencaches] action nothing (skipped due to action :nothing) | |
| * execute[apt-get update] action nothing (skipped due to action :nothing) | |
| * file[/etc/apt/sources.list.d/chef-stable.list] action create (up to date) | |
| (up to date) | |
| * apt_package[chef-server] action install (up to date) | |
| (up to date) | |
| Recipe: chef-server-12::default | |
| * template[/etc/opscode/chef-server.rb] action create (up to date) | |
| * execute[reconfigure chef] action nothing (skipped due to action :nothing) | |
| * chef_ingredient[manage] action install | |
| * chef_gem[manage-mixlib-versioning] action install (up to date) | |
| * chef_gem[manage-mixlib-versioning] action install (up to date) | |
| * apt_package[manage] action install (up to date) | |
| (up to date) | |
| * ingredient_config[manage] action render | |
| * directory[/etc/opscode-manage] action create (up to date) | |
| * file[/etc/opscode-manage/manage.rb] action create (up to date) | |
| (up to date) | |
| * chef_ingredient[reporting] action install | |
| * chef_gem[reporting-mixlib-versioning] action install (up to date) | |
| * chef_gem[reporting-mixlib-versioning] action install (up to date) | |
| * apt_package[reporting] action install (up to date) | |
| (up to date) | |
| * ingredient_config[reporting] action render | |
| * directory[/etc/opscode-reporting] action create (up to date) | |
| * file[/etc/opscode-reporting/opscode-reporting.rb] action create (up to date) | |
| (up to date) | |
| * chef_ingredient[push-server] action install | |
| * chef_gem[push-server-mixlib-versioning] action install (up to date) | |
| * chef_gem[push-server-mixlib-versioning] action install (up to date) | |
| * apt_package[push-server] action install (up to date) | |
| (up to date) | |
| * ingredient_config[push-server] action render | |
| * directory[/etc/opscode-push-jobs-server] action create (up to date) | |
| * file[/etc/opscode-push-jobs-server/opscode-push-jobs-server.rb] action create (up to date) | |
| (up to date) | |
| Recipe: chef-server-12::delivery_setup | |
| * execute[Create delivery User] action run (skipped due to not_if) | |
| * execute[Create vagrant Organization] action run (skipped due to not_if) | |
| * execute[Associate Delivery User to vagrant Organization] action run | |
| - execute chef-server-ctl org-user-add vagrant delivery -a | |
| * ruby_block[upload delivery key] action nothing (skipped due to action :nothing) | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 1/35 resources updated in 40.976285109 seconds | |
| - run 'chef-client -l auto' on chef-server-vagrant | |
| * directory[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs] action create (up to date) | |
| * machine_file[chef-server-cert] action download (up to date) | |
| * directory[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant] action create (up to date) | |
| * machine_file[/tmp/validator.pem] action download (up to date) | |
| * machine_file[/tmp/delivery.pem] action download (up to date) | |
| * file[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/delivery.pem] action create (up to date) | |
| * template[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/knife.rb] action create (up to date) | |
| * execute[upload delivery cookbooks] action run | |
| - execute knife cookbook upload --all --cookbook-path /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/local-mode-cache/cache/cookbooks --force | |
| Recipe: delivery-cluster::setup_delivery_server | |
| * file[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-vagrant/encrypted_data_bag_secret] action create (up to date) | |
| * execute[builder ssh key] action run (skipped due to not_if) | |
| * chef_data_bag[keys] action create (up to date) | |
| * chef_data_bag_item[keys/delivery_builder_keys] action create | |
| - update data bag item delivery_builder_keys at https://33.33.33.10/organizations/vagrant | |
| - add builder_key | |
| - add delivery_pem | |
| * machine[delivery-server-vagrant] action converge[2015-09-25T13:33:40-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T13:33:40-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| (up to date) | |
| * machine_execute[Create "/var/opt/delivery/license" directory on Delivery Server] action run[2015-09-25T13:33:46-07:00] WARN: Class Chef::Provider::MachineExecute does not declare 'resource_name :machine_execute'. | |
| [2015-09-25T13:33:46-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - run 'mkdir -p /var/opt/delivery/license' on delivery-server-vagrant | |
| * machine_file[/var/opt/delivery/license/delivery.license] action upload (up to date) | |
| * machine[delivery-server-vagrant] action converge[2015-09-25T13:33:50-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T13:33:50-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - update node delivery-server-vagrant at https://33.33.33.10/organizations/vagrant | |
| - remove normal.apt | |
| [delivery-server-vagrant] Starting Chef Client, version 12.4.3 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "delivery-cluster::delivery"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster | |
| - chef-server-12 | |
| - chef-ingredient | |
| - apt-chef | |
| - apt | |
| - yum-chef | |
| - yum | |
| - hostsfile | |
| - git | |
| - build-essential | |
| - dmg | |
| - windows | |
| - chef_handler | |
| - yum-epel | |
| - delivery_build | |
| - packagecloud | |
| - chef-sugar | |
| - 7-zip | |
| - omnibus | |
| - homebrew | |
| - wix | |
| - windows-sdk | |
| - push-jobs | |
| - runit | |
| - chef-splunk | |
| - chef-vault | |
| Compiling Cookbooks... | |
| [2015-09-25T20:34:08+00:00] WARN: You are overriding windows_package on {:os=>"windows"} with Chef::Resource::WindowsCookbookPackage: used to be Chef::Resource::WindowsPackage. Use override: true if this is what you intended. | |
| [2015-09-25T20:34:08+00:00] WARN: You declared a new resource Chef::Provider::GitClient::Source for resource git_client, but it comes alphabetically after Chef::Provider::GitClient::Package and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for git_client. | |
| Converging 15 resources | |
| Recipe: apt::default | |
| * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing) | |
| * directory[/etc/apt/apt.conf.d] action create (up to date) | |
| * cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create (up to date) | |
| * execute[apt-get-update] action run (skipped due to not_if) | |
| * execute[apt-get update] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoremove] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoclean] action nothing (skipped due to action :nothing) | |
| * execute[apt-get-update-periodic] action run (skipped due to only_if) | |
| * directory[/var/cache/local] action create (up to date) | |
| * directory[/var/cache/local/preseeding] action create (up to date) | |
| Recipe: delivery-cluster::delivery | |
| * packagecloud_repo[chef/stable] action add | |
| * apt_package[apt-transport-https] action install (up to date) | |
| * template[/etc/apt/sources.list.d/chef_stable.list] action create (up to date) | |
| * execute[apt-key-add-chef_stable] action nothing (skipped due to action :nothing) | |
| * execute[apt-get-update-chef_stable] action nothing (skipped due to action :nothing) | |
| (up to date) | |
| * apt_package[delivery] action upgrade (up to date) | |
| * directory[/etc/delivery] action create (up to date) | |
| * template[/etc/delivery/delivery.rb] action create (up to date) | |
| * execute[reconfigure delivery] action nothing (skipped due to action :nothing) | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 0/10 resources updated in 8.583928066 seconds | |
| - run 'chef-client -l auto' on delivery-server-vagrant | |
| * machine_execute[Chown '/etc/delivery' to 'delivery' user] action run[2015-09-25T13:34:15-07:00] WARN: Class Chef::Provider::MachineExecute does not declare 'resource_name :machine_execute'. | |
| [2015-09-25T13:34:15-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - run 'chown -R delivery /etc/delivery' on delivery-server-vagrant | |
| * machine_file[delivery-server-cert] action download (up to date) | |
| * machine_execute[Creating Enterprise] action run[2015-09-25T13:34:19-07:00] WARN: Class Chef::Provider::MachineExecute does not declare 'resource_name :machine_execute'. | |
| [2015-09-25T13:34:19-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - run 'sudo -E delivery-ctl list-enterprises | grep -w ^vagrant; [ $? -ne 0 ] && sudo -E delivery-ctl create-enterprise vagrant --ssh-pub-key-file=/etc/delivery/builder_key.pub > /tmp/vagrant.creds || echo 1' on delivery-server-vagrant | |
| * machine_file[/tmp/vagrant.creds] action download (up to date) | |
| * ruby_block[print-delivery-credentials] action runCreated enterprise: vagrant | |
| Admin username: admin | |
| Admin password: ynN2Br4vB0tpa+HU+G+Oo6EDNfQw94Zb7fQ= | |
| Builder Password: yRMuDkoHwFT4YvJeSpL2Nyjb5Ne3o+DHkw8= | |
| Web login: https://33.33.33.11/e/vagrant/ | |
| - execute the ruby block print-delivery-credentials | |
| Recipe: delivery-cluster::setup_delivery_builders | |
| * chef_role[delivery_builders] action create (up to date) | |
| * machine_batch[2-build-nodes] action converge[2015-09-25T13:34:24-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T13:34:24-07:00] WARN: Class Chef::Provider::VagrantCluster does not declare 'resource_name :vagrant_cluster'. | |
| [2015-09-25T13:34:24-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| [2015-09-25T13:34:24-07:00] WARN: This will no longer work in Chef 13: you must use 'resource_name' to provide DSL. | |
| - [build-node-vagrant-2] update node build-node-vagrant-2 at https://33.33.33.10/organizations/vagrant | |
| - [build-node-vagrant-2] remove normal.delivery_build.chef_root | |
| - [build-node-vagrant-1] update node build-node-vagrant-1 at https://33.33.33.10/organizations/vagrant | |
| - [build-node-vagrant-1] remove normal.delivery_build.chef_root | |
| - [build-node-vagrant-1] remove normal.apt | |
| [build-node-vagrant-1] Starting Chef Client, version 12.4.3 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "push-jobs", "delivery_build"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster | |
| - chef-server-12 | |
| - chef-ingredient | |
| - apt-chef | |
| - apt | |
| - yum-chef | |
| - yum | |
| - hostsfile | |
| - git | |
| - build-essential | |
| - dmg | |
| - windows | |
| - chef_handler | |
| - yum-epel | |
| - delivery_build | |
| - packagecloud | |
| - chef-sugar | |
| - 7-zip | |
| - omnibus | |
| - homebrew | |
| - wix | |
| - windows-sdk | |
| - push-jobs | |
| - runit | |
| - chef-splunk | |
| - chef-vault | |
| Compiling Cookbooks... | |
| [2015-09-25T20:34:37+00:00] WARN: You are overriding windows_package on {:os=>"windows"} with Chef::Resource::WindowsCookbookPackage: used to be Chef::Resource::WindowsPackage. Use override: true if this is what you intended. | |
| [2015-09-25T20:34:37+00:00] WARN: You declared a new resource Chef::Provider::GitClient::Source for resource git_client, but it comes alphabetically after Chef::Provider::GitClient::Package and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for git_client. | |
| Recipe: chef-sugar::default | |
| * chef_gem[chef-sugar] action install | |
| - install version 3.1.1 of package chef-sugar | |
| Converging 49 resources | |
| Recipe: apt::default | |
| * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing) | |
| * directory[/etc/apt/apt.conf.d] action create (up to date) | |
| * cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create (up to date) | |
| * execute[apt-get-update] action run (skipped due to not_if) | |
| * execute[apt-get update] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoremove] action nothing (skipped due to action :nothing) | |
| * execute[apt-get autoclean] action nothing (skipped due to action :nothing) | |
| * execute[apt-get-update-periodic] action run (skipped due to only_if) | |
| * directory[/var/cache/local] action create (up to date) | |
| * directory[/var/cache/local/preseeding] action create (up to date) | |
| Recipe: push-jobs::linux | |
| * remote_file[/var/chef/cache/opscode-push-jobs-client_1.0.1-1.ubuntu.12.04_amd64.deb] action create (up to date) | |
| * chef_ingredient[push-client] action install | |
| * chef_gem[push-client-mixlib-versioning] action install | |
| - install version 1.1.0 of package mixlib-versioning | |
| * chef_gem[push-client-mixlib-versioning] action install (up to date) | |
| * dpkg_package[push-client] action install (up to date) | |
| Recipe: push-jobs::config | |
| * directory[/etc/chef] action create (up to date) | |
| * template[/etc/chef/push-jobs-client.rb] action create (up to date) | |
| Recipe: runit::default | |
| * service[runit] action nothing (skipped due to action :nothing) | |
| * execute[start-runsvdir] action nothing (skipped due to action :nothing) | |
| * execute[runit-hup-init] action nothing (skipped due to action :nothing) | |
| * apt_package[runit] action install (up to date) | |
| Recipe: <Dynamically Defined Resource> | |
| * service[opscode-push-jobs-client] action nothing (skipped due to action :nothing) | |
| Recipe: push-jobs::service_runit | |
| * runit_service[opscode-push-jobs-client] action enable | |
| * directory[/etc/sv/opscode-push-jobs-client] action create (up to date) | |
| * template[/etc/sv/opscode-push-jobs-client/run] action create (up to date) | |
| * directory[/etc/sv/opscode-push-jobs-client/log] action create (up to date) | |
| * directory[/etc/sv/opscode-push-jobs-client/log/main] action create (up to date) | |
| * directory[/var/log/opscode-push-jobs-client] action create (up to date) | |
| * link[/var/log/opscode-push-jobs-client/config] action create (up to date) | |
| * file[/etc/sv/opscode-push-jobs-client/log/run] action create (up to date) | |
| * template[/etc/sv/opscode-push-jobs-client/log/config] action create (up to date) | |
| * directory[/etc/sv/opscode-push-jobs-client/env] action create (up to date) | |
| * ruby_block[zap extra env files] action run (skipped due to only_if) | |
| * directory[/etc/sv/opscode-push-jobs-client/control] action create (up to date) | |
| * link[/etc/init.d/opscode-push-jobs-client] action create (up to date) | |
| * file[/etc/sv/opscode-push-jobs-client/down] action nothing (skipped due to action :nothing) | |
| * link[/etc/service/opscode-push-jobs-client] action create (up to date) | |
| (up to date) | |
| * runit_service[opscode-push-jobs-client] action start (up to date) | |
| Recipe: chef-sugar::default | |
| * chef_gem[chef-sugar] action install (up to date) | |
| Recipe: delivery_build::chef_client | |
| * directory[/etc/chef] action create (up to date) | |
| * file[/etc/chef/client.rb] action create (up to date) | |
| * directory[/etc/chef/trusted_certs] action create (up to date) | |
| * file[/etc/chef/trusted_certs/33_33_33_10.crt] action create (up to date) | |
| * file[/etc/chef/trusted_certs/33.33.33.11.crt] action create (up to date) | |
| Recipe: git::default | |
| * git_client[default] action install | |
| * apt_package[default :create git] action install (up to date) | |
| (up to date) | |
| Recipe: delivery_build::repo | |
| * packagecloud_repo[chef/stable] action add | |
| * apt_package[apt-transport-https] action install (up to date) | |
| * template[/etc/apt/sources.list.d/chef_stable.list] action create (up to date) | |
| * execute[apt-key-add-chef_stable] action nothing (skipped due to action :nothing) | |
| * execute[apt-get-update-chef_stable] action nothing (skipped due to action :nothing) | |
| (up to date) | |
| Recipe: delivery_build::user | |
| * directory[/var/opt/delivery] action create (up to date) | |
| * user[dbuild] action create (up to date) | |
| Recipe: delivery_build::chefdk | |
| * apt_package[chefdk] action upgrade (up to date) | |
| * file[/root/.gemrc] action create (up to date) | |
| Recipe: delivery_build::workspace | |
| * directory[/var/opt/delivery/workspace] action create (up to date) | |
| * directory[/var/opt/delivery/workspace/.chef] action create (up to date) | |
| * directory[/var/opt/delivery/workspace/bin] action create (up to date) | |
| * directory[/var/opt/delivery/workspace/lib] action create (up to date) | |
| * directory[/var/opt/delivery/workspace/etc] action create (up to date) | |
| * template[/var/opt/delivery/workspace/bin/git_ssh] action create (up to date) | |
| * file[/var/opt/delivery/workspace/etc/delivery-git-ssh-known-hosts] action create (up to date) | |
| * template[/var/opt/delivery/workspace/bin/delivery-cmd] action create (up to date) | |
| * file[/var/opt/delivery/workspace/etc/builder_key] action create (up to date) | |
| * file[/var/opt/delivery/workspace/.chef/builder_key] action create (up to date) | |
| * file[/var/opt/delivery/workspace/etc/delivery.pem] action create (up to date) | |
| * file[/var/opt/delivery/workspace/.chef/delivery.pem] action create (up to date) | |
| * template[/var/opt/delivery/workspace/etc/delivery.rb] action create (up to date) | |
| * template[/var/opt/delivery/workspace/.chef/knife.rb] action create (up to date) | |
| * execute[fetch_ssl_certificate] action run (skipped due to not_if) | |
| Recipe: delivery_build::cli | |
| * apt_package[delivery-cli] action upgrade (up to date) | |
| Recipe: delivery_build::trusted_certs | |
| * trusted_cert[Delivery Server Cert] action append | |
| - Append Delivery Server Cert to /opt/chefdk/embedded/ssl/certs/cacert.pem | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 4/58 resources updated in 47.477175989 seconds | |
| - [build-node-vagrant-1] run 'chef-client -l auto' on build-node-vagrant-1 | |
| [build-node-vagrant-2] Starting Chef Client, version 12.4.3 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "push-jobs", "delivery_build"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster | |
| - chef-server-12 | |
| - chef-ingredient | |
| - apt-chef | |
| - apt | |
| - yum-chef | |
| - yum | |
| - hostsfile | |
| - git | |
| - build-essential | |
| - dmg | |
| - windows | |
| - chef_handler | |
| - yum-epel | |
| - delivery_build | |
| - chef-sugar | |
| - packagecloud | |
| - 7-zip | |
| - omnibus | |
| - homebrew | |
| - wix | |
| - windows-sdk | |
| - push-jobs | |
| - runit | |
| - chef-splunk | |
| - chef-vault | |
| Compiling Cookbooks... | |
| [2015-09-25T20:35:31+00:00] WARN: You are overriding windows_package on {:os=>"windows"} with Chef::Resource::WindowsCookbookPackage: used to be Chef::Resource::WindowsPackage. Use override: true if this is what you intended. | |
| [2015-09-25T20:35:31+00:00] WARN: You declared a new resource Chef::Provider::GitClient::Source for resource git_client, but it comes alphabetically after Chef::Provider::GitClient::Package and has the same filters ({:os=>"linux"}), so it will not be used. Use override: true if you want to use it for git_client. | |
| Recipe: delivery-cluster::pkg_repo_management | |
| * execute[yum clean all] action run | |
| - execute yum clean all | |
| Recipe: chef-sugar::default | |
| * chef_gem[chef-sugar] action install | |
| - install version 3.1.1 of package chef-sugar | |
| Converging 42 resources | |
| Recipe: yum::default | |
| * yum_globalconfig[/etc/yum.conf] action create | |
| * template[/etc/yum.conf] action create (up to date) | |
| (up to date) | |
| Recipe: delivery-cluster::pkg_repo_management | |
| * execute[yum clean all] action nothing (skipped due to action :nothing) | |
| Recipe: push-jobs::linux | |
| * remote_file[/var/chef/cache/opscode-push-jobs-client-1.1.5-1.el6.x86_64.rpm] action create (up to date) | |
| * chef_ingredient[push-client] action install | |
| * chef_gem[push-client-mixlib-versioning] action install | |
| - install version 1.1.0 of package mixlib-versioning | |
| * chef_gem[push-client-mixlib-versioning] action install (up to date) | |
| * rpm_package[push-client] action install (up to date) | |
| Recipe: push-jobs::config | |
| * directory[/etc/chef] action create (up to date) | |
| * template[/etc/chef/push-jobs-client.rb] action create (up to date) | |
| Recipe: runit::default | |
| * service[runit] action nothing (skipped due to action :nothing) | |
| * execute[start-runsvdir] action nothing (skipped due to action :nothing) | |
| * execute[runit-hup-init] action nothing (skipped due to action :nothing) | |
| * packagecloud_repo[imeyer/runit] action add | |
| * yum_package[pygpgme] action install (up to date) | |
| * log[pygpgme_warning] action write (skipped due to not_if) | |
| * ruby_block[disable repo_gpgcheck if no pygpgme] action run (skipped due to not_if) | |
| * remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io] action create (up to date) | |
| * template[/etc/yum.repos.d/imeyer_runit.repo] action create (up to date) | |
| * execute[yum-makecache-imeyer_runit] action nothing (skipped due to action :nothing) | |
| * ruby_block[yum-cache-reload-imeyer_runit] action nothing (skipped due to action :nothing) | |
| (up to date) | |
| * yum_package[runit] action install (up to date) | |
| Recipe: <Dynamically Defined Resource> | |
| * service[opscode-push-jobs-client] action nothing (skipped due to action :nothing) | |
| Recipe: push-jobs::service_runit | |
| * runit_service[opscode-push-jobs-client] action enable | |
| * directory[/etc/sv/opscode-push-jobs-client] action create (up to date) | |
| * template[/etc/sv/opscode-push-jobs-client/run] action create (up to date) | |
| * directory[/etc/sv/opscode-push-jobs-client/log] action create (up to date) | |
| * directory[/etc/sv/opscode-push-jobs-client/log/main] action create (up to date) | |
| * directory[/var/log/opscode-push-jobs-client] action create (up to date) | |
| * link[/var/log/opscode-push-jobs-client/config] action create (up to date) | |
| * file[/etc/sv/opscode-push-jobs-client/log/run] action create (up to date) | |
| * template[/etc/sv/opscode-push-jobs-client/log/config] action create (up to date) | |
| * directory[/etc/sv/opscode-push-jobs-client/env] action create (up to date) | |
| * ruby_block[zap extra env files] action run (skipped due to only_if) | |
| * directory[/etc/sv/opscode-push-jobs-client/control] action create (up to date) | |
| * link[/etc/init.d/opscode-push-jobs-client] action create (up to date) | |
| * file[/etc/sv/opscode-push-jobs-client/down] action nothing (skipped due to action :nothing) | |
| * link[/etc/service/opscode-push-jobs-client] action create (up to date) | |
| (up to date) | |
| * runit_service[opscode-push-jobs-client] action start (up to date) | |
| Recipe: chef-sugar::default | |
| * chef_gem[chef-sugar] action install (up to date) | |
| Recipe: delivery_build::chef_client | |
| * directory[/etc/chef] action create (up to date) | |
| * file[/etc/chef/client.rb] action create (up to date) | |
| * directory[/etc/chef/trusted_certs] action create (up to date) | |
| * file[/etc/chef/trusted_certs/33_33_33_10.crt] action create (up to date) | |
| * file[/etc/chef/trusted_certs/33.33.33.11.crt] action create (up to date) | |
| Recipe: git::default | |
| * git_client[default] action install | |
| * yum_package[default :create git] action install (up to date) | |
| (up to date) | |
| Recipe: delivery_build::repo | |
| * packagecloud_repo[chef/stable] action add | |
| * yum_package[pygpgme] action install (up to date) | |
| * log[pygpgme_warning] action write (skipped due to not_if) | |
| * ruby_block[disable repo_gpgcheck if no pygpgme] action run (skipped due to not_if) | |
| * remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io] action create (up to date) | |
| * template[/etc/yum.repos.d/chef_stable.repo] action create (up to date) | |
| * execute[yum-makecache-chef_stable] action nothing (skipped due to action :nothing) | |
| * ruby_block[yum-cache-reload-chef_stable] action nothing (skipped due to action :nothing) | |
| (up to date) | |
| Recipe: delivery_build::user | |
| * directory[/var/opt/delivery] action create (up to date) | |
| * user[dbuild] action create (up to date) | |
| Recipe: delivery_build::chefdk | |
| * yum_package[chefdk] action upgrade (up to date) | |
| * file[/root/.gemrc] action create (up to date) | |
| Recipe: delivery_build::workspace | |
| * directory[/var/opt/delivery/workspace] action create (up to date) | |
| * directory[/var/opt/delivery/workspace/.chef] action create (up to date) | |
| * directory[/var/opt/delivery/workspace/bin] action create (up to date) | |
| * directory[/var/opt/delivery/workspace/lib] action create (up to date) | |
| * directory[/var/opt/delivery/workspace/etc] action create (up to date) | |
| * template[/var/opt/delivery/workspace/bin/git_ssh] action create (up to date) | |
| * file[/var/opt/delivery/workspace/etc/delivery-git-ssh-known-hosts] action create (up to date) | |
| * template[/var/opt/delivery/workspace/bin/delivery-cmd] action create (up to date) | |
| * file[/var/opt/delivery/workspace/etc/builder_key] action create (up to date) | |
| * file[/var/opt/delivery/workspace/.chef/builder_key] action create (up to date) | |
| * file[/var/opt/delivery/workspace/etc/delivery.pem] action create (up to date) | |
| * file[/var/opt/delivery/workspace/.chef/delivery.pem] action create (up to date) | |
| * template[/var/opt/delivery/workspace/etc/delivery.rb] action create (up to date) | |
| * template[/var/opt/delivery/workspace/.chef/knife.rb] action create (up to date) | |
| * execute[fetch_ssl_certificate] action run (skipped due to not_if) | |
| Recipe: delivery_build::cli | |
| * yum_package[delivery-cli] action upgrade (up to date) | |
| Recipe: delivery_build::trusted_certs | |
| * trusted_cert[Delivery Server Cert] action append | |
| - Append Delivery Server Cert to /opt/chefdk/embedded/ssl/certs/cacert.pem | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 5/62 resources updated in 69.000277265 seconds | |
| - [build-node-vagrant-2] run 'chef-client -l auto' on build-node-vagrant-2 | |
| [2015-09-25T13:36:38-07:00] WARN: Skipping final node save because override_runlist was given | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 10/25 resources updated in 325.46961 seconds | |
| ➜ delivery-cluster git:(afiune/158/lazy_delivery_cert) ✗ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment