Created
June 23, 2016 20:57
-
-
Save afiune/412537a8a8fe2badd6db47d212d8a310 to your computer and use it in GitHub Desktop.
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:(master) ✗ export CHEF_ENV=aws | |
| ➜ delivery-cluster git:(master) ✗ rake setup:cluster | |
| Verifying ChefDK version | |
| Running ChefDK version 0.16.1 | |
| Configuring the provisioner node | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[chef-provisioning-ssh] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:25:in `block in run_chef_recipe' | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[chef-provisioning-ssh] Please set `compile_time false` on the resource to use the new behavior. at recipes/provisioner.rb:25:in `block in run_chef_recipe' | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[chef-provisioning-ssh] or set `compile_time true` on the resource if compile_time behavior is required. at recipes/provisioner.rb:25:in `block in run_chef_recipe' | |
| Recipe: (chef-apply cookbook)::(chef-apply recipe) | |
| * chef_gem[chef-provisioning-ssh] action install (up to date) | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[chef-provisioning-vagrant] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:25:in `block in run_chef_recipe' | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[chef-provisioning-vagrant] Please set `compile_time false` on the resource to use the new behavior. at recipes/provisioner.rb:25:in `block in run_chef_recipe' | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[chef-provisioning-vagrant] or set `compile_time true` on the resource if compile_time behavior is required. at recipes/provisioner.rb:25:in `block in run_chef_recipe' | |
| * chef_gem[chef-provisioning-vagrant] action install (up to date) | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[chef-provisioning-aws] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:25:in `block in run_chef_recipe' | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[chef-provisioning-aws] Please set `compile_time false` on the resource to use the new behavior. at recipes/provisioner.rb:25:in `block in run_chef_recipe' | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[chef-provisioning-aws] or set `compile_time true` on the resource if compile_time behavior is required. at recipes/provisioner.rb:25:in `block in run_chef_recipe' | |
| * chef_gem[chef-provisioning-aws] action install (up to date) | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[knife-push] chef_gem compile_time installation is deprecated at recipes/provisioner.rb:28:in `run_chef_recipe' | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[knife-push] Please set `compile_time false` on the resource to use the new behavior. at recipes/provisioner.rb:28:in `run_chef_recipe' | |
| [2016-06-23T16:11:08-04:00] WARN: chef_gem[knife-push] or set `compile_time true` on the resource if compile_time behavior is required. at recipes/provisioner.rb:28:in `run_chef_recipe' | |
| * chef_gem[knife-push] action install (up to date) | |
| * chef_gem[chef-provisioning-ssh] action install (up to date) | |
| * chef_gem[chef-provisioning-vagrant] action install (up to date) | |
| * chef_gem[chef-provisioning-aws] action install (up to date) | |
| * chef_gem[knife-push] action install (up to date) | |
| Download and vendor the necessary cookbooks locally | |
| Resolving cookbook dependencies... | |
| Fetching 'chef-server-12' from source at vendor/chef-server-12 | |
| Fetching 'chef-splunk' from https://github.com/chef-cookbooks/chef-splunk.git (at master) | |
| Fetching 'delivery-base' from https://github.com/chef-cookbooks/delivery-base.git (at master) | |
| Fetching 'delivery-cluster' from source at . | |
| Fetching 'delivery_build' from https://github.com/chef-cookbooks/delivery_build.git (at master) | |
| Fetching 'runit' from https://github.com/afiune/runit.git (at afiune/make-it-work-in-oel) | |
| Fetching cookbook index from https://supermarket.chef.io... | |
| Installing apt (4.0.1) | |
| Using build-essential (6.0.0) | |
| Using chef-ingredient (0.18.5) | |
| Using chef-server-12 (0.1.14) from source at vendor/chef-server-12 | |
| Using chef-splunk (1.5.0) from https://github.com/chef-cookbooks/chef-splunk.git (at master) | |
| Using chef-sugar (3.3.0) | |
| Using chef-vault (1.3.3) | |
| Using chef_handler (1.4.0) | |
| Using compat_resource (12.10.6) | |
| Using delivery-base (0.2.2) from https://github.com/chef-cookbooks/delivery-base.git (at master) | |
| Using delivery-cluster (0.6.13) from source at . | |
| Using delivery_build (0.4.28) from https://github.com/chef-cookbooks/delivery_build.git (at master) | |
| Using dmg (2.4.0) | |
| Using git (4.5.0) | |
| Using hostsfile (2.4.5) | |
| Using mingw (1.2.0) | |
| Using packagecloud (0.2.3) | |
| Using push-jobs (3.2.0) | |
| Using runit (1.7.7) from https://github.com/afiune/runit.git (at afiune/make-it-work-in-oel) | |
| Using seven_zip (2.0.1) | |
| Using windows (1.44.0) | |
| Using yum (3.11.0) | |
| Using yum-epel (0.7.0) | |
| Vendoring apt (4.0.1) to cookbooks/apt | |
| Vendoring build-essential (6.0.0) to cookbooks/build-essential | |
| Vendoring chef-ingredient (0.18.5) to cookbooks/chef-ingredient | |
| Vendoring chef-server-12 (0.1.14) to cookbooks/chef-server-12 | |
| Vendoring chef-splunk (1.5.0) to cookbooks/chef-splunk | |
| Vendoring chef-sugar (3.3.0) to cookbooks/chef-sugar | |
| Vendoring chef-vault (1.3.3) to cookbooks/chef-vault | |
| Vendoring chef_handler (1.4.0) to cookbooks/chef_handler | |
| Vendoring compat_resource (12.10.6) to cookbooks/compat_resource | |
| Vendoring delivery-base (0.2.2) to cookbooks/delivery-base | |
| Vendoring delivery-cluster (0.6.13) to cookbooks/delivery-cluster | |
| Vendoring delivery_build (0.4.28) to cookbooks/delivery_build | |
| Vendoring dmg (2.4.0) to cookbooks/dmg | |
| Vendoring git (4.5.0) to cookbooks/git | |
| Vendoring hostsfile (2.4.5) to cookbooks/hostsfile | |
| Vendoring mingw (1.2.0) to cookbooks/mingw | |
| Vendoring packagecloud (0.2.3) to cookbooks/packagecloud | |
| Vendoring push-jobs (3.2.0) to cookbooks/push-jobs | |
| Vendoring runit (1.7.7) to cookbooks/runit | |
| Vendoring seven_zip (2.0.1) to cookbooks/seven_zip | |
| Vendoring windows (1.44.0) to cookbooks/windows | |
| Vendoring yum (3.11.0) to cookbooks/yum | |
| Vendoring yum-epel (0.7.0) to cookbooks/yum-epel | |
| Current chef environment => environments/aws.json | |
| Setup the Chef Delivery cluster | |
| Starting Chef Client, version 12.11.18 | |
| [2016-06-23T16:11:33-04:00] WARN: Run List override has been provided. | |
| [2016-06-23T16:11:33-04:00] WARN: Original Run List: [] | |
| [2016-06-23T16:11:33-04:00] WARN: Overridden Run List: [recipe[delivery-cluster::setup]] | |
| resolving cookbooks for run list: ["delivery-cluster::setup"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster (0.6.13) | |
| - chef-server-12 (0.1.14) | |
| - chef-ingredient (0.18.5) | |
| - git (4.5.0) | |
| - apt (4.0.1) | |
| - yum (3.11.0) | |
| - delivery_build (0.4.28) | |
| - hostsfile (2.4.5) | |
| - chef-splunk (1.5.0) | |
| - build-essential (6.0.0) | |
| - dmg (2.4.0) | |
| - windows (1.44.0) | |
| - yum-epel (0.7.0) | |
| - compat_resource (12.10.6) | |
| - chef-sugar (3.3.0) | |
| - delivery-base (0.2.2) | |
| - chef-vault (1.3.3) | |
| - seven_zip (2.0.1) | |
| - mingw (1.2.0) | |
| - chef_handler (1.4.0) | |
| - push-jobs (3.2.0) | |
| - runit (1.7.7) | |
| - packagecloud (0.2.3) | |
| Installing Cookbook Gems: | |
| Compiling Cookbooks... | |
| [2016-06-23T16:11:40-04:00] WARN: Chef::Provider::AptRepository already exists! Cannot create deprecation class for LWRP provider apt_repository from cookbook apt | |
| [2016-06-23T16:11:40-04:00] WARN: AptRepository already exists! Deprecation class overwrites Custom resource apt_repository from cookbook apt | |
| Converging 33 resources | |
| Recipe: delivery-cluster::_settings | |
| * link[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data] action create | |
| - 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-aws | |
| Recipe: delivery-cluster::setup_chef_server | |
| * machine[chef-server-aws] action converge[2016-06-23T16:11:55-04:00] WARN: The machine_option ':use_private_ip_for_ssh' has been deprecated, use ':transport_address_location' | |
| - Create chef-server-aws with AMI ami-775e4f16 in us-west-2 | |
| - creating tags {"cool_tag"=>"awesomeness", "pretty_bad"=>"uwful"} | |
| - create node chef-server-aws at chefzero://localhost:8890 | |
| - add normal.tags = nil | |
| - add normal.chef_provisioning = {"reference"=>{"driver_version"=>"1.10.0", "allocated_at"=>"2016-06-23 20:11:55 UTC", "host_node"=>"chefzero://localhost:8890/nodes/", "image_id"=>"ami-775e4f16", "instance_id"=>"i-c2945f6d", "key_name"=>"afiune", "ssh_username"=>"ec2-user", "transport_address_location"=>:private_ip}, "driver_url"=>"aws"} | |
| - waiting for chef-server-aws (i-c2945f6d on aws) to become ready ... | |
| - been waiting 0/120 -- sleeping 10 seconds for chef-server-aws (i-c2945f6d on aws) to become ready ... | |
| - been waiting 10/120 -- sleeping 10 seconds for chef-server-aws (i-c2945f6d on aws) to become ready ... | |
| - been waiting 20/120 -- sleeping 10 seconds for chef-server-aws (i-c2945f6d on aws) to become ready ... | |
| - waiting for chef-server-aws (i-c2945f6d on aws) to be connectable (transport up and running) ... | |
| - been waiting 0/120 -- sleeping 10 seconds for chef-server-aws (i-c2945f6d on aws) to become connectable ... | |
| - been waiting 10/120 -- sleeping 10 seconds for chef-server-aws (i-c2945f6d on aws) to become connectable ... | |
| - been waiting 20/120 -- sleeping 10 seconds for chef-server-aws (i-c2945f6d on aws) to become connectable ... | |
| - been waiting 30/120 -- sleeping 10 seconds for chef-server-aws (i-c2945f6d on aws) to become connectable ...[2016-06-23T16:13:15-04:00] ERROR: Unable to download /etc/chef/client.pem to /tmp/client.pem.2116150555 on ec2-user@10.194.9.72 -- Error: command 'cp /etc/chef/client.pem /tmp/client.pem.2116150555' exited with code 1. | |
| [2016-06-23T16:13:15-04:00] WARN: Unable to clean up /tmp/client.pem.2116150555 on ec2-user@10.194.9.72 -- Error: command 'rm /tmp/client.pem.2116150555' exited with code 1. | |
| - generate private key (2048 bits) | |
| - create directory /etc/chef on chef-server-aws | |
| - write file /etc/chef/client.pem on chef-server-aws | |
| - create client chef-server-aws at clients | |
| - add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmjVcICgrvnQXO/KKaeKJ\n73ZWEaeZz+DjeoKgd7OUX4++z2jvLYNJLntfgGhtPjruh7jL2XvAXzZb5DgLd0a8\nMT0ugsPlUOKNKjSv3g7GfMomOk2QH1X/atugjXovjFlhQ/ULOSu3Pf1dZTQi9r2F\nM00xp/uYW9R2sfmgjzQoUtUod4wM3n57+5tnXWYhje/QvSXVcR83kD0wXraARgfW\nTdIA9y81aYtaTyZRdcgWf6svCU+FnhX7stmVWMokC6UUiCSi3lVsUlavbTLc5cvw\nJ6RVz9uCh/Du9Zn63EC165SW4jJGYKPdhTT34uki6BSvx0m6wHhJQoNFDXxVipyy\nRwIDAQAB\n-----END PUBLIC KEY-----\n" | |
| - create directory /etc/chef/ohai/hints on chef-server-aws | |
| - write file /etc/chef/ohai/hints/ec2.json on chef-server-aws | |
| - write file /etc/chef/client.rb on chef-server-aws | |
| - write file /install.sh on chef-server-aws | |
| - change mode of /install.sh on chef-server-aws from 640 to 755 | |
| - run 'sh -c /install.sh' on chef-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.10.63.crt to /etc/chef/trusted_certs/10.194.10.63.crt on chef-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.10.63.key to /etc/chef/trusted_certs/10.194.10.63.key on chef-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.12.31.crt to /etc/chef/trusted_certs/10.194.12.31.crt on chef-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.12.75.key to /etc/chef/trusted_certs/10.194.12.75.key on chef-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.14.73.key to /etc/chef/trusted_certs/10.194.14.73.key on chef-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.9.133.key to /etc/chef/trusted_certs/10.194.9.133.key on chef-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.9.27.crt to /etc/chef/trusted_certs/10.194.9.27.crt on chef-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/192.168.33.33.crt to /etc/chef/trusted_certs/192.168.33.33.crt on chef-server-aws | |
| [chef-server-aws] Starting Chef Client, version 12.11.18 | |
| resolving cookbooks for run list: [] | |
| Synchronizing Cookbooks: | |
| Installing Cookbook Gems: | |
| Compiling Cookbooks... | |
| [2016-06-23T16:14:07-04:00] WARN: Node chef-server-aws has an empty run list. | |
| Converging 0 resources | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 0/0 resources updated in 04 seconds | |
| - run 'chef-client -c /etc/chef/client.rb -l auto' on chef-server-aws | |
| * directory[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws] action create | |
| - create new directory /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws | |
| * file[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/chef_server_delivery_password] action create | |
| - create new file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/chef_server_delivery_password | |
| - update content in file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/chef_server_delivery_password from none to 8723d9 | |
| - suppressed sensitive resource | |
| - change mode from '' to '0644' | |
| * machine[chef-server-aws] action converge | |
| - update node chef-server-aws at chefzero://localhost:8890 | |
| - add normal.chef-server-12 = {"accept_license"=>true, "delivery"=>{"organization"=>"aws", "password"=>"X5Y5ztjYv9eYMRzVnTnOSpTFI4I="}, "api_fqdn"=>"10.194.9.72", "store_keys_databag"=>false, "plugin"=>{"reporting"=>true}} | |
| - update run_list from [] to ["recipe[delivery-cluster::pkg_repo_management]", "recipe[chef-server-12]"] | |
| - run 'sh -c /install.sh' on chef-server-aws | |
| [chef-server-aws] Starting Chef Client, version 12.11.18 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "chef-server-12"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster (0.6.13) | |
| - chef-server-12 (0.1.14) | |
| - chef-ingredient (0.18.5) | |
| - git (4.5.0) | |
| - apt (4.0.1) | |
| - yum (3.11.0) | |
| - delivery_build (0.4.28) | |
| - chef-splunk (1.5.0) | |
| - hostsfile (2.4.5) | |
| - build-essential (6.0.0) | |
| - dmg (2.4.0) | |
| - windows (1.44.0) | |
| - yum-epel (0.7.0) | |
| - compat_resource (12.10.6) | |
| - chef-sugar (3.3.0) | |
| - delivery-base (0.2.2) | |
| - chef-vault (1.3.3) | |
| - seven_zip (2.0.1) | |
| - mingw (1.2.0) | |
| - chef_handler (1.4.0) | |
| - push-jobs (3.2.0) | |
| - runit (1.7.7) | |
| - packagecloud (0.2.3) | |
| Installing Cookbook Gems: | |
| Compiling Cookbooks... | |
| [2016-06-23T16:15:00-04:00] WARN: Chef::Provider::AptRepository already exists! Cannot create deprecation class for LWRP provider apt_repository from cookbook apt | |
| [2016-06-23T16:15:00-04:00] WARN: AptRepository already exists! Deprecation class overwrites Custom resource apt_repository from cookbook apt | |
| Recipe: delivery-cluster::pkg_repo_management | |
| * execute[yum clean all] action run | |
| - execute yum clean all | |
| Converging 16 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 162499 to cf2149 | |
| --- /etc/yum.conf 2015-09-11 04:44:45.000000000 -0400 | |
| +++ /etc/.chef-yum.conf20160623-10283-16wfnxn 2016-06-23 16:15:01.230825791 -0400 | |
| @@ -1,24 +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 | |
| exactarch=1 | |
| -obsoletes=1 | |
| gpgcheck=1 | |
| -plugins=1 | |
| installonly_limit=3 | |
| - | |
| -# 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 | |
| +keepcache=0 | |
| +localpkg_gpgcheck=0 | |
| +logfile=/var/log/yum.log | |
| +obsoletes=1 | |
| +plugins=1 | |
| - restore selinux security context | |
| Recipe: delivery-cluster::pkg_repo_management | |
| * execute[yum clean all] action nothing (skipped due to action :nothing) | |
| Recipe: chef-server-12::default | |
| * hostsfile_entry[10.194.9.72] action create | |
| Recipe: <Dynamically Defined Resource> | |
| * file[/etc/hosts] action create | |
| - update content in file /etc/hosts from 6768ce to 36a9a7 | |
| --- /etc/hosts 2015-11-09 20:37:34.642000000 -0500 | |
| +++ /etc/.chef-hosts20160623-10283-1b8clot 2016-06-23 16:15:01.287824989 -0400 | |
| @@ -1,4 +1,13 @@ | |
| -127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 | |
| -::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 | |
| +# | |
| +# This file is managed by Chef, using the hostsfile cookbook. | |
| +# Editing this file by hand is highly discouraged! | |
| +# | |
| +# Comments containing an @ sign should not be modified or else | |
| +# hostsfile will be unable to guarantee relative priority in | |
| +# future Chef runs! | |
| +# | |
| +127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 | |
| +10.194.9.72 ip-10-194-9-72 | |
| +::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 | |
| - restore selinux security context | |
| - Create hostsfile_entry[10.194.9.72] | |
| Recipe: chef-server-12::default | |
| * directory[/etc/opscode] action create | |
| - create new directory /etc/opscode | |
| - restore selinux security context | |
| * chef_ingredient[chef-server] action install | |
| Recipe: <Dynamically Defined Resource> | |
| * chef_gem[mixlib-install] action install | |
| - install version ~> 1.0 of package mixlib-install | |
| - Download chef-server package from https://packages.chef.io/stable/el/7/chef-server-core-12.7.0-1.el7.x86_64.rpm | |
| * ruby_block[stop chef run] action nothing (skipped due to action :nothing) | |
| * remote_file[/var/chef/cache/chef-server-core-12.7.0-1.el7.x86_64.rpm] action create | |
| - create new file /var/chef/cache/chef-server-core-12.7.0-1.el7.x86_64.rpm | |
| - update content in file /var/chef/cache/chef-server-core-12.7.0-1.el7.x86_64.rpm from none to ca3e54 | |
| (file sizes exceed 10000000 bytes, diff output suppressed) | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * yum_package[chef-server] action install | |
| - install version 12.7.0-1.el7 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 2ecc48 | |
| --- /etc/opscode/chef-server.rb 2016-06-23 16:19:32.562991139 -0400 | |
| +++ /etc/opscode/.chef-chef-server.rb20160623-10283-1ep0mmv 2016-06-23 16:19:33.103983593 -0400 | |
| @@ -1 +1,7 @@ | |
| +topology 'standalone' | |
| +api_fqdn '10.194.9.72' | |
| +nginx['server_name'] = '10.194.9.72' | |
| + | |
| + | |
| + | |
| - change mode from '0640' to '0644' | |
| - restore selinux security context | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * chef_ingredient[manage] action install | |
| - Download manage package from https://packages.chef.io/stable/el/7/chef-manage-2.4.0-1.el7.x86_64.rpm | |
| * ruby_block[stop chef run] action nothing (skipped due to action :nothing) | |
| * remote_file[/var/chef/cache/chef-manage-2.4.0-1.el7.x86_64.rpm] action create | |
| - create new file /var/chef/cache/chef-manage-2.4.0-1.el7.x86_64.rpm | |
| - update content in file /var/chef/cache/chef-manage-2.4.0-1.el7.x86_64.rpm from none to 1b136b | |
| (file sizes exceed 10000000 bytes, diff output suppressed) | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * yum_package[manage] action install | |
| - install version 2.4.0-1.el7 of package chef-manage | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * ingredient_config[manage] action render | |
| * directory[/etc/chef-manage] action create | |
| - create new directory /etc/chef-manage | |
| - restore selinux security context | |
| * file[/etc/chef-manage/manage.rb] action create | |
| - create new file /etc/chef-manage/manage.rb | |
| - update content in file /etc/chef-manage/manage.rb from none to e3b0c4 | |
| (no diff) | |
| - restore selinux security context | |
| * chef_ingredient[manage] action reconfigure | |
| * ingredient_config[manage] action render (skipped due to not_if) | |
| * directory[/var/opt/chef-manage] action create | |
| - create new directory /var/opt/chef-manage | |
| - restore selinux security context | |
| * file[/var/opt/chef-manage/.license.accepted] action touch | |
| - create new file /var/opt/chef-manage/.license.accepted | |
| - restore selinux security context | |
| - update utime on file /var/opt/chef-manage/.license.accepted | |
| * execute[chef-manage-reconfigure] action run | |
| - execute chef-manage-ctl reconfigure | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * chef_ingredient[reporting] action install | |
| - Download reporting package from https://packages.chef.io/stable/el/7/opscode-reporting-1.6.0-1.el7.x86_64.rpm | |
| * ruby_block[stop chef run] action nothing (skipped due to action :nothing) | |
| * remote_file[/var/chef/cache/opscode-reporting-1.6.0-1.el7.x86_64.rpm] action create | |
| - create new file /var/chef/cache/opscode-reporting-1.6.0-1.el7.x86_64.rpm | |
| - update content in file /var/chef/cache/opscode-reporting-1.6.0-1.el7.x86_64.rpm from none to f39d97 | |
| (file sizes exceed 10000000 bytes, diff output suppressed) | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * yum_package[reporting] action install | |
| - install version 1.6.0-1.el7 of package opscode-reporting | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * ingredient_config[reporting] action render | |
| * directory[/etc/opscode-reporting] action create | |
| - create new directory /etc/opscode-reporting | |
| - restore selinux security context | |
| * 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) | |
| - restore selinux security context | |
| * chef_ingredient[reporting] action reconfigure | |
| * ingredient_config[reporting] action render (skipped due to not_if) | |
| * directory[/var/opt/opscode-reporting] action create | |
| - create new directory /var/opt/opscode-reporting | |
| - restore selinux security context | |
| * file[/var/opt/opscode-reporting/.license.accepted] action touch | |
| - create new file /var/opt/opscode-reporting/.license.accepted | |
| - restore selinux security context | |
| - update utime on file /var/opt/opscode-reporting/.license.accepted | |
| * execute[opscode-reporting-reconfigure] action run | |
| - execute opscode-reporting-ctl reconfigure | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * chef_ingredient[push-jobs-server] action install | |
| - Download push-jobs-server package from https://packages.chef.io/stable/el/6/opscode-push-jobs-server-1.1.6-1.x86_64.rpm | |
| * ruby_block[stop chef run] action nothing (skipped due to action :nothing) | |
| * remote_file[/var/chef/cache/opscode-push-jobs-server-1.1.6-1.x86_64.rpm] action create | |
| - create new file /var/chef/cache/opscode-push-jobs-server-1.1.6-1.x86_64.rpm | |
| - update content in file /var/chef/cache/opscode-push-jobs-server-1.1.6-1.x86_64.rpm from none to 8377ef | |
| (file sizes exceed 10000000 bytes, diff output suppressed) | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * yum_package[push-jobs-server] action install | |
| - install version 1.1.6-1 of package opscode-push-jobs-server | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * ingredient_config[push-jobs-server] action render | |
| * directory[/etc/opscode-push-jobs-server] action create | |
| - create new directory /etc/opscode-push-jobs-server | |
| - restore selinux security context | |
| * 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) | |
| - restore selinux security context | |
| * chef_ingredient[push-jobs-server] action reconfigure | |
| * ingredient_config[push-jobs-server] action render (skipped due to not_if) | |
| * execute[opscode-push-jobs-server-reconfigure] action run | |
| - execute opscode-push-jobs-server-ctl reconfigure | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * 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 sensitive resource | |
| * execute[Create aws Organization] action run | |
| - execute chef-server-ctl org-create aws "Chef Continuous Delivery" -a delivery > /tmp/validator.pem | |
| * execute[Associate Delivery User to aws Organization] action run | |
| - execute chef-server-ctl org-user-add aws delivery -a | |
| * ruby_block[upload delivery key] action nothing (skipped due to action :nothing) | |
| Recipe: chef-server-12::default | |
| * chef_ingredient[reporting] action reconfigure | |
| * ingredient_config[reporting] action render (skipped due to not_if) | |
| * directory[/var/opt/opscode-reporting] action create (up to date) | |
| * file[/var/opt/opscode-reporting/.license.accepted] action touch | |
| - update utime on file /var/opt/opscode-reporting/.license.accepted | |
| * execute[opscode-reporting-reconfigure] action run | |
| - execute opscode-reporting-ctl reconfigure | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 61/80 resources updated in 18 minutes 12 seconds | |
| - run 'chef-client -c /etc/chef/client.rb -l auto' on chef-server-aws | |
| * 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/10.194.9.72.crt on chef-server-aws to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.9.72.crt | |
| * machine_file[/tmp/validator.pem] action download | |
| - download file /tmp/validator.pem on chef-server-aws to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/validator.pem | |
| * machine_file[/tmp/delivery.pem] action download | |
| - download file /tmp/delivery.pem on chef-server-aws to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/delivery.pem | |
| * file[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/delivery.pem] action create (up to date) | |
| * template[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/knife.rb] action create | |
| - create new file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/knife.rb | |
| - update content in file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/knife.rb from none to 9e43f6 | |
| --- /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/knife.rb 2016-06-23 16:33:06.000000000 -0400 | |
| +++ /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/.chef-knife.rb20160623-62967-12dd18g 2016-06-23 16:33:06.000000000 -0400 | |
| @@ -1 +1,6 @@ | |
| +node_name 'delivery' | |
| +chef_server_url 'https://10.194.9.72/organizations/aws' | |
| +client_key '/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/delivery.pem' | |
| +cookbook_path '/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/local-mode-cache/cache/cookbooks' | |
| +trusted_certs_dir '/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs' | |
| * ruby_block[upload delivery cookbooks] action runUploading apt [4.0.1] | |
| Uploading build-essential [6.0.0] | |
| Uploading chef-ingredient [0.18.5] | |
| Uploading chef-server-12 [0.1.14] | |
| Uploading chef-splunk [1.5.0] | |
| Uploading chef-sugar [3.3.0] | |
| Uploading chef-vault [1.3.3] | |
| Uploading chef_handler [1.4.0] | |
| Uploading compat_resource [12.10.6] | |
| Uploading delivery-base [0.2.2] | |
| Uploading delivery-cluster [0.6.13] | |
| Uploading delivery_build [0.4.28] | |
| Uploading dmg [2.4.0] | |
| Uploading git [4.5.0] | |
| Uploading hostsfile [2.4.5] | |
| Uploading mingw [1.2.0] | |
| Uploading packagecloud [0.2.3] | |
| Uploading push-jobs [3.2.0] | |
| Uploading runit [1.7.7] | |
| Uploading seven_zip [2.0.1] | |
| Uploading windows [1.44.0] | |
| Uploading yum [3.11.0] | |
| Uploading yum-epel [0.7.0] | |
| Uploaded all cookbooks. | |
| - execute the ruby block upload delivery cookbooks | |
| Recipe: delivery-cluster::setup_delivery_server | |
| * file[/Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/encrypted_data_bag_secret] action create | |
| - create new file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/encrypted_data_bag_secret | |
| - update content in file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/encrypted_data_bag_secret from none to e83039 | |
| - suppressed sensitive resource | |
| - change mode from '' to '0644' | |
| * execute[builder ssh key] action run | |
| - execute ssh-keygen -t rsa -N '' -b 2048 -f /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/builder_key | |
| * chef_data_bag[keys] action create | |
| - create data bag keys at https://10.194.9.72/organizations/aws | |
| * chef_data_bag_item[delivery_builder_keys] action create | |
| - create data bag item delivery_builder_keys at https://10.194.9.72/organizations/aws | |
| - add builder_key | |
| - add delivery_pem | |
| * machine[delivery-server-aws] action converge | |
| - Create delivery-server-aws with AMI ami-775e4f16 in us-west-2 | |
| - create node delivery-server-aws at https://10.194.9.72/organizations/aws | |
| - add normal.tags = nil | |
| - add normal.chef_provisioning = {"reference"=>{"driver_version"=>"1.10.0", "allocated_at"=>"2016-06-23 20:34:12 UTC", "host_node"=>"https://10.194.9.72/organizations/aws/nodes/", "image_id"=>"ami-775e4f16", "instance_id"=>"i-bdac6712", "key_name"=>"afiune", "ssh_username"=>"ec2-user", "transport_address_location"=>:private_ip}, "driver_url"=>"aws"} | |
| - waiting for delivery-server-aws (i-bdac6712 on aws) to become ready ... | |
| - been waiting 0/120 -- sleeping 10 seconds for delivery-server-aws (i-bdac6712 on aws) to become ready ... | |
| - been waiting 10/120 -- sleeping 10 seconds for delivery-server-aws (i-bdac6712 on aws) to become ready ... | |
| - been waiting 20/120 -- sleeping 10 seconds for delivery-server-aws (i-bdac6712 on aws) to become ready ... | |
| - waiting for delivery-server-aws (i-bdac6712 on aws) to be connectable (transport up and running) ... | |
| - been waiting 0/120 -- sleeping 10 seconds for delivery-server-aws (i-bdac6712 on aws) to become connectable ... | |
| - been waiting 10/120 -- sleeping 10 seconds for delivery-server-aws (i-bdac6712 on aws) to become connectable ... | |
| - been waiting 20/120 -- sleeping 10 seconds for delivery-server-aws (i-bdac6712 on aws) to become connectable ...[2016-06-23T16:35:20-04:00] ERROR: Unable to download /etc/chef/client.pem to /tmp/client.pem.811968235 on ec2-user@10.194.9.222 -- Error: command 'cp /etc/chef/client.pem /tmp/client.pem.811968235' exited with code 1. | |
| [2016-06-23T16:35:20-04:00] WARN: Unable to clean up /tmp/client.pem.811968235 on ec2-user@10.194.9.222 -- Error: command 'rm /tmp/client.pem.811968235' exited with code 1. | |
| - generate private key (2048 bits) | |
| - create directory /etc/chef on delivery-server-aws | |
| - write file /etc/chef/client.pem on delivery-server-aws | |
| - create client delivery-server-aws at clients | |
| - add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAockUZ8czE6T8fNb4mrh+\n5rE/LA/wMk5FdRMhv5iMfhlTJk3F0yRB6A5UpeB1iLzJwrDC6U7k/Wie9I7LXVJk\niAKGlQXcLvC560qKo6SxzX7Hq7Wv9cQDXH0TGtaEPwwD4e3j/Hyy+6+FMSchB7yP\nOaHqu00LR9SaXNmRJ8sVTtcwGq/04q4ZrXivv5hCVs8dgK8WqFQNphlRW9MBauYs\nMGhgYgtzhs/Da54JJZSrV2kupWYEbnE+3vv7nINJvXspoiqeewmAEQXgbfLvoJpp\nTXP1y4ywAHI1QeC8UgNAZv4iWdh2YAV9wTtByjwvbntoOhFagvWtMQs60scYwrhr\nCQIDAQAB\n-----END PUBLIC KEY-----\n" | |
| - Add delivery-server-aws to client read ACLs | |
| - Add delivery-server-aws to client update ACLs | |
| - create directory /etc/chef/ohai/hints on delivery-server-aws | |
| - write file /etc/chef/ohai/hints/ec2.json on delivery-server-aws | |
| - write file /etc/chef/client.rb on delivery-server-aws | |
| - write file /install.sh on delivery-server-aws | |
| - change mode of /install.sh on delivery-server-aws from 640 to 755 | |
| - run 'sh -c /install.sh' on delivery-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.9.72.crt to /etc/chef/trusted_certs/10.194.9.72.crt on delivery-server-aws | |
| [delivery-server-aws] Starting Chef Client, version 12.11.18 | |
| resolving cookbooks for run list: [] | |
| Synchronizing Cookbooks: | |
| Installing Cookbook Gems: | |
| Compiling Cookbooks... | |
| [2016-06-23T16:36:11-04:00] WARN: Node delivery-server-aws has an empty run list. | |
| Converging 0 resources | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 0/0 resources updated in 01 seconds | |
| - run 'chef-client -c /etc/chef/client.rb -l auto' on delivery-server-aws | |
| * machine_execute[Create "/var/opt/delivery/license" directory on Delivery Server] action run[2016-06-23T16:36:12-04:00] WARN: Class Chef::Provider::MachineExecute does not declare 'provides :machine_execute'. | |
| [2016-06-23T16:36:12-04:00] WARN: This will no longer work in Chef 13: you must use 'provides' to use the resource's DSL. | |
| - run 'mkdir -p /var/opt/delivery/license' on delivery-server-aws | |
| * machine_file[/var/opt/delivery/license/delivery.license] action upload | |
| - upload file /Users/salimafiune/chef/delivery/delivery-licenses/delivery-dell-sw.license to /var/opt/delivery/license/delivery.license on delivery-server-aws | |
| * machine[delivery-server-aws] action converge | |
| - update node delivery-server-aws at https://10.194.9.72/organizations/aws | |
| - add normal.delivery-cluster = {"accept_license"=>true, "driver"=>"aws", "aws"=>{"key_name"=>"afiune", "ssh_username"=>"ec2-user", "security_group_ids"=>"sg-cbacf8ae", "image_id"=>"ami-775e4f16", "subnet_id"=>"subnet-19ac017c", "bootstrap_proxy"=>nil, "chef_config"=>nil, "chef_version"=>nil, "use_private_ip_for_ssh"=>true, "install_sh_path"=>"/install.sh"}, "ssh"=>{"key_file"=>nil, "prefix"=>nil, "ssh_username"=>nil, "bootstrap_proxy"=>nil, "chef_config"=>nil, "chef_version"=>nil, "use_private_ip_for_ssh"=>false}, "vagrant"=>{"key_file"=>nil, "prefix"=>nil, "ssh_username"=>nil, "vm_box"=>nil, "network"=>nil, "chef_config"=>nil, "chef_version"=>nil}, "Vagrant"=>{"image_url"=>nil, "vm_memory"=>nil, "vm_cpus"=>nil}, "azure"=>{"ssh_username"=>nil, "use_private_ip_for_ssh"=>false}, "id"=>"aws", "common_cluster_recipes"=>[], "trusted_certs"=>{}, "delivery"=>{"license_file"=>"/Users/salimafiune/chef/delivery/delivery-licenses/delivery-dell-sw.license", "hostname"=>"delivery-server-aws", "fqdn"=>"10.194.9.222", "chef_server"=>"https://10.194.9.72/organizations/aws", "flavor"=>"c3.xlarge", "enterprise"=>"aws", "recipes"=>[], "attributes"=>{}, "ldap"=>{}, "config"=>nil, "version"=>"latest", "release-channel"=>"current", "insights"=>{"enable"=>true}, "elasticsearch"=>{"urls"=>nil}, "disaster_recovery"=>{"enable"=>false}, "primary"=>nil, "standby"=>nil, "dr"=>{"enable"=>true}}, "insights"=>{"rabbitmq"=>{"vip"=>nil, "vhost"=>"/insights", "exchange"=>"insights", "port"=>"5672", "user"=>"insights", "password"=>"chefrocks"}}, "chef-server"=>{"hostname"=>"chef-server-aws", "fqdn"=>nil, "organization"=>"aws", "flavor"=>"c3.xlarge", "existing"=>false, "recipes"=>[], "attributes"=>{}, "delivery_password"=>nil, "enable-reporting"=>true, "aws_tags"=>{"cool_tag"=>"awesomeness", "pretty_bad"=>"uwful"}}, "analytics"=>{"hostname"=>nil, "fqdn"=>nil, "features"=>"false", "flavor"=>"t2.medium", "attributes"=>{}}, "splunk"=>{"hostname_prefix"=>nil, "username"=>"admin", "password"=>nil, "flavor"=>"c3.large"}, "supermarket"=>nil, "builders"=>{"hostname_prefix"=>"build-node-aws", "count"=>1, "flavor"=>"c3.large", "additional_run_list"=>[], "attributes"=>{}, "delivery-cli"=>{}, "chefdk_version"=>nil, "1"=>{"hostname"=>"build-node-aws-1"}}} | |
| - update run_list from [] to ["recipe[delivery-cluster::pkg_repo_management]", "recipe[delivery-cluster::delivery]"] | |
| - run 'sh -c /install.sh' on delivery-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/delivery.pem to /etc/delivery/delivery.pem on delivery-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/builder_key to /etc/delivery/builder_key on delivery-server-aws | |
| - upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/builder_key.pub to /etc/delivery/builder_key.pub on delivery-server-aws | |
| [delivery-server-aws] Starting Chef Client, version 12.11.18 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "delivery-cluster::delivery"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster (0.6.13) | |
| - chef-server-12 (0.1.14) | |
| - chef-ingredient (0.18.5) | |
| - hostsfile (2.4.5) | |
| - git (4.5.0) | |
| - build-essential (6.0.0) | |
| - seven_zip (2.0.1) | |
| - windows (1.44.0) | |
| - chef_handler (1.4.0) | |
| - mingw (1.2.0) | |
| - compat_resource (12.10.6) | |
| - dmg (2.4.0) | |
| - yum-epel (0.7.0) | |
| - yum (3.11.0) | |
| - apt (4.0.1) | |
| - delivery_build (0.4.28) | |
| - chef-sugar (3.3.0) | |
| - delivery-base (0.2.2) | |
| - push-jobs (3.2.0) | |
| - runit (1.7.7) | |
| - packagecloud (0.2.3) | |
| - chef-splunk (1.5.0) | |
| - chef-vault (1.3.3) | |
| Installing Cookbook Gems: | |
| Compiling Cookbooks... | |
| [2016-06-23T16:37:09-04:00] WARN: Chef::Provider::AptRepository already exists! Cannot create deprecation class for LWRP provider apt_repository from cookbook apt | |
| [2016-06-23T16:37:09-04:00] WARN: AptRepository already exists! Deprecation class overwrites Custom resource apt_repository from cookbook apt | |
| Recipe: delivery-cluster::pkg_repo_management | |
| * execute[yum clean all] action run | |
| - execute yum clean all | |
| Converging 6 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 162499 to cf2149 | |
| --- /etc/yum.conf 2015-09-11 04:44:45.000000000 -0400 | |
| +++ /etc/.chef-yum.conf20160623-10231-giy93o 2016-06-23 16:37:10.429898682 -0400 | |
| @@ -1,24 +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 | |
| exactarch=1 | |
| -obsoletes=1 | |
| gpgcheck=1 | |
| -plugins=1 | |
| installonly_limit=3 | |
| - | |
| -# 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 | |
| +keepcache=0 | |
| +localpkg_gpgcheck=0 | |
| +logfile=/var/log/yum.log | |
| +obsoletes=1 | |
| +plugins=1 | |
| - restore selinux security context | |
| Recipe: delivery-cluster::pkg_repo_management | |
| * execute[yum clean all] action nothing (skipped due to action :nothing) | |
| Recipe: delivery-cluster::delivery | |
| * chef_ingredient[delivery] action upgrade | |
| Recipe: <Dynamically Defined Resource> | |
| * chef_gem[mixlib-install] action install | |
| - install version ~> 1.0 of package mixlib-install | |
| - Download delivery package from https://packages.chef.io/current/el/7/delivery-0.4.499-1.el7.x86_64.rpm | |
| * ruby_block[stop chef run] action nothing (skipped due to action :nothing) | |
| * remote_file[/var/chef/cache/delivery-0.4.499-1.el7.x86_64.rpm] action create | |
| - create new file /var/chef/cache/delivery-0.4.499-1.el7.x86_64.rpm | |
| - update content in file /var/chef/cache/delivery-0.4.499-1.el7.x86_64.rpm from none to 55971c | |
| (file sizes exceed 10000000 bytes, diff output suppressed) | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * yum_package[delivery] action upgrade | |
| - upgrade package delivery from uninstalled to 0.4.499-1.el7 | |
| Recipe: delivery-cluster::delivery | |
| * 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 d89bc8 | |
| --- /etc/delivery/delivery.rb 2016-06-23 16:40:18.038398063 -0400 | |
| +++ /etc/delivery/.chef-delivery.rb20160623-10231-jmxb4d 2016-06-23 16:40:18.038398063 -0400 | |
| @@ -1 +1,18 @@ | |
| +delivery_fqdn "10.194.9.222" | |
| + | |
| +delivery['chef_username'] = "delivery" | |
| +delivery['chef_private_key'] = "/etc/delivery/delivery.pem" | |
| +delivery['chef_server'] = "https://10.194.9.72/organizations/aws" | |
| + | |
| +delivery['default_search'] = "((recipes:delivery_build OR recipes:delivery_build\\\\:\\\\:default) AND chef_environment:_default)" | |
| + | |
| + | |
| +insights['enable'] = true | |
| +rabbitmq['vhost'] = '/insights' | |
| +rabbitmq['exchange'] = 'insights' | |
| +rabbitmq['user'] = 'insights' | |
| +rabbitmq['password'] = 'chefrocks' | |
| +rabbitmq['port'] = '5672' | |
| + | |
| + | |
| - restore selinux security context | |
| * execute[reconfigure delivery] action run | |
| - execute /opt/delivery/bin/delivery-ctl reconfigure | |
| * 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, 10/14 resources updated in 06 minutes 17 seconds | |
| - run 'chef-client -c /etc/chef/client.rb -l auto' on delivery-server-aws | |
| * machine_execute[Chown '/etc/delivery/delivery.pem' to 'delivery' user] action run[2016-06-23T16:43:18-04:00] WARN: Class Chef::Provider::MachineExecute does not declare 'provides :machine_execute'. | |
| [2016-06-23T16:43:18-04:00] WARN: This will no longer work in Chef 13: you must use 'provides' to use the resource's DSL. | |
| - run 'chown delivery /etc/delivery/delivery.pem' on delivery-server-aws | |
| * machine_execute[Chown '/etc/delivery/builder_key' to 'delivery' user] action run[2016-06-23T16:43:27-04:00] WARN: Class Chef::Provider::MachineExecute does not declare 'provides :machine_execute'. | |
| [2016-06-23T16:43:27-04:00] WARN: This will no longer work in Chef 13: you must use 'provides' to use the resource's DSL. | |
| - run 'chown delivery /etc/delivery/builder_key' on delivery-server-aws | |
| * machine_execute[Chown '/etc/delivery/builder_key.pub' to 'delivery' user] action run[2016-06-23T16:43:31-04:00] WARN: Class Chef::Provider::MachineExecute does not declare 'provides :machine_execute'. | |
| [2016-06-23T16:43:31-04:00] WARN: This will no longer work in Chef 13: you must use 'provides' to use the resource's DSL. | |
| - run 'chown delivery /etc/delivery/builder_key.pub' on delivery-server-aws | |
| * machine_file[delivery-server-cert] action download | |
| - download file /var/opt/delivery/nginx/ca/10.194.9.222.crt on delivery-server-aws to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.9.222.crt | |
| * machine_file[delivery-server-cert-key] action download | |
| - download file /var/opt/delivery/nginx/ca/10.194.9.222.key on delivery-server-aws to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.9.222.key | |
| * machine_execute[Creating Enterprise] action run[2016-06-23T16:43:46-04:00] WARN: Class Chef::Provider::MachineExecute does not declare 'provides :machine_execute'. | |
| [2016-06-23T16:43:46-04:00] WARN: This will no longer work in Chef 13: you must use 'provides' to use the resource's DSL. | |
| - run 'sudo -E delivery-ctl list-enterprises | grep -w ^aws; [ $? -ne 0 ] && sudo -E delivery-ctl create-enterprise aws --ssh-pub-key-file=/etc/delivery/builder_key.pub > /tmp/aws.creds || echo 1' on delivery-server-aws | |
| * machine_file[/tmp/aws.creds] action download | |
| - download file /tmp/aws.creds on delivery-server-aws to /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/aws.creds | |
| * ruby_block[print-delivery-credentials] action runCreated enterprise: aws | |
| Admin username: admin | |
| Admin password: G1uRUDOVSwsaZ2wODmJTt/cmKTpQxz9EraU= | |
| Builder Password: JsOO7iiln/BgXFjCaJJmrqRS2D0cOPePYb8= | |
| Web login: https://10.194.9.222/e/aws/ | |
| - execute the ruby block print-delivery-credentials | |
| * ruby_block[Activate Insights] action run | |
| - execute the ruby block Activate Insights | |
| * machine[chef-server-aws] action converge | |
| - update node chef-server-aws at chefzero://localhost:8890 | |
| - add normal.chef-server-12.insights = {"rabbitmq"=>{"vip"=>"10.194.9.222", "vhost"=>"/insights", "exchange"=>"insights", "port"=>"5672", "user"=>"insights", "password"=>"chefrocks"}} | |
| - run 'sh -c /install.sh' on chef-server-aws | |
| [chef-server-aws] Starting Chef Client, version 12.11.18 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "chef-server-12"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster (0.6.13) | |
| - chef-server-12 (0.1.14) | |
| - chef-ingredient (0.18.5) | |
| - git (4.5.0) | |
| - apt (4.0.1) | |
| - yum (3.11.0) | |
| - delivery_build (0.4.28) | |
| - chef-splunk (1.5.0) | |
| - hostsfile (2.4.5) | |
| - build-essential (6.0.0) | |
| - dmg (2.4.0) | |
| - windows (1.44.0) | |
| - yum-epel (0.7.0) | |
| - compat_resource (12.10.6) | |
| - chef-sugar (3.3.0) | |
| - delivery-base (0.2.2) | |
| - chef-vault (1.3.3) | |
| - seven_zip (2.0.1) | |
| - mingw (1.2.0) | |
| - chef_handler (1.4.0) | |
| - push-jobs (3.2.0) | |
| - runit (1.7.7) | |
| - packagecloud (0.2.3) | |
| Installing Cookbook Gems: | |
| Compiling Cookbooks... | |
| [2016-06-23T16:44:38-04:00] WARN: Chef::Provider::AptRepository already exists! Cannot create deprecation class for LWRP provider apt_repository from cookbook apt | |
| [2016-06-23T16:44:38-04:00] WARN: AptRepository already exists! Deprecation class overwrites Custom resource apt_repository from cookbook apt | |
| Recipe: delivery-cluster::pkg_repo_management | |
| * execute[yum clean all] action run | |
| - execute yum clean all | |
| Converging 16 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: chef-server-12::default | |
| * hostsfile_entry[10.194.9.72] action create (skipped due to not_if) | |
| * directory[/etc/opscode] action create (up to date) | |
| * chef_ingredient[chef-server] action install | |
| Recipe: <Dynamically Defined Resource> | |
| * chef_gem[mixlib-install] action install (up to date) | |
| - Download chef-server package from https://packages.chef.io/stable/el/7/chef-server-core-12.7.0-1.el7.x86_64.rpm | |
| * ruby_block[stop chef run] action nothing (skipped due to action :nothing) | |
| * remote_file[/var/chef/cache/chef-server-core-12.7.0-1.el7.x86_64.rpm] action create (up to date) | |
| * yum_package[chef-server] action install (up to date) | |
| Recipe: chef-server-12::default | |
| * template[/etc/opscode/chef-server.rb] action create | |
| - update content in file /etc/opscode/chef-server.rb from 2ecc48 to dd6158 | |
| --- /etc/opscode/chef-server.rb 2016-06-23 16:19:33.103983593 -0400 | |
| +++ /etc/opscode/.chef-chef-server.rb20160623-24808-1cf4fyh 2016-06-23 16:44:42.970549686 -0400 | |
| @@ -3,5 +3,13 @@ | |
| nginx['server_name'] = '10.194.9.72' | |
| +# Insights Configuration | |
| +external_rabbitmq['enable'] = true | |
| +external_rabbitmq['actions_vhost'] = '/insights' | |
| +external_rabbitmq['actions_exchange'] = 'insights' | |
| +external_rabbitmq['vip'] = '10.194.9.222' | |
| +external_rabbitmq['node_port'] = '5672' | |
| +external_rabbitmq['actions_user'] = 'insights' | |
| +external_rabbitmq['actions_password'] = 'chefrocks' | |
| - change mode from '0640' to '0644' | |
| - restore selinux security context | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * chef_ingredient[manage] action install | |
| - Download manage package from https://packages.chef.io/stable/el/7/chef-manage-2.4.0-1.el7.x86_64.rpm | |
| * ruby_block[stop chef run] action nothing (skipped due to action :nothing) | |
| * remote_file[/var/chef/cache/chef-manage-2.4.0-1.el7.x86_64.rpm] action create (up to date) | |
| * yum_package[manage] action install (up to date) | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * ingredient_config[manage] action render | |
| * directory[/etc/chef-manage] action create (up to date) | |
| * file[/etc/chef-manage/manage.rb] action create (up to date) | |
| (up to date) | |
| * chef_ingredient[reporting] action install | |
| - Download reporting package from https://packages.chef.io/stable/el/7/opscode-reporting-1.6.0-1.el7.x86_64.rpm | |
| * ruby_block[stop chef run] action nothing (skipped due to action :nothing) | |
| * remote_file[/var/chef/cache/opscode-reporting-1.6.0-1.el7.x86_64.rpm] action create (up to date) | |
| * yum_package[reporting] action install (up to date) | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * 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-jobs-server] action install | |
| - Download push-jobs-server package from https://packages.chef.io/stable/el/6/opscode-push-jobs-server-1.1.6-1.x86_64.rpm | |
| * ruby_block[stop chef run] action nothing (skipped due to action :nothing) | |
| * remote_file[/var/chef/cache/opscode-push-jobs-server-1.1.6-1.x86_64.rpm] action create (up to date) | |
| * yum_package[push-jobs-server] action install (up to date) | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| * ingredient_config[push-jobs-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 aws Organization] action run (skipped due to not_if) | |
| * execute[Associate Delivery User to aws Organization] action run | |
| - execute chef-server-ctl org-user-add aws delivery -a | |
| * ruby_block[upload delivery key] action nothing (skipped due to action :nothing) | |
| Recipe: chef-server-12::default | |
| * chef_ingredient[reporting] action reconfigure | |
| * ingredient_config[reporting] action render (skipped due to not_if) | |
| * directory[/var/opt/opscode-reporting] action create (up to date) | |
| * file[/var/opt/opscode-reporting/.license.accepted] action touch | |
| - update utime on file /var/opt/opscode-reporting/.license.accepted | |
| * execute[opscode-reporting-reconfigure] action run | |
| - execute opscode-reporting-ctl reconfigure | |
| * chef_ingredient[chef-server] action reconfigure | |
| * ingredient_config[chef-server] action render (skipped due to not_if) | |
| * execute[chef-server-core-reconfigure] action run | |
| - execute chef-server-ctl reconfigure | |
| Running handlers: | |
| Running handlers complete | |
| Chef Client finished, 20/57 resources updated in 02 minutes 33 seconds | |
| - run 'chef-client -c /etc/chef/client.rb -l auto' on chef-server-aws | |
| * ruby_block[Print Insights Config] action run (skipped due to only_if) | |
| Recipe: delivery-cluster::setup_delivery_builders | |
| * chef_role[delivery_builders] action create | |
| - create role delivery_builders at https://10.194.9.72/organizations/aws | |
| - update description from "" to "Base Role for the Delivery Build Nodes" | |
| - update run_list from [] to ["recipe[push-jobs]", "recipe[delivery_build]"] | |
| * machine_batch[1-build-nodes] action converge | |
| - creating machine build-node-aws-1 on aws | |
| - instance_type: "c3.large" | |
| - key_name: "afiune" | |
| - security_group_ids: ["sg-cbacf8ae"] | |
| - subnet_id: "subnet-19ac017c" | |
| - max_count: 1 | |
| - min_count: 1 | |
| - image_id: "ami-775e4f16" | |
| - machine build-node-aws-1 created as i-d3a76c7c on aws | |
| - [build-node-aws-1] create node build-node-aws-1 at https://10.194.9.72/organizations/aws | |
| - [build-node-aws-1] add normal.delivery_build = {"trusted_certs"=>{"Delivery Server Cert"=>"/etc/chef/trusted_certs/10.194.9.222.crt", "Chef Server Cert"=>"/etc/chef/trusted_certs/10.194.9.72.crt"}} | |
| - [build-node-aws-1] add normal.tags = nil | |
| - [build-node-aws-1] add normal.chef_provisioning = {"reference"=>{"driver_version"=>"1.10.0", "allocated_at"=>"2016-06-23 20:47:07 UTC", "host_node"=>"https://10.194.9.72/organizations/aws/nodes/", "image_id"=>"ami-775e4f16", "instance_id"=>"i-d3a76c7c", "key_name"=>"afiune", "ssh_username"=>"ec2-user", "transport_address_location"=>:private_ip}, "driver_url"=>"aws"} | |
| - [build-node-aws-1] update run_list from [] to ["recipe[delivery-cluster::pkg_repo_management]", "role[delivery_builders]"] | |
| - [build-node-aws-1] waiting for build-node-aws-1 (i-d3a76c7c on aws) to become ready ... | |
| - [build-node-aws-1] been waiting 0/120 -- sleeping 10 seconds for build-node-aws-1 (i-d3a76c7c on aws) to become ready ... | |
| - [build-node-aws-1] been waiting 10/120 -- sleeping 10 seconds for build-node-aws-1 (i-d3a76c7c on aws) to become ready ... | |
| - [build-node-aws-1] been waiting 20/120 -- sleeping 10 seconds for build-node-aws-1 (i-d3a76c7c on aws) to become ready ... | |
| - [build-node-aws-1] waiting for build-node-aws-1 (i-d3a76c7c on aws) to be connectable (transport up and running) ... | |
| - [build-node-aws-1] been waiting 0/120 -- sleeping 10 seconds for build-node-aws-1 (i-d3a76c7c on aws) to become connectable ... | |
| - [build-node-aws-1] been waiting 10/120 -- sleeping 10 seconds for build-node-aws-1 (i-d3a76c7c on aws) to become connectable ... | |
| - [build-node-aws-1] been waiting 20/120 -- sleeping 10 seconds for build-node-aws-1 (i-d3a76c7c on aws) to become connectable ...[2016-06-23T16:48:16-04:00] ERROR: Unable to download /etc/chef/client.pem to /tmp/client.pem.3240991802 on ec2-user@10.194.9.234 -- Error: command 'cp /etc/chef/client.pem /tmp/client.pem.3240991802' exited with code 1. | |
| [2016-06-23T16:48:16-04:00] WARN: Unable to clean up /tmp/client.pem.3240991802 on ec2-user@10.194.9.234 -- Error: command 'rm /tmp/client.pem.3240991802' exited with code 1. | |
| - [build-node-aws-1] generate private key (2048 bits) | |
| - [build-node-aws-1] create directory /etc/chef on build-node-aws-1 | |
| - [build-node-aws-1] write file /etc/chef/client.pem on build-node-aws-1 | |
| - [build-node-aws-1] create client build-node-aws-1 at clients | |
| - [build-node-aws-1] add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm0TEy/FOVN67hnUb7PlJ\nFAxQdKFVHWDN14VWWA5hpAlm8oVEHSa+hwWWYZcFvoxHEs7LK9uMUAvNYQ6AFYyD\n4i2JFs6i81SjScQjpeN8Us1Mn8yBVIQ1LTy/+jN1K3un20F5Am3rRiAjK6n9DAW2\nwKiHoD3E9nE9XY/LAy55fC50uBh7axBk0ViR8h5oUnLEnye5gtMZ1N786UnU/92+\n1Dw8UQutK6rqRz+fe3FwwaoKC0WdT4C43iM/xA24EwPhhlFpad2LRcpyu4W47Ksi\n5EfhELm2ShLmve2dX4CHW5jUfhtuq5PYzeiNbsvCn6i6kenFglW1QKIp2v/6Bizb\nGwIDAQAB\n-----END PUBLIC KEY-----\n" | |
| - [build-node-aws-1] Add build-node-aws-1 to client read ACLs | |
| - [build-node-aws-1] Add build-node-aws-1 to client update ACLs | |
| - [build-node-aws-1] create directory /etc/chef/ohai/hints on build-node-aws-1 | |
| - [build-node-aws-1] write file /etc/chef/ohai/hints/ec2.json on build-node-aws-1 | |
| - [build-node-aws-1] write file /etc/chef/client.rb on build-node-aws-1 | |
| - [build-node-aws-1] write file /install.sh on build-node-aws-1 | |
| - [build-node-aws-1] change mode of /install.sh on build-node-aws-1 from 640 to 755 | |
| - [build-node-aws-1] run 'sh -c /install.sh' on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/../.chef/delivery-cluster-data-aws/encrypted_data_bag_secret to /etc/chef/encrypted_data_bag_secret on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.10.63.crt to /etc/chef/trusted_certs/10.194.10.63.crt on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.10.63.key to /etc/chef/trusted_certs/10.194.10.63.key on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.12.31.crt to /etc/chef/trusted_certs/10.194.12.31.crt on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.12.75.key to /etc/chef/trusted_certs/10.194.12.75.key on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.14.73.key to /etc/chef/trusted_certs/10.194.14.73.key on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.9.133.key to /etc/chef/trusted_certs/10.194.9.133.key on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.9.222.crt to /etc/chef/trusted_certs/10.194.9.222.crt on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.9.222.key to /etc/chef/trusted_certs/10.194.9.222.key on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.9.27.crt to /etc/chef/trusted_certs/10.194.9.27.crt on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/10.194.9.72.crt to /etc/chef/trusted_certs/10.194.9.72.crt on build-node-aws-1 | |
| - [build-node-aws-1] upload file /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/trusted_certs/192.168.33.33.crt to /etc/chef/trusted_certs/192.168.33.33.crt on build-node-aws-1 | |
| [build-node-aws-1] Starting Chef Client, version 12.11.18 | |
| resolving cookbooks for run list: ["delivery-cluster::pkg_repo_management", "push-jobs", "delivery_build"] | |
| Synchronizing Cookbooks: | |
| - delivery-cluster (0.6.13) | |
| - chef-server-12 (0.1.14) | |
| - chef-ingredient (0.18.5) | |
| - hostsfile (2.4.5) | |
| - git (4.5.0) | |
| - build-essential (6.0.0) | |
| - seven_zip (2.0.1) | |
| - windows (1.44.0) | |
| - chef_handler (1.4.0) | |
| - mingw (1.2.0) | |
| - compat_resource (12.10.6) | |
| - dmg (2.4.0) | |
| - yum-epel (0.7.0) | |
| - yum (3.11.0) | |
| - apt (4.0.1) | |
| - delivery_build (0.4.28) | |
| - chef-sugar (3.3.0) | |
| - delivery-base (0.2.2) | |
| - push-jobs (3.2.0) | |
| - runit (1.7.7) | |
| - packagecloud (0.2.3) | |
| - chef-splunk (1.5.0) | |
| - chef-vault (1.3.3) | |
| Installing Cookbook Gems: | |
| Compiling Cookbooks... | |
| [2016-06-23T16:49:40-04:00] WARN: Chef::Provider::AptRepository already exists! Cannot create deprecation class for LWRP provider apt_repository from cookbook apt | |
| [2016-06-23T16:49:40-04:00] WARN: AptRepository already exists! Deprecation class overwrites Custom resource apt_repository from cookbook apt | |
| 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.3.0 of package chef-sugar | |
| [2016-06-23T16:49:51-04:00] WARN: Cloning resource attributes for directory[/etc/chef] from prior resource (CHEF-3694) | |
| [2016-06-23T16:49:51-04:00] WARN: Previous directory[/etc/chef]: /var/chef/cache/cookbooks/push-jobs/recipes/config.rb:24:in `from_file' | |
| [2016-06-23T16:49:51-04:00] WARN: Current directory[/etc/chef]: /var/chef/cache/cookbooks/delivery_build/recipes/chef_client.rb:27:in `from_file' | |
| Recipe: delivery_build::chefdk | |
| * file[/root/.gemrc] action create | |
| - create new file /root/.gemrc | |
| - update content in file /root/.gemrc from none to f3140b | |
| --- /root/.gemrc 2016-06-23 16:49:51.255263407 -0400 | |
| +++ /root/.chef-.gemrc20160623-9986-15wjq5o 2016-06-23 16:49:51.254263390 -0400 | |
| @@ -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 | |
| Converging 47 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 162499 to cf2149 | |
| --- /etc/yum.conf 2015-09-11 04:44:45.000000000 -0400 | |
| +++ /etc/.chef-yum.conf20160623-9986-exh5y4 2016-06-23 16:49:51.374265364 -0400 | |
| @@ -1,24 +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 | |
| exactarch=1 | |
| -obsoletes=1 | |
| gpgcheck=1 | |
| -plugins=1 | |
| installonly_limit=3 | |
| - | |
| -# 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 | |
| +keepcache=0 | |
| +localpkg_gpgcheck=0 | |
| +logfile=/var/log/yum.log | |
| +obsoletes=1 | |
| +plugins=1 | |
| - restore selinux security context | |
| Recipe: delivery-cluster::pkg_repo_management | |
| * execute[yum clean all] action nothing (skipped due to action :nothing) | |
| Recipe: push-jobs::package | |
| * chef_ingredient[push-jobs-client] action install | |
| Recipe: <Dynamically Defined Resource> | |
| * chef_gem[mixlib-install] action install | |
| - install version ~> 1.0 of package mixlib-install | |
| - Download push-jobs-client package from https://packages.chef.io/stable/el/7/push-jobs-client-2.1.0-1.el7.x86_64.rpm | |
| * ruby_block[stop chef run] action nothing (skipped due to action :nothing) | |
| * remote_file[/var/chef/cache/push-jobs-client-2.1.0-1.el7.x86_64.rpm] action create | |
| - create new file /var/chef/cache/push-jobs-client-2.1.0-1.el7.x86_64.rpm | |
| - update content in file /var/chef/cache/push-jobs-client-2.1.0-1.el7.x86_64.rpm from none to eacf6a | |
| (file sizes exceed 10000000 bytes, diff output suppressed) | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * yum_package[push-jobs-client] action install | |
| - install version 2.1.0-1.el7 of package 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 8c2d56 | |
| --- /etc/chef/push-jobs-client.rb 2016-06-23 16:50:16.631694144 -0400 | |
| +++ /etc/chef/.chef-push-jobs-client.rb20160623-9986-1d1mspy 2016-06-23 16:50:16.630694124 -0400 | |
| @@ -1 +1,21 @@ | |
| +# Generated by Chef | |
| +# | |
| +# Local modifications will be overwritten! | |
| + | |
| +LC_ALL='en_US.UTF-8' | |
| + | |
| +# Chef server connect options | |
| +chef_server_url 'https://10.194.9.72/organizations/aws' | |
| +node_name 'build-node-aws-1' | |
| +client_key '/etc/chef/client.pem' | |
| +trusted_certs_dir '/etc/chef/trusted_certs' | |
| +verify_api_cert true | |
| +ssl_verify_mode :verify_peer | |
| +allow_unencrypted true | |
| + | |
| +# 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: push-jobs::service | |
| * push_jobs_service_systemd[push-jobs] action start[2016-06-23T16:50:16-04:00] WARN: Cloning resource attributes for service[chef-push-jobs-client] from prior resource (CHEF-3694) | |
| [2016-06-23T16:50:16-04:00] WARN: Previous service[chef-push-jobs-client]: /var/chef/cache/cookbooks/push-jobs/resources/service_systemd.rb:85:in `create_init' | |
| [2016-06-23T16:50:16-04:00] WARN: Current service[chef-push-jobs-client]: /var/chef/cache/cookbooks/push-jobs/resources/service_systemd.rb:39:in `block in class_from_file' | |
| * service[chef-push-jobs-client] action nothing (skipped due to action :nothing) | |
| * template[/etc/systemd/system/chef-push-jobs-client.service] action create | |
| - create new file /etc/systemd/system/chef-push-jobs-client.service | |
| - update content in file /etc/systemd/system/chef-push-jobs-client.service from none to 0a402b | |
| --- /etc/systemd/system/chef-push-jobs-client.service 2016-06-23 16:50:16.672694946 -0400 | |
| +++ /etc/systemd/system/.chef-chef-push-jobs-client.service20160623-9986-rka6tv 2016-06-23 16:50:16.672694946 -0400 | |
| @@ -1 +1,14 @@ | |
| +# Systemd unit file for Chef Push Jobs Client | |
| + | |
| +[Unit] | |
| +Description=Chef Push Jobs Client | |
| +After=syslog.target network.target | |
| + | |
| +[Service] | |
| +ExecStart=/opt/push-jobs-client/bin/pushy-client -l info -c /etc/chef/push-jobs-client.rb | |
| +SuccessExitStatus=3 | |
| +Restart=on-failure | |
| + | |
| +[Install] | |
| +WantedBy=multi-user.target | |
| - restore selinux security context | |
| * execute[reload_unit_file] action run | |
| - execute systemctl daemon-reload | |
| * service[chef-push-jobs-client] action restart | |
| - restart service service[chef-push-jobs-client] | |
| * execute[reload_unit_file] action nothing (skipped due to action :nothing) | |
| * service[chef-push-jobs-client] action start (up to date) | |
| * push_jobs_service_systemd[push-jobs] action enable[2016-06-23T16:50:16-04:00] WARN: Cloning resource attributes for service[chef-push-jobs-client] from prior resource (CHEF-3694) | |
| [2016-06-23T16:50:16-04:00] WARN: Previous service[chef-push-jobs-client]: /var/chef/cache/cookbooks/push-jobs/resources/service_systemd.rb:85:in `create_init' | |
| [2016-06-23T16:50:16-04:00] WARN: Current service[chef-push-jobs-client]: /var/chef/cache/cookbooks/push-jobs/resources/service_systemd.rb:72:in `block in class_from_file' | |
| * service[chef-push-jobs-client] action nothing (skipped due to action :nothing) | |
| * template[/etc/systemd/system/chef-push-jobs-client.service] action create (up to date) | |
| * execute[reload_unit_file] action nothing (skipped due to action :nothing) | |
| * service[chef-push-jobs-client] action enable | |
| - enable service service[chef-push-jobs-client] | |
| 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/10.194.10.63.crt] action create (up to date) | |
| * file[/etc/chef/trusted_certs/10.194.10.63.key] action create (up to date) | |
| * file[/etc/chef/trusted_certs/10.194.12.31.crt] action create (up to date) | |
| * file[/etc/chef/trusted_certs/10.194.12.75.key] action create (up to date) | |
| * file[/etc/chef/trusted_certs/10.194.14.73.key] action create (up to date) | |
| * file[/etc/chef/trusted_certs/10.194.9.133.key] action create (up to date) | |
| * file[/etc/chef/trusted_certs/10.194.9.222.crt] action create (up to date) | |
| * file[/etc/chef/trusted_certs/10.194.9.222.key] action create (up to date) | |
| * file[/etc/chef/trusted_certs/10.194.9.27.crt] action create (up to date) | |
| * file[/etc/chef/trusted_certs/10.194.9.72.crt] action create (up to date) | |
| * file[/etc/chef/trusted_certs/192.168.33.33.crt] action create (up to date) | |
| Recipe: delivery_build::_git | |
| * git_client[default] action install | |
| Recipe: build-essential::default | |
| * build_essential[install_packages] action install | |
| * yum_package[autoconf, bison, flex, gcc, gcc-c++, gettext, kernel-devel, make, m4, ncurses-devel, patch] action install | |
| - install version 2.69-11.el7 of package autoconf | |
| - install version 2.7-4.el7 of package bison | |
| - install version 2.5.37-3.el7 of package flex | |
| - install version 4.8.5-4.el7 of package gcc | |
| - install version 4.8.5-4.el7 of package gcc-c++ | |
| - install version 3.10.0-327.18.2.el7 of package kernel-devel | |
| - install version 1.4.16-10.el7 of package m4 | |
| - install version 5.9-13.20130511.el7 of package ncurses-devel | |
| - install version 2.7.1-8.el7 of package patch | |
| * yum_package[expat-devel] action install | |
| - install version 2.1.0-8.el7 of package expat-devel | |
| * yum_package[gettext-devel] action install | |
| - install version 0.18.2.1-4.el7 of package gettext-devel | |
| * yum_package[libcurl-devel] action install | |
| - install version 7.29.0-25.el7 of package libcurl-devel | |
| * yum_package[openssl-devel] action install | |
| - install version 1.0.1e-51.el7_2.5 of package openssl-devel | |
| * yum_package[perl-ExtUtils-MakeMaker] action install | |
| - install version 6.68-3.el7 of package perl-ExtUtils-MakeMaker | |
| * yum_package[zlib-devel] action install (up to date) | |
| * remote_file[/var/chef/cache/git-2.8.1.tar.gz] action create | |
| - create new file /var/chef/cache/git-2.8.1.tar.gz | |
| - update content in file /var/chef/cache/git-2.8.1.tar.gz from none to e08503 | |
| (new content is binary, diff output suppressed) | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * execute[Extracting and Building Git 2.8.1 from Source] action run | |
| - execute (mkdir git-2.8.1 && tar -zxf git-2.8.1.tar.gz -C git-2.8.1 --strip-components 1) | |
| (cd git-2.8.1 && make prefix=/usr/local install) | |
| 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 | |
| * chef_ingredient[chefdk] action upgrade | |
| - Download chefdk package from https://packages.chef.io/stable/el/7/chefdk-0.15.15-1.el7.x86_64.rpm | |
| * ruby_block[stop chef run] action nothing (skipped due to action :nothing) | |
| * remote_file[/var/chef/cache/chefdk-0.15.15-1.el7.x86_64.rpm] action create | |
| - create new file /var/chef/cache/chefdk-0.15.15-1.el7.x86_64.rpm | |
| - update content in file /var/chef/cache/chefdk-0.15.15-1.el7.x86_64.rpm from none to 4ec6ad | |
| (file sizes exceed 10000000 bytes, diff output suppressed) | |
| - change mode from '' to '0644' | |
| - restore selinux security context | |
| * yum_package[chefdk] action upgrade | |
| - upgrade package chefdk from uninstalled to 0.15.15-1.el7 | |
| * file[/root/.gemrc] action create (up to date) | |
| * gem_package[knife-supermarket] action install | |
| - install version 0.2.2 of package knife-supermarket | |
| 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 2016-06-23 16:55:52.867586222 -0400 | |
| +++ /var/opt/delivery/workspace/bin/.chef-git_ssh20160623-9986-1egzwnu 2016-06-23 16:55:52.867586222 -0400 | |
| @@ -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 ab6db9 | |
| --- /var/opt/delivery/workspace/bin/delivery-cmd 2016-06-23 16:55:52.922586642 -0400 | |
| +++ /var/opt/delivery/workspace/bin/.chef-delivery-cmd20160623-9986-10v7ppr 2016-06-23 16:55:52.922586642 -0400 | |
| @@ -1 +1,216 @@ | |
| +#!/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(Chef::Config.platform_specific_path("/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']].join(File::PATH_SEPARATOR), | |
| + '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)" | |
| + | |
| +# Borrowed from chef-cookbooks/jenkins; used to create a cleanly normalized URL | |
| +def uri_join(*parts) | |
| + parts = parts.compact.map(&URI.method(:escape)) | |
| + URI.parse(parts.join('/')).normalize.to_s | |
| +end | |
| + | |
| +# Borrowed from chef-cookbooks/omnibus; used to create a windows-safe file.join | |
| +def windows_safe_path_join(*args) | |
| + ::File.join(args).gsub(::File::SEPARATOR, ::File::ALT_SEPARATOR || File::SEPARATOR) | |
| +end | |
| + | |
| +compliance_json = windows_safe_path_join( | |
| + workspace_root, server.host, job_data['enterprise'], | |
| + job_data['organization'], job_data['project'], job_data['pipeline'], | |
| + job_data['stage'], job_data['phase'], "repo", ".delivery-compliance.json" | |
| + ) | |
| + | |
| +path_compliance = uri_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, 'log_objects') | |
| + | |
| +if File.exist?(compliance_json) | |
| + rest.post(path_compliance,File.read(compliance_json),builder_auth_headers) | |
| + streamy << "\nCompliance data has posted.\n" | |
| +end | |
| + | |
| +if cmd.error? | |
| + # Chef Stacktrace File Path | |
| + chef_stacktrace_file = File.join( | |
| + workspace_root, server.host, job_data['enterprise'], | |
| + job_data['organization'], job_data['project'], job_data['pipeline'], | |
| + job_data['stage'], job_data['phase'], "cache", "chef-stacktrace.out" | |
| + ) | |
| + if File.exist?(chef_stacktrace_file) | |
| + streamy << "\nChef Stacktrace\n" | |
| + streamy << File.read(chef_stacktrace_file) | |
| + end | |
| + | |
| + 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 | |
| * template[/var/opt/delivery/workspace/bin/delivery-cmd.cmd] action create (skipped due to only_if) | |
| * 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 8bc0b2 | |
| --- /var/opt/delivery/workspace/etc/builder_key 2016-06-23 16:55:52.957586909 -0400 | |
| +++ /var/opt/delivery/workspace/etc/.chef-builder_key20160623-9986-nbzar8 2016-06-23 16:55:52.956586901 -0400 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +MIIEowIBAAKCAQEAmpICgzzYEbGGU0SCJOCaCGDrYEH+rKWXkMx/I53hUCqDcM// | |
| +bNsssfN7lvEcZBurISDOd4dCtoYWjCPX7y1yXwk4X7giaHhmF8Fs17nP9weFgRXr | |
| +PG80mV2paDUCwLtDQ3XuX1TNkcdUXBZNw+IxO/tmMSL6RWxntZo+2QlsQkYtYY1r | |
| +iPzKtyXJEAV7UlCBqQDCW/t/BAmrJxMy8dvGiXgXm+EjoTJ82SenHNxVqQlx59RI | |
| +aSA+9yzQlhYx/p8P0GN+39KbcEf5YLx7CxsmHxJJ+bkX2kSeYOwGX61yVGDBepTv | |
| +fuW7wDcpmPLA0Q2rR2xmxr2/ja0XY496nYcB/QIDAQABAoIBAA5HSqAg8LzBr2zl | |
| +uTf633/CpDuiHQqJyXSAz4XUwcmMA9RaAnhlzr0phtMstriwraBDzY7RGeKOhGqx | |
| +rPLVOel5ipGdCuCnrpanMYzEB2gEc9q20aIli7BXLJ0JuJVhNxd2P2zjApJi3XIc | |
| +RVbBAFdQI+KKHqBnITVvaDrYWf3NJQdCYq9DCuE8NIX+2mZ0RqL3RiYh0tugelZi | |
| +jZ8St0tuqD9WVC4icRd7TZER+KFVSUHBZKJaK4TWJCotLBfw7c0tXeTjpxmgiGIw | |
| +shc5Sq89RWXK4bVGB4LTexCk9xVwzjpK7/VAE8+b937oVaSfDZB57TFjZhCBp67S | |
| +YjmLm6kCgYEAyL9xVhGDUrbnqfQTfD5a7gdXFub7CfoXDLmWwfCd6yM8AvxNXdka | |
| +YNbKjCcZCbSVWunxcRYzYy5arqk2Mis42IiTPQU4rRIyJ8SjF7lGPyeVO2C8Z3+d | |
| +vP/tzG+zs0N/RRyb7sR4LPMBS+gAopKl8I6VK+Nzg3UzFvSbLi8BlLcCgYEAxRzu | |
| +7LfCyW6l5tw0SMUGXETOaVjBfl1y1PC0V+cYNPR8tQ6YnRUynPwsWO+GKebXRJ3e | |
| +gu6BCNGhdg+phf6oMXDIF8+Kn77vl3pk0IF4zpZmyaBVQc/LotgHXV4r/mSyTv1t | |
| +McWssDiKus97x0NdkqecCyIvyWt0KIAen/32cusCgYEAw71Xp1KAOAC8No0VCspK | |
| +I1no4x3pnbrLCs9TXltdv86lT0vvrBhqjg4hhTMCSOJZ10HQ+DFrfcPPDAtWGujm | |
| +DsxstM0IjEj3uqsTU6iGBEJ2UmVqj4hxp73sgrBQCfVAfYT9znynqTxxATCAngRb | |
| +5QlCDn9DPOTkIffz775JzlUCgYBOIgvrNWQ26G9GtZ7cAY1l4bhYNeBtMKmmEsvJ | |
| +1EbaJteQBXslORPY+nSxxDBQR7qo7lMXX2cykbYI0GiIPst43ZXTKmdurwbV6qQv | |
| +qkKy0RdpcO6aqb20jSFON1gE/PFZMkeoZQzwxVjod/o+oEtlKJ9IIoMCul9O9oot | |
| +LUQVhQKBgFH7kxzo/TuXFYppSnn/ZMhWFi8B1BVm1AYq+P/jRA9f95RsnhiUM2Sc | |
| +BJalRb9Peu6R1XbsTuMUiJ9/9EMIhFlnsDZnZohhcz44/U0eqBOV28XoLvuhlmqu | |
| +hRvZe06oLIJvsfP50bkrJW6vVZiowDaoNpwkg9MYh05do8LtpPui | |
| +-----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 8bc0b2 | |
| --- /var/opt/delivery/workspace/.chef/builder_key 2016-06-23 16:55:52.984587115 -0400 | |
| +++ /var/opt/delivery/workspace/.chef/.chef-builder_key20160623-9986-sycw5h 2016-06-23 16:55:52.984587115 -0400 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +MIIEowIBAAKCAQEAmpICgzzYEbGGU0SCJOCaCGDrYEH+rKWXkMx/I53hUCqDcM// | |
| +bNsssfN7lvEcZBurISDOd4dCtoYWjCPX7y1yXwk4X7giaHhmF8Fs17nP9weFgRXr | |
| +PG80mV2paDUCwLtDQ3XuX1TNkcdUXBZNw+IxO/tmMSL6RWxntZo+2QlsQkYtYY1r | |
| +iPzKtyXJEAV7UlCBqQDCW/t/BAmrJxMy8dvGiXgXm+EjoTJ82SenHNxVqQlx59RI | |
| +aSA+9yzQlhYx/p8P0GN+39KbcEf5YLx7CxsmHxJJ+bkX2kSeYOwGX61yVGDBepTv | |
| +fuW7wDcpmPLA0Q2rR2xmxr2/ja0XY496nYcB/QIDAQABAoIBAA5HSqAg8LzBr2zl | |
| +uTf633/CpDuiHQqJyXSAz4XUwcmMA9RaAnhlzr0phtMstriwraBDzY7RGeKOhGqx | |
| +rPLVOel5ipGdCuCnrpanMYzEB2gEc9q20aIli7BXLJ0JuJVhNxd2P2zjApJi3XIc | |
| +RVbBAFdQI+KKHqBnITVvaDrYWf3NJQdCYq9DCuE8NIX+2mZ0RqL3RiYh0tugelZi | |
| +jZ8St0tuqD9WVC4icRd7TZER+KFVSUHBZKJaK4TWJCotLBfw7c0tXeTjpxmgiGIw | |
| +shc5Sq89RWXK4bVGB4LTexCk9xVwzjpK7/VAE8+b937oVaSfDZB57TFjZhCBp67S | |
| +YjmLm6kCgYEAyL9xVhGDUrbnqfQTfD5a7gdXFub7CfoXDLmWwfCd6yM8AvxNXdka | |
| +YNbKjCcZCbSVWunxcRYzYy5arqk2Mis42IiTPQU4rRIyJ8SjF7lGPyeVO2C8Z3+d | |
| +vP/tzG+zs0N/RRyb7sR4LPMBS+gAopKl8I6VK+Nzg3UzFvSbLi8BlLcCgYEAxRzu | |
| +7LfCyW6l5tw0SMUGXETOaVjBfl1y1PC0V+cYNPR8tQ6YnRUynPwsWO+GKebXRJ3e | |
| +gu6BCNGhdg+phf6oMXDIF8+Kn77vl3pk0IF4zpZmyaBVQc/LotgHXV4r/mSyTv1t | |
| +McWssDiKus97x0NdkqecCyIvyWt0KIAen/32cusCgYEAw71Xp1KAOAC8No0VCspK | |
| +I1no4x3pnbrLCs9TXltdv86lT0vvrBhqjg4hhTMCSOJZ10HQ+DFrfcPPDAtWGujm | |
| +DsxstM0IjEj3uqsTU6iGBEJ2UmVqj4hxp73sgrBQCfVAfYT9znynqTxxATCAngRb | |
| +5QlCDn9DPOTkIffz775JzlUCgYBOIgvrNWQ26G9GtZ7cAY1l4bhYNeBtMKmmEsvJ | |
| +1EbaJteQBXslORPY+nSxxDBQR7qo7lMXX2cykbYI0GiIPst43ZXTKmdurwbV6qQv | |
| +qkKy0RdpcO6aqb20jSFON1gE/PFZMkeoZQzwxVjod/o+oEtlKJ9IIoMCul9O9oot | |
| +LUQVhQKBgFH7kxzo/TuXFYppSnn/ZMhWFi8B1BVm1AYq+P/jRA9f95RsnhiUM2Sc | |
| +BJalRb9Peu6R1XbsTuMUiJ9/9EMIhFlnsDZnZohhcz44/U0eqBOV28XoLvuhlmqu | |
| +hRvZe06oLIJvsfP50bkrJW6vVZiowDaoNpwkg9MYh05do8LtpPui | |
| +-----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 00a54f | |
| --- /var/opt/delivery/workspace/etc/delivery.pem 2016-06-23 16:55:53.012587328 -0400 | |
| +++ /var/opt/delivery/workspace/etc/.chef-delivery.pem20160623-9986-h88saa 2016-06-23 16:55:53.012587328 -0400 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +MIIEowIBAAKCAQEArppHAeAGdIPW/6fU0RsyovpW6vFPzjQXr6flbHbRjDXVKAab | |
| +MnwO/DDeMoAbhpIhvHE7PlPT5wMHLl65RnM30RyB7e4tEmBx8XrgUBLI+SXa3wP6 | |
| +m/EUsfEHxSBQDpH7pREm6xc426bkR8F9QWeDr1NIESn/tDbSyV4l6kiDjckcFgnW | |
| ++IEhi6sFIosRChO6M1kmaScKaLhaxdhyhOr9K4/yR+HtN1rh2DO6+tJbLV86M1k2 | |
| +IGU2wExCIbgSh8fC6XX2tQ5LGIuFfDuwF5y6Uw1moEsT+ulG35/E/UGweTj3WJhm | |
| +zBrUshYTzZtNMeE0xC0WOU4ZN+4Ei2ZBrZs0EwIDAQABAoIBABOMvqqdFNvy7x3N | |
| +Au0u6GqLMTQ5NMBX4NcQK4YLf8b9OBK1OqdacKsYJajt4yccMZ7R5tpBtJZHJoSw | |
| +onoa6IMHeBzV8EIAfoGVSoxsrggHjwwte9/+DF0oKcCOr6gR/GUtGHh2Ly2Y8DKA | |
| +na+3EW2OG6GgXDsncE6PthsXZ3N2g8/ZxKG2LrZqvqRCW5Cz9gvrinzy8fZTchRB | |
| +nG7sN9PPTkLEuZUruic57z3g6JpGne8WhBAjZGufbJ4n4hyonHXucN9k54bHNE9N | |
| +a62DLJwzeUyS9ZEDuZHjBj2sRzy4zMKsKf8wP7YfgH+uRrAI1mc7D3uSV7qYrglk | |
| +BfO9emECgYEA1SZRn59PLbbTNbHfhBzeBJH6j+w++ueIcPPJ/AzrJSSZ1yK95sar | |
| +eUJs8oACpyMDpVbQ3+IuZFtc2ZzjIOsvpvHZk0B39ecTg68KzE+D+cHlAkWzesH/ | |
| +/SxoGOJoIBZa55r4bEb61l/xQRk8zzo48CMuE8wOUsxtR5BSOIhEd9kCgYEA0bQl | |
| +voS0n7uscaEO6ht8gPSN4VaM+VeNiR/ddR/aNamiYAJb5tYXL4vvceWhN5etR34c | |
| +6jXcPGo+UGRMvGzX+6SeUGm11qJ6D/KrPSEZKqUcMvPOb5F6mzWam2eVOUYMsD0j | |
| +nk06REp/BNSlt95qbujP4yVjYlThxX2fd3dpo8sCgYEAz98A93T8WQ7VyKXh4Avv | |
| +EfHztGyntzYaQF3g/Gj04lJhnggJv4i9LhL0AUOKUsm5AoQ6TD1fFQxs7uUsNKxo | |
| +2p0+nXbgBvcGdwQ8uahKg0bvOloTgYK1TokCNFKJTdG/ceQWpjJK6srCk8QzI74a | |
| +TUdh5ni491LauFItfWiXrXECgYAPIbmrgrXp5Mfvtxh1aiBUydDHFtC7WUb8QxFe | |
| +1zqOrrvpw6HQCVjI9IcFp/U3Jrm5M+9wMwy+S0hN0r76xbvcC6fk04vsffLi3bbf | |
| +hVjki996Cb+2qz+2nWqXliTdaiGWQgMk9BulO97ogVOn7eOuNxxxHoyKVuensYXl | |
| +P/eeewKBgGSCJFMMsV6fB2T+RdnkyI7LSZpeHvdntFQjj2Oa5i/ixaV9kalHZeQA | |
| +/lHl/4Q9fpVlyg10w/9KszVx5jVCc2JHKhTgeu9WpPMU0k8GtEoNN1oGZf89tM1h | |
| ++E0Rx/BB3iaHaNVW/7oLTasGznwXvg62VNUg9QsXGQxbglz4KkPA | |
| +-----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 00a54f | |
| --- /var/opt/delivery/workspace/.chef/delivery.pem 2016-06-23 16:55:53.041587549 -0400 | |
| +++ /var/opt/delivery/workspace/.chef/.chef-delivery.pem20160623-9986-crpu5l 2016-06-23 16:55:53.041587549 -0400 | |
| @@ -1 +1,28 @@ | |
| +-----BEGIN RSA PRIVATE KEY----- | |
| +MIIEowIBAAKCAQEArppHAeAGdIPW/6fU0RsyovpW6vFPzjQXr6flbHbRjDXVKAab | |
| +MnwO/DDeMoAbhpIhvHE7PlPT5wMHLl65RnM30RyB7e4tEmBx8XrgUBLI+SXa3wP6 | |
| +m/EUsfEHxSBQDpH7pREm6xc426bkR8F9QWeDr1NIESn/tDbSyV4l6kiDjckcFgnW | |
| ++IEhi6sFIosRChO6M1kmaScKaLhaxdhyhOr9K4/yR+HtN1rh2DO6+tJbLV86M1k2 | |
| +IGU2wExCIbgSh8fC6XX2tQ5LGIuFfDuwF5y6Uw1moEsT+ulG35/E/UGweTj3WJhm | |
| +zBrUshYTzZtNMeE0xC0WOU4ZN+4Ei2ZBrZs0EwIDAQABAoIBABOMvqqdFNvy7x3N | |
| +Au0u6GqLMTQ5NMBX4NcQK4YLf8b9OBK1OqdacKsYJajt4yccMZ7R5tpBtJZHJoSw | |
| +onoa6IMHeBzV8EIAfoGVSoxsrggHjwwte9/+DF0oKcCOr6gR/GUtGHh2Ly2Y8DKA | |
| +na+3EW2OG6GgXDsncE6PthsXZ3N2g8/ZxKG2LrZqvqRCW5Cz9gvrinzy8fZTchRB | |
| +nG7sN9PPTkLEuZUruic57z3g6JpGne8WhBAjZGufbJ4n4hyonHXucN9k54bHNE9N | |
| +a62DLJwzeUyS9ZEDuZHjBj2sRzy4zMKsKf8wP7YfgH+uRrAI1mc7D3uSV7qYrglk | |
| +BfO9emECgYEA1SZRn59PLbbTNbHfhBzeBJH6j+w++ueIcPPJ/AzrJSSZ1yK95sar | |
| +eUJs8oACpyMDpVbQ3+IuZFtc2ZzjIOsvpvHZk0B39ecTg68KzE+D+cHlAkWzesH/ | |
| +/SxoGOJoIBZa55r4bEb61l/xQRk8zzo48CMuE8wOUsxtR5BSOIhEd9kCgYEA0bQl | |
| +voS0n7uscaEO6ht8gPSN4VaM+VeNiR/ddR/aNamiYAJb5tYXL4vvceWhN5etR34c | |
| +6jXcPGo+UGRMvGzX+6SeUGm11qJ6D/KrPSEZKqUcMvPOb5F6mzWam2eVOUYMsD0j | |
| +nk06REp/BNSlt95qbujP4yVjYlThxX2fd3dpo8sCgYEAz98A93T8WQ7VyKXh4Avv | |
| +EfHztGyntzYaQF3g/Gj04lJhnggJv4i9LhL0AUOKUsm5AoQ6TD1fFQxs7uUsNKxo | |
| +2p0+nXbgBvcGdwQ8uahKg0bvOloTgYK1TokCNFKJTdG/ceQWpjJK6srCk8QzI74a | |
| +TUdh5ni491LauFItfWiXrXECgYAPIbmrgrXp5Mfvtxh1aiBUydDHFtC7WUb8QxFe | |
| +1zqOrrvpw6HQCVjI9IcFp/U3Jrm5M+9wMwy+S0hN0r76xbvcC6fk04vsffLi3bbf | |
| +hVjki996Cb+2qz+2nWqXliTdaiGWQgMk9BulO97ogVOn7eOuNxxxHoyKVuensYXl | |
| +P/eeewKBgGSCJFMMsV6fB2T+RdnkyI7LSZpeHvdntFQjj2Oa5i/ixaV9kalHZeQA | |
| +/lHl/4Q9fpVlyg10w/9KszVx5jVCc2JHKhTgeu9WpPMU0k8GtEoNN1oGZf89tM1h | |
| ++E0Rx/BB3iaHaNVW/7oLTasGznwXvg62VNUg9QsXGQxbglz4KkPA | |
| +-----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 f2f7db | |
| --- /var/opt/delivery/workspace/etc/delivery.rb 2016-06-23 16:55:53.071587778 -0400 | |
| +++ /var/opt/delivery/workspace/etc/.chef-delivery.rb20160623-9986-1s9fkwv 2016-06-23 16:55:53.071587778 -0400 | |
| @@ -1 +1,7 @@ | |
| +current_dir = File.dirname(__FILE__) | |
| +eval(IO.read('/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 f2f7db | |
| --- /var/opt/delivery/workspace/.chef/knife.rb 2016-06-23 16:55:53.099587992 -0400 | |
| +++ /var/opt/delivery/workspace/.chef/.chef-knife.rb20160623-9986-1cet0gi 2016-06-23 16:55:53.099587992 -0400 | |
| @@ -1 +1,7 @@ | |
| +current_dir = File.dirname(__FILE__) | |
| +eval(IO.read('/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 (skipped due to not_if) | |
| Recipe: delivery_build::trusted_certs | |
| * trusted_cert[Delivery Server Cert-chefdk] action append | |
| - Append Delivery Server Cert-chefdk to /opt/chefdk/embedded/ssl/certs/cacert.pem | |
| * trusted_cert[Delivery Server Cert-push-jobs] action append | |
| - Append Delivery Server Cert-push-jobs to /opt/push-jobs-client/embedded/ssl/certs/cacert.pem | |
| * trusted_cert[Chef Server Cert-chefdk] action append | |
| - Append Chef Server Cert-chefdk to /opt/chefdk/embedded/ssl/certs/cacert.pem | |
| * trusted_cert[Chef Server Cert-push-jobs] action append | |
| - Append Chef Server Cert-push-jobs to /opt/push-jobs-client/embedded/ssl/certs/cacert.pem | |
| Recipe: push-jobs::service | |
| * push_jobs_service_systemd[push-jobs] action restart | |
| * service[chef-push-jobs-client] action restart | |
| - restart service service[chef-push-jobs-client] | |
| Running handlers: | |
| Running handlers complete | |
| Deprecated features used! | |
| An attempt was made to change version from :latest to nil by calling version(nil). In Chef 12, this does a get rather than a set. In Chef 13, this will change to set the value to nil. at 1 location: | |
| - /var/chef/cache/cookbooks/push-jobs/recipes/package.rb:45:in `block in from_file' | |
| Chef Client finished, 53/81 resources updated in 06 minutes 23 seconds | |
| - [build-node-aws-1] run 'chef-client -c /etc/chef/client.rb -l auto' on build-node-aws-1 | |
| [2016-06-23T16:55:54-04:00] WARN: Skipping final node save because override_runlist was given | |
| Running handlers: | |
| Running handlers complete | |
| Deprecated features used! | |
| Auto inflation of JSON data is deprecated. Please use Chef::Node#from_hash at 1 location: | |
| - /Users/salimafiune/chef/delivery/corp/organizations/cookbooks/delivery-cluster/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/libraries/helpers_component.rb:42:in `component_node' | |
| Chef Client finished, 30/33 resources updated in 44 minutes 25 seconds | |
| ➜ delivery-cluster git:(master) ✗ rake info:delivery_creds | |
| Chef Server | |
| Username: delivery | |
| Password: X5Y5ztjYv9eYMRzVnTnOSpTFI4I= | |
| Chef Server URL: https://10.194.9.72/organizations/aws | |
| Delivery Server | |
| Created enterprise: aws | |
| Admin username: admin | |
| Admin password: G1uRUDOVSwsaZ2wODmJTt/cmKTpQxz9EraU= | |
| Builder Password: JsOO7iiln/BgXFjCaJJmrqRS2D0cOPePYb8= | |
| Web login: https://10.194.9.222/e/aws/ | |
| ➜ delivery-cluster git:(master) ✗ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment