Created
May 12, 2015 15:43
-
-
Save afiune/475c559b842687f27e47 to your computer and use it in GitHub Desktop.
Delivery Cluster Setup
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
# Easy Setup Locally using Kitchen/SSH Driver | |
# | |
# Following the Steps on the README.md | |
# => https://github.com/opscode-cookbooks/delivery-cluster#easy-setup | |
# | |
# 1) Download your Delivery license key | |
# => I have already my Delivery License locally. Get one with your Chef Rep. :) | |
# | |
# 2) Provisioning infrastructure [SSH/Kitchen] | |
# | |
salimafiune@afiuneChef:~/github/delivery-cluster | |
$ kitchen list | |
Instance Driver Provisioner Verifier Transport Last Action | |
chef-server-centos-66 Vagrant ChefZero Busser Ssh <Not Created> | |
delivery-server-centos-66 Vagrant ChefZero Busser Ssh <Not Created> | |
analytics-server-centos-66 Vagrant ChefZero Busser Ssh <Not Created> | |
supermarket-server-centos-66 Vagrant ChefZero Busser Ssh <Not Created> | |
build-node1-centos-66 Vagrant ChefZero Busser Ssh <Not Created> | |
build-node2-centos-66 Vagrant ChefZero Busser Ssh <Not Created> | |
build-node3-centos-66 Vagrant ChefZero Busser Ssh <Not Created> | |
salimafiune@afiuneChef:~/github/delivery-cluster | |
$ export KITCHEN_YAML=.kitchen.ssh.yml | |
salimafiune@afiuneChef:~/github/delivery-cluster | |
$ kitchen create chef-server | |
-----> Starting Kitchen (v1.4.0) | |
-----> Creating <chef-server-centos-66>... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'opscode-centos-6.6'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Setting the name of the VM: kitchen-delivery-cluster-chef-server-centos-66_default_1431437160503_47318 | |
Skipping Berkshelf with --no-provision | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
default: Adapter 2: hostonly | |
==> default: Forwarding ports... | |
default: 22 => 2222 (adapter 1) | |
==> default: Running 'pre-boot' VM customizations... | |
==> default: Booting VM... | |
==> default: Waiting for machine to boot. This may take a few minutes... | |
default: SSH address: 127.0.0.1:2222 | |
default: SSH username: vagrant | |
default: SSH auth method: private key | |
default: Warning: Connection timeout. Retrying... | |
default: Warning: Remote connection disconnect. Retrying... | |
default: Warning: Remote connection disconnect. Retrying... | |
==> default: Checking for guest additions in VM... | |
==> default: Setting hostname... | |
==> default: Machine not provisioning because `--no-provision` is specified. | |
[SSH] Established | |
Vagrant instance <chef-server-centos-66> created. | |
Finished creating <chef-server-centos-66> (0m57.90s). | |
-----> Kitchen is finished. (0m58.65s) | |
salimafiune@afiuneChef:~/github/delivery-cluster | |
$ kitchen create delivery-server | |
-----> Starting Kitchen (v1.4.0) | |
-----> Creating <delivery-server-centos-66>... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'opscode-centos-6.6'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Setting the name of the VM: kitchen-delivery-cluster-delivery-server-centos-66_default_1431437308221_68166 | |
Skipping Berkshelf with --no-provision | |
==> default: Fixed port collision for 22 => 2222. Now on port 2200. | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
default: Adapter 2: hostonly | |
==> default: Forwarding ports... | |
default: 22 => 2200 (adapter 1) | |
==> default: Running 'pre-boot' VM customizations... | |
==> default: Booting VM... | |
==> default: Waiting for machine to boot. This may take a few minutes... | |
default: SSH address: 127.0.0.1:2200 | |
default: SSH auth method: private key default: Warning: Connection timeout. Retrying... | |
default: Warning: Remote connection disconnect. Retrying... | |
default: Warning: Remote connection disconnect. Retrying... | |
==> default: Machine booted and ready! | |
==> default: Checking for guest additions in VM... | |
==> default: Setting hostname... | |
==> default: Configuring and enabling network interfaces... | |
==> default: Machine not provisioning because `--no-provision` is specified. | |
[SSH] Established | |
Finished creating <delivery-server-centos-66> (0m53.65s). | |
salimafiune@afiuneChef:~/github/delivery-cluster | |
$ kitchen create build-node1-centos-66 | |
-----> Starting Kitchen (v1.4.0) | |
-----> Creating <build-node1-centos-66>... | |
Bringing machine 'default' up with 'virtualbox' provider... | |
==> default: Importing base box 'opscode-centos-6.6'... | |
==> default: Matching MAC address for NAT networking... | |
==> default: Setting the name of the VM: kitchen-delivery-cluster-build-node1-centos-66_default_1431444594140_10773 | |
Skipping Berkshelf with --no-provision | |
==> default: Fixed port collision for 22 => 2222. Now on port 2201. | |
==> default: Clearing any previously set network interfaces... | |
==> default: Preparing network interfaces based on configuration... | |
default: Adapter 1: nat | |
default: Adapter 2: hostonly | |
==> default: Forwarding ports... | |
default: 22 => 2201 (adapter 1) | |
==> default: Running 'pre-boot' VM customizations... | |
==> default: Booting VM... | |
==> default: Waiting for machine to boot. This may take a few minutes... | |
default: SSH address: 127.0.0.1:2201 | |
default: SSH username: vagrant | |
default: SSH auth method: private key | |
default: Warning: Connection timeout. Retrying... | |
default: Warning: Connection timeout. Retrying... | |
==> default: Machine booted and ready! | |
==> default: Checking for guest additions in VM... | |
==> default: Setting hostname... | |
==> default: Configuring and enabling network interfaces... | |
==> default: Machine not provisioning because `--no-provision` is specified. | |
[SSH] Established | |
Vagrant instance <build-node1-centos-66> created. | |
Finished creating <build-node1-centos-66> (0m48.51s). | |
-----> Kitchen is finished. (0m49.27s) | |
salimafiune@afiuneChef:~/github/delivery-cluster | |
$ kitchen list | |
Instance Driver Provisioner Verifier Transport Last Action | |
chef-server-centos-66 Vagrant ChefZero Busser Ssh Created | |
delivery-server-centos-66 Vagrant ChefZero Busser Ssh Created | |
analytics-server-centos-66 Vagrant ChefZero Busser Ssh <Not Created> | |
supermarket-server-centos-66 Vagrant ChefZero Busser Ssh <Not Created> | |
build-node1-centos-66 Vagrant ChefZero Busser Ssh Created | |
build-node2-centos-66 Vagrant ChefZero Busser Ssh <Not Created> | |
build-node3-centos-66 Vagrant ChefZero Busser Ssh <Not Created> | |
# | |
# 3) Create an environment | |
# | |
salimafiune@afiuneChef:~/github/delivery-cluster | |
$ rake setup:generate_env[ssh] | |
Gathering Cluster Information | |
Provide the following information to generate your environment. | |
Global Attributes | |
Cluster ID [ssh]: | |
Driver Name [ssh]: | |
Driver Information [ssh] | |
SSH Username [vagrant]: | |
Key File [/Users/salimafiune/.vagrant.d/insecure_private_key]: | |
Chef Server | |
Organization Name [ssh]: | |
Use existing chef-server? [no]: | |
Host [33.33.33.10]: | |
Delivery Server | |
Package Version [latest]: | |
Enterprise Name [ssh]: | |
Use chef artifactory? [no]: | |
License File [/Users/salimafiune/github/delivery-cluster/delivery.license]: | |
Host [33.33.33.11]: | |
Analytics Server | |
Enable Analytics? [no]: | |
Supermarket Server | |
Enable Supermarket? [no]: | |
Build Nodes | |
Number of Build Nodes [1]: | |
Host for Build Node 1 [33.33.33.14]: | |
Specify a delivery-cli artifact? [no]: yes | |
Delivery-cli Artifact: https://delivery-packages.s3.amazonaws.com/cli/delivery-cli-20150408004719-1.x86_64.rpm | |
Delivery-cli Checksum: fa1f1724482182a9461c21a692b88ecc97e016b8307bd28834c2828eca702e6c | |
Rendering Environment => environments/ssh.json | |
{ | |
"name": "ssh", | |
"description": "Delivery Cluster Environment", | |
"json_class": "Chef::Environment", | |
"chef_type": "environment", | |
"override_attributes": { | |
"delivery-cluster": { | |
"id": "ssh", | |
"driver": "ssh", | |
"ssh": { | |
"ssh_username": "vagrant", | |
"key_file": "/Users/salimafiune/.vagrant.d/insecure_private_key" | |
}, | |
"chef-server": { | |
"organization": "ssh", | |
"existing": false, | |
"host": "33.33.33.10" | |
}, | |
"delivery": { | |
"version": "latest", | |
"enterprise": "ssh", | |
"artifactory": false, | |
"license_file": "/Users/salimafiune/github/delivery-cluster/delivery.license", | |
"host": "33.33.33.11" | |
}, | |
"builders": { | |
"count": "1", | |
"1": { | |
"host": "33.33.33.14" | |
}, | |
"delivery-cli": { | |
"artifact": "https://delivery-packages.s3.amazonaws.com/cli/delivery-cli-20150408004719-1.x86_64.rpm", | |
"checksum": "fa1f1724482182a9461c21a692b88ecc97e016b8307bd28834c2828eca702e6c" | |
} | |
} | |
} | |
} | |
} | |
Export your new environment by executing: | |
# export CHEF_ENV=ssh | |
salimafiune@afiuneChef:~/github/delivery-cluster | |
$ export CHEF_ENV=ssh | |
# | |
# 4) Provision your Delivery Cluster | |
# | |
salimafiune@afiuneChef:~/github/delivery-cluster | |
$ rake setup:cluster | |
Install rubygem dependencies locally | |
Using rake 10.4.2 | |
Using addressable 2.3.8 | |
Using builder 3.2.2 | |
Using gyoku 1.3.1 | |
Using mini_portile 0.6.2 | |
Using nokogiri 1.6.6.2 | |
Using akami 1.3.0 | |
Using artifactory 2.2.1 | |
Using json 1.8.2 | |
Using aws-sdk-v1 1.64.0 | |
Using multipart-post 2.0.0 | |
Using faraday 0.9.1 | |
Using berkshelf-api-client 1.2.1 | |
Using buff-extensions 1.0.0 | |
Using hashie 2.1.2 | |
Using varia_model 0.4.0 | |
Using buff-config 1.0.1 | |
Using buff-ruby_engine 0.1.0 | |
Using buff-shell_out 0.2.0 | |
Using hitimes 1.2.2 | |
Using timers 4.0.1 | |
Using celluloid 0.16.0 | |
Using nio4r 1.1.0 | |
Using celluloid-io 0.16.2 | |
Using cleanroom 1.0.0 | |
Using minitar 0.5.4 | |
Using sawyer 0.6.0 | |
Using octokit 3.8.0 | |
Using retryable 2.0.1 | |
Using buff-ignore 1.1.1 | |
Using erubis 2.7.0 | |
Using mixlib-log 1.6.0 | |
Using mixlib-authentication 1.3.0 | |
Using net-http-persistent 2.9.4 | |
Using semverse 1.2.1 | |
Using ridley 4.1.2 | |
Using dep-selector-libgecode 1.0.2 | |
Using ffi 1.9.8 | |
Using dep_selector 1.0.3 | |
Using solve 1.2.1 | |
Using thor 0.19.1 | |
Using berkshelf 3.2.3 | |
Using libyajl2 1.2.0 | |
Using ffi-yajl 2.1.0 | |
Using rack 1.6.0 | |
Using uuidtools 2.1.5 | |
Using chef-zero 4.2.1 | |
Using diff-lcs 1.2.5 | |
Using highline 1.7.2 | |
Using mixlib-cli 1.5.0 | |
Using mixlib-config 2.1.0 | |
Using mixlib-shellout 2.0.1 | |
Using net-ssh 2.9.2 | |
Using net-ssh-gateway 1.2.0 | |
Using net-ssh-multi 1.2.1 | |
Using ipaddress 0.8.0 | |
Using mime-types 2.4.3 | |
Using systemu 2.6.5 | |
Using wmi-lite 1.0.0 | |
Using ohai 8.2.0 | |
Using plist 3.1.0 | |
Using coderay 1.1.0 | |
Using method_source 0.8.2 | |
Using slop 3.6.0 | |
Using pry 0.10.1 | |
Using rspec-support 3.2.2 | |
Using rspec-core 3.2.3 | |
Using rspec-expectations 3.2.1 | |
Using rspec-mocks 3.2.1 | |
Using rspec 3.2.0 | |
Using rspec_junit_formatter 0.2.0 | |
Using multi_json 1.11.0 | |
Using rspec-its 1.2.0 | |
Using net-scp 1.2.1 | |
Using specinfra 2.30.0 | |
Using serverspec 2.14.1 | |
Using chef 12.2.1 | |
Using cheffish 1.1.2 | |
Using inifile 2.0.2 | |
Using gssapi 1.0.3 | |
Using httpclient 2.6.0.1 | |
Using little-plugger 1.1.3 | |
Using logging 1.8.2 | |
Using rubyntlm 0.1.1 | |
Using httpi 0.9.7 | |
Using nori 1.1.5 | |
Using wasabi 1.0.0 | |
Using savon 0.9.5 | |
Using winrm 1.2.0 | |
Using chef-provisioning 1.1.1 from https://github.com/chef/chef-provisioning.git (at master) | |
Using chef-provisioning-aws 1.1.0 from https://github.com/chef/chef-provisioning-aws.git (at master) | |
Using chef-provisioning-ssh 0.0.7 | |
Using chef-vault 2.5.0 | |
Using safe_yaml 1.0.4 | |
Using test-kitchen 1.3.1 | |
Using kitchen-vagrant 0.16.0 | |
Using bundler 1.7.12 | |
Your bundle is complete! | |
Use `bundle show [gemname]` to see where a bundled gem is installed. | |
Download and vendor the necessary cookbooks locally | |
Resolving cookbook dependencies... | |
Fetching 'chef-server-12' from source at vendor/chef-server-12 | |
Fetching 'delivery-cluster' from source at . | |
Using build-essential (2.1.3) | |
Using chef-server-ingredient (0.3.0) from https://github.com/opscode-cookbooks/chef-server-ingredient.git (at master) | |
Using chef-server-12 (0.1.5) from source at vendor/chef-server-12 | |
Using chef-splunk (1.3.1) from https://github.com/chef-cookbooks/chef-splunk.git (at master) | |
Using chef_handler (1.1.6) | |
Using chef-vault (1.2.5) | |
Using delivery-cluster (0.2.15) from source at . | |
Using delivery_build (0.1.11) from https://github.com/chef/delivery.git (at master/cookbooks/delivery_build) | |
Using dmg (2.2.2) | |
Using git (4.2.2) | |
Using packagecloud (0.0.17) from https://github.com/afiune/packagecloud-cookbook.git (at master) | |
Using push-jobs (2.2.0) | |
Using runit (1.5.18) | |
Using supermarket-omnibus-cookbook (0.2.0) from https://github.com/irvingpop/supermarket-omnibus-cookbook.git (at master) | |
Using windows (1.36.6) | |
Using yum (3.5.3) | |
Using yum-epel (0.6.0) | |
Vendoring build-essential (2.1.3) to cookbooks/build-essential | |
Vendoring chef-server-12 (0.1.5) to cookbooks/chef-server-12 | |
Vendoring chef-server-ingredient (0.3.0) to cookbooks/chef-server-ingredient | |
Vendoring chef-splunk (1.3.1) to cookbooks/chef-splunk | |
Vendoring chef-vault (1.2.5) to cookbooks/chef-vault | |
Vendoring chef_handler (1.1.6) to cookbooks/chef_handler | |
Vendoring delivery-cluster (0.2.15) to cookbooks/delivery-cluster | |
Vendoring delivery_build (0.1.11) to cookbooks/delivery_build | |
Vendoring dmg (2.2.2) to cookbooks/dmg | |
Vendoring git (4.2.2) to cookbooks/git | |
Vendoring packagecloud (0.0.17) to cookbooks/packagecloud | |
Vendoring push-jobs (2.2.0) to cookbooks/push-jobs | |
Vendoring runit (1.5.18) to cookbooks/runit | |
Vendoring supermarket-omnibus-cookbook (0.2.0) to cookbooks/supermarket-omnibus-cookbook | |
Vendoring windows (1.36.6) to cookbooks/windows | |
Vendoring yum (3.5.3) to cookbooks/yum | |
Vendoring yum-epel (0.6.0) to cookbooks/yum-epel | |
Current chef environment => environments/ssh.json | |
Setup the Chef Delivery cluster | |
Starting Chef Client, version 12.2.1 | |
[2015-05-12T09:36:53-04:00] WARN: Run List override has been provided. | |
[2015-05-12T09:36:53-04:00] WARN: Original Run List: [] | |
[2015-05-12T09:36:53-04:00] WARN: Overridden Run List: [recipe[delivery-cluster::setup]] | |
resolving cookbooks for run list: ["delivery-cluster::setup"] | |
Synchronizing Cookbooks: | |
- delivery-cluster | |
- chef-server-12 | |
- chef-server-ingredient | |
- delivery_build | |
- push-jobs | |
- chef-splunk | |
- packagecloud | |
- supermarket-omnibus-cookbook | |
- git | |
- runit | |
- windows | |
- chef-vault | |
- build-essential | |
- dmg | |
- yum-epel | |
- yum | |
- chef_handler | |
Compiling Cookbooks... | |
[2015-05-12T09:37:03-04:00] WARN: Cloning resource attributes for machine[chef-server-ssh] from prior resource (CHEF-3694) | |
[2015-05-12T09:37:03-04:00] WARN: Previous machine[chef-server-ssh]: /Users/salimafiune/github/delivery-cluster/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_chef_server.rb:31:in `from_file' | |
[2015-05-12T09:37:03-04:00] WARN: Current machine[chef-server-ssh]: /Users/salimafiune/github/delivery-cluster/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_chef_server.rb:44:in `from_file' | |
[2015-05-12T09:37:03-04:00] WARN: Cloning resource attributes for machine[delivery-server-ssh] from prior resource (CHEF-3694) | |
[2015-05-12T09:37:03-04:00] WARN: Previous machine[delivery-server-ssh]: /Users/salimafiune/github/delivery-cluster/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_delivery_server.rb:64:in `from_file' | |
[2015-05-12T09:37:03-04:00] WARN: Current machine[delivery-server-ssh]: /Users/salimafiune/github/delivery-cluster/.chef/local-mode-cache/cache/cookbooks/delivery-cluster/recipes/setup_delivery_server.rb:102:in `from_file' | |
Converging 26 resources | |
Recipe: delivery-cluster::_settings | |
* link[/Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data] action create | |
- create symlink at /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data to /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh | |
Recipe: delivery-cluster::setup_chef_server | |
* machine[chef-server-ssh] action converge | |
- create new directory /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh | |
- create new file /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/chef-server-ssh.json | |
- update content in file /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/chef-server-ssh.json from none to 634e1f | |
- --- /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/chef-server-ssh.json 2015-05-12 09:37:03.000000000 -0400 | |
- +++ /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/.chef-server-ssh.json20150512-2693-1uox1db 2015-05-12 09:37:03.000000000 -0400 | |
- @@ -1 +1,38 @@ | |
- +{ | |
- + "convergence_options": { | |
- + "chef_server": { | |
- + "chef_server_url": "http://localhost:8889", | |
- + "options": { | |
- + "client_name": "delivery", | |
- + "signing_key_filename": null | |
- + } | |
- + }, | |
- + "allow_overwrite_keys": null, | |
- + "source_key": null, | |
- + "source_key_path": null, | |
- + "source_key_pass_phrase": null, | |
- + "private_key_options": null, | |
- + "ohai_hints": null, | |
- + "public_key_path": null, | |
- + "public_key_format": null, | |
- + "admin": null, | |
- + "validator": null, | |
- + "chef_config": null, | |
- + "bootstrap_proxy": null | |
- + }, | |
- + "transport_options": { | |
- + "host": "33.33.33.10", | |
- + "username": "vagrant", | |
- + "ssh_options": { | |
- + "user": "vagrant", | |
- + "password": null, | |
- + "keys": [ | |
- + "/Users/salimafiune/.vagrant.d/insecure_private_key" | |
- + ] | |
- + }, | |
- + "options": { | |
- + "prefix": "sudo " | |
- + } | |
- + } | |
- +} | |
- create node chef-server-ssh at http://localhost:8889 | |
- add normal.tags = nil | |
- add normal.chef_provisioning = {"reference"=>{"driver_url"=>"ssh:/Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh", "driver_version"=>"0.0.7", "target_name"=>"chef-server-ssh", "ssh_machine_file"=>"/Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/chef-server-ssh.json", "allocated_at"=>"2015-05-12 13:37:03 UTC"}}[2015-05-12T09:37:04-04:00] ERROR: Unable to download /etc/chef/client.pem to /tmp/client.pem.1928708981 on [email protected] -- Error: command 'cp /etc/chef/client.pem /tmp/client.pem.1928708981' exited with code 1. | |
[2015-05-12T09:37:04-04:00] WARN: Unable to clean up /tmp/client.pem.1928708981 on [email protected] -- Error: command 'rm /tmp/client.pem.1928708981' exited with code 1. | |
- generate private key (2048 bits) | |
- create directory /etc/chef on chef-server-ssh | |
- write file /etc/chef/client.pem on chef-server-ssh | |
- create client chef-server-ssh at clients | |
- add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArCHwWBkFh1T98vaKP6rn\nwTJn237QT9Si726G26L/xlj78f0Q9CVNtENnAYhFGwSb43GXdpDudrbozodJ08w8\n7xuTaCMoPbh1NEvlsHwJDXnSsvBOkXFCvnGGTw/TTVr/KdG/Sisy9LQHacY2qwj+\naRCFrwFUXOIcOQx0wh6u9gy23bJB+QENaEripXJ3/ufpNbK5tgTv4sGlu1bk4VO2\nKkqWD7QOeM5u0a6nwlfv61DYToaNIPGhbJzB34Gv8JL+qqxH7JqeSkTD2JeZHa3k\nZqu65iK689UxHl83Uy+AOs1+vRbzc0isNGTPtduqpNPU2LKgTmoaw12zh6Bx4of+\niwIDAQAB\n-----END PUBLIC KEY-----\n" | |
- write file /etc/chef/client.rb on chef-server-ssh | |
- write file /tmp/chef-install.sh on chef-server-ssh | |
- run 'bash -c ' bash /tmp/chef-install.sh'' on chef-server-ssh | |
- upload file /Users/salimafiune/github/delivery-cluster/.chef/trusted_certs/33.33.33.10.crt to /Users/salimafiune/github/delivery-cluster/.chef/trusted_certs/33.33.33.10.crt on chef-server-ssh | |
[chef-server-ssh] Starting Chef Client, version 12.3.0 | |
resolving cookbooks for run list: [] | |
Synchronizing Cookbooks: | |
Compiling Cookbooks... | |
[2015-05-12T13:37:30+00:00] WARN: Node chef-server-ssh has an empty run list. | |
Converging 0 resources | |
Running handlers: | |
Running handlers complete | |
Chef Client finished, 0/0 resources updated in 1.1475038 seconds | |
- run 'chef-client -l auto' on chef-server-ssh | |
* machine[chef-server-ssh] action converge | |
- update node chef-server-ssh at http://localhost:8889 | |
- add normal.chef-server-12 = {"delivery"=>{"organization"=>"ssh"}, "api_fqdn"=>"33.33.33.10", "store_keys_databag"=>false, "plugin"=>{"opscode-reporting"=>false}} | |
- update run_list from [] to ["recipe[chef-server-12]"] | |
[chef-server-ssh] Starting Chef Client, version 12.3.0 | |
resolving cookbooks for run list: ["chef-server-12"] | |
Synchronizing Cookbooks: | |
- chef-server-12 | |
- chef-server-ingredient | |
- packagecloud | |
Compiling Cookbooks... | |
Converging 12 resources | |
Recipe: chef-server-12::default | |
* directory[/etc/opscode] action create | |
- create new directory /etc/opscode | |
- restore selinux security context | |
* chef_server_ingredient[chef-server-core] action install | |
* packagecloud_repo[chef/stable] action add | |
* yum_package[pygpgme] action install (up to date) | |
* log[pygpgme_warning] action write (skipped due to not_if) | |
* ruby_block[disable repo_gpgcheck if no pygpgme] action run (skipped due to not_if) | |
* remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io] action create | |
- create new file /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io | |
- update content in file /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io from none to e42d7e | |
--- /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io 2015-05-12 13:37:52.980132772 +0000 | |
+++ /tmp/chef-rest20150512-7204-qw7861 2015-05-12 13:37:52.977130889 +0000 | |
@@ -1 +1,65 @@ | |
+-----BEGIN PGP PUBLIC KEY BLOCK----- | |
+Version: GnuPG v1.4.11 (GNU/Linux) | |
+ | |
+mQINBFLUbogBEADceEoxBDoE6QM5xV/13qiELbFIkQgy/eEi3UesXm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p | |
+KHQEzbSW5coxzU6oOiPbTurCZorIMHTA9cpAZoMUGKaSt19UKIMvSqtcDayhgf4c | |
+Z2ay1z0fdJ2PuLeNnWeiGyfq78q6wqSaJq/h6JdAiwXplFd3gqJZTrFZz7A6Q6Pd | |
+7B+9PZ/DUdEO3JeZlHJDfRmfU2XPoyPUoq79+whP5Tl3WwHUv7Fg357kRSdzKv9D | |
+bgmhqRHlgVeKn9pwN4cpVBN+idzwPefQksSKH4lBDvVr/9j+V9mmrOx7QmQ5LCc/ | |
+1on+L0dqo6suoajADhKy+lDQbzs2mVb4CLpPKncDup/9iJbjiR17DDFMwgyCoy5O | |
+HJICQ5lckNNgkHTS6Xiogkt28YfK4P3S0GaZgIrhKQ7AmO3O+hB12Zr+olpeyhGB | |
+OpBD80URntdEcenvfnXBY/BsuAVbTGXiBzrlBEyQxg656jUeqAdXg+nzCvP0yJlB | |
+UOjEcwyhK/U2nw9nGyaR3u0a9r24LgijGpdGabIeJm6O9vuuqFHHGI72pWUEs355 | |
+lt8q1pAoJUv8NehQmlaR0h5wcwhEtwM6fiSIUTnuJnyHT053GjsUD7ef5fY1KEFm | |
+aZeW04kRtFDOPinz0faE8hvsxzsVgkKye1c2vkXKdOXvA3x+pZzlTHtcgMOhjKQA | |
+sA== | |
+=H60S | |
+-----END PGP PUBLIC KEY BLOCK----- | |
- change mode from '' to '0644' | |
- restore selinux security context | |
* template[/etc/yum.repos.d/chef_stable_.repo] action create | |
- create new file /etc/yum.repos.d/chef_stable_.repo | |
- update content in file /etc/yum.repos.d/chef_stable_.repo from none to 89f6bd | |
--- /etc/yum.repos.d/chef_stable_.repo 2015-05-12 13:37:53.119219950 +0000 | |
+++ /tmp/chef-rendered-template20150512-7204-mm629u 2015-05-12 13:37:53.119219950 +0000 | |
@@ -1 +1,10 @@ | |
+[chef_stable_] | |
+name=chef_stable_ | |
+baseurl=https://packagecloud.io/chef/stable/el/6/$basearch | |
+repo_gpgcheck=1 | |
+gpgcheck=0 | |
+enabled=1 | |
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io | |
+sslverify=1 | |
+sslcacert=/etc/pki/tls/certs/ca-bundle.crt | |
- change mode from '' to '0644' | |
- restore selinux security context | |
* execute[yum-makecache-chef_stable_] action run | |
- execute yum -q makecache -y --disablerepo=* --enablerepo=chef_stable_ | |
* ruby_block[yum-cache-reload-chef_stable_] action create | |
- execute the ruby block yum-cache-reload-chef_stable_ | |
* execute[yum-makecache-chef_stable_] action nothing (skipped due to action :nothing) | |
* ruby_block[yum-cache-reload-chef_stable_] action nothing (skipped due to action :nothing) | |
* yum_package[chef-server-core] action install | |
- install version 12.0.8-1.el6 of package chef-server-core | |
* template[/etc/opscode/chef-server.rb] action create | |
- update content in file /etc/opscode/chef-server.rb from e3b0c4 to b7ab49 | |
--- /etc/opscode/chef-server.rb 2015-05-12 13:44:13.728754948 +0000 | |
+++ /tmp/chef-rendered-template20150512-7204-3ovfyg 2015-05-12 13:44:14.438199580 +0000 | |
@@ -1 +1,5 @@ | |
+topology 'standalone' | |
+api_fqdn '33.33.33.10' | |
+nginx['server_name'] = '33.33.33.10' | |
+ | |
- restore selinux security context | |
* execute[reconfigure chef] action run | |
- execute chef-server-ctl reconfigure | |
* execute[reconfigure chef] action nothing (skipped due to action :nothing) | |
* chef_server_ingredient[opscode-manage] action install | |
* packagecloud_repo[chef/stable] action add | |
* yum_package[pygpgme] action install (up to date) | |
* log[pygpgme_warning] action write (skipped due to not_if) | |
* ruby_block[disable repo_gpgcheck if no pygpgme] action run (skipped due to not_if) | |
* remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io] action create (up to date) | |
* template[/etc/yum.repos.d/chef_stable_.repo] action create (up to date) | |
* execute[yum-makecache-chef_stable_] action nothing (skipped due to action :nothing) | |
* ruby_block[yum-cache-reload-chef_stable_] action nothing (skipped due to action :nothing) | |
(up to date) | |
* yum_package[opscode-manage] action install | |
- install version 1.12.0-1.el5 of package opscode-manage | |
* execute[opscode-manage-ctl reconfigure] action run | |
- execute opscode-manage-ctl reconfigure | |
* chef_server_ingredient[chef-server-core] action reconfigure | |
* execute[chef-server-core-reconfigure] action run | |
- execute chef-server-ctl reconfigure | |
* execute[opscode-manage-ctl reconfigure] action nothing (skipped due to action :nothing) | |
* chef_server_ingredient[opscode-push-jobs-server] action install | |
* packagecloud_repo[chef/stable] action add | |
* yum_package[pygpgme] action install (up to date) | |
* log[pygpgme_warning] action write (skipped due to not_if) | |
* ruby_block[disable repo_gpgcheck if no pygpgme] action run (skipped due to not_if) | |
* remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io] action create (up to date) | |
* template[/etc/yum.repos.d/chef_stable_.repo] action create (up to date) | |
* execute[yum-makecache-chef_stable_] action nothing (skipped due to action :nothing) | |
* ruby_block[yum-cache-reload-chef_stable_] action nothing (skipped due to action :nothing) | |
(up to date) | |
* yum_package[opscode-push-jobs-server] action install | |
- install version 1.1.6-1 of package opscode-push-jobs-server | |
* execute[opscode-push-jobs-server-ctl reconfigure] action run | |
- execute opscode-push-jobs-server-ctl reconfigure | |
* chef_server_ingredient[chef-server-core] action reconfigure | |
* execute[chef-server-core-reconfigure] action run | |
- execute chef-server-ctl reconfigure | |
* execute[opscode-push-jobs-server-ctl reconfigure] action nothing (skipped due to action :nothing) | |
Recipe: chef-server-12::delivery_setup | |
* execute[Create delivery User] action run | |
- execute chef-server-ctl user-create delivery Delivery User [email protected] delivery > /tmp/delivery.pem | |
* execute[Create ssh Organization] action run | |
- execute chef-server-ctl org-create ssh "Chef Continuous Delivery" -a delivery > /tmp/validator.pem | |
* execute[Associate Delivery User to ssh Organization] action run | |
- execute chef-server-ctl org-user-add ssh delivery -a | |
* ruby_block[upload delivery key] action nothing (skipped due to action :nothing) | |
Recipe: chef-server-12::default | |
* chef_server_ingredient[chef-server-core] action reconfigure | |
* execute[chef-server-core-reconfigure] action run | |
- execute chef-server-ctl reconfigure | |
Running handlers: | |
Running handlers complete | |
Chef Client finished, 25/34 resources updated in 968.330395915 seconds | |
- run 'chef-client -l auto' on chef-server-ssh | |
* directory[/Users/salimafiune/github/delivery-cluster/.chef/trusted_certs] action create (up to date) | |
* machine_file[chef-server-cert] action download | |
- download file /var/opt/opscode/nginx/ca/33.33.33.10.crt on chef-server-ssh to /Users/salimafiune/github/delivery-cluster/.chef/trusted_certs/33.33.33.10.crt | |
* directory[/Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh] action create | |
- create new directory /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh | |
* machine_file[/tmp/validator.pem] action download | |
- download file /tmp/validator.pem on chef-server-ssh to /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/validator.pem | |
* machine_file[/tmp/delivery.pem] action download | |
- download file /tmp/delivery.pem on chef-server-ssh to /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/delivery.pem | |
* file[/Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/delivery.pem] action create (up to date) | |
* template[/Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/knife.rb] action create | |
- create new file /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/knife.rb | |
- update content in file /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/knife.rb from none to 3107a1 | |
--- /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/knife.rb 2015-05-12 09:53:46.000000000 -0400 | |
+++ /var/folders/cn/97c0n6h90bdc3ff91vn7fmrr0000gp/T/chef-rendered-template20150512-2693-1kppzen 2015-05-12 09:53:46.000000000 -0400 | |
@@ -1 +1,6 @@ | |
+node_name 'delivery' | |
+chef_server_url 'https://33.33.33.10/organizations/ssh' | |
+client_key '/Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/delivery.pem' | |
+cookbook_path '/Users/salimafiune/github/delivery-cluster/.chef/local-mode-cache/cache/cookbooks' | |
+trusted_certs_dir '/Users/salimafiune/github/delivery-cluster/.chef/trusted_certs' | |
* execute[upload delivery cookbooks] action run | |
- execute knife cookbook upload --all --cookbook-path /Users/salimafiune/github/delivery-cluster/.chef/local-mode-cache/cache/cookbooks --force | |
Recipe: delivery-cluster::setup_delivery_server | |
* file[/Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/encrypted_data_bag_secret] action create | |
- create new file /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/encrypted_data_bag_secret | |
- update content in file /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/encrypted_data_bag_secret from none to 5246a2 | |
- 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/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/builder_key | |
* chef_data_bag[keys] action create | |
- create data bag keys at https://33.33.33.10/organizations/ssh | |
* chef_data_bag_item[keys/delivery_builder_keys] action create | |
- create data bag item delivery_builder_keys at https://33.33.33.10/organizations/ssh | |
- add builder_key | |
- add delivery_pem | |
* machine[delivery-server-ssh] action converge | |
- create new file /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/delivery-server-ssh.json | |
- update content in file /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/delivery-server-ssh.json from none to 1d4d7f | |
- --- /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/delivery-server-ssh.json 2015-05-12 09:54:06.000000000 -0400 | |
- +++ /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/.delivery-server-ssh.json20150512-2693-szs3vh 2015-05-12 09:54:06.000000000 -0400 | |
- @@ -1 +1,38 @@ | |
- +{ | |
- + "convergence_options": { | |
- + "chef_server": { | |
- + "chef_server_url": "https://33.33.33.10/organizations/ssh", | |
- + "options": { | |
- + "client_name": "delivery", | |
- + "signing_key_filename": "/Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/delivery.pem" | |
- + } | |
- + }, | |
- + "allow_overwrite_keys": null, | |
- + "source_key": null, | |
- + "source_key_path": null, | |
- + "source_key_pass_phrase": null, | |
- + "private_key_options": null, | |
- + "ohai_hints": null, | |
- + "public_key_path": null, | |
- + "public_key_format": null, | |
- + "admin": null, | |
- + "validator": null, | |
- + "chef_config": null, | |
- + "bootstrap_proxy": null | |
- + }, | |
- + "transport_options": { | |
- + "host": "33.33.33.11", | |
- + "username": "vagrant", | |
- + "ssh_options": { | |
- + "user": "vagrant", | |
- + "password": null, | |
- + "keys": [ | |
- + "/Users/salimafiune/.vagrant.d/insecure_private_key" | |
- + ] | |
- + }, | |
- + "options": { | |
- + "prefix": "sudo " | |
- + } | |
- + } | |
- +} | |
- create node delivery-server-ssh at https://33.33.33.10/organizations/ssh | |
- add normal.tags = nil | |
- add normal.chef_provisioning = {"reference"=>{"driver_url"=>"ssh:/Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh", "driver_version"=>"0.0.7", "target_name"=>"delivery-server-ssh", "ssh_machine_file"=>"/Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/delivery-server-ssh.json", "allocated_at"=>"2015-05-12 13:54:06 UTC"}} | |
- waiting for delivery-server-ssh ( on ssh:/Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh) to be connectable (transport up and running) ... | |
- generate private key (2048 bits) | |
- create directory /etc/chef on delivery-server-ssh | |
- write file /etc/chef/client.pem on delivery-server-ssh | |
- create client delivery-server-ssh at clients | |
- add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8DWPiQlcuOXNv9QGmnFe\n7RnV24ZAxs3FSistEj70G6nn15bLS/v46HYy9Eswc2R15TJ3kc3zoJ5B2R5Od4kk\n1bvs4qAp+jLueh02+Prk+KEMAPi3XIAUynDt7wf3B2WomJSH4lmsLOMlrwakwBVN\nC+VOytxqtPAyh15CU2zWTTwuPkA/0qI46Jvs8VWvxifha8T8nTCW+Jq4hH6CPjGW\n27fYczMkYnB7fWpeeMTTSzm7dkL098W6nTwkdahBpO27U4y+yZkqz2yE/SA9GjE9\nA/+r+BDeZsUQxrfnGBXd9CDH4FrDlM8/yBvuCVCY4ElY7CDX/pcj6NzBQHiXBY0L\nEQIDAQAB\n-----END PUBLIC KEY-----\n" | |
- Add delivery-server-ssh to client read ACLs | |
- Add delivery-server-ssh to client update ACLs | |
- write file /etc/chef/client.rb on delivery-server-ssh | |
- write file /tmp/chef-install.sh on delivery-server-ssh | |
- run 'bash -c ' bash /tmp/chef-install.sh'' on delivery-server-ssh | |
- upload file /Users/salimafiune/github/delivery-cluster/.chef/trusted_certs/33.33.33.10.crt to /etc/chef/trusted_certs/33.33.33.10.crt on delivery-server-ssh | |
[delivery-server-ssh] Starting Chef Client, version 12.3.0 | |
resolving cookbooks for run list: [] | |
Synchronizing Cookbooks: | |
Compiling Cookbooks... | |
[2015-05-12T14:02:58+00:00] WARN: Node delivery-server-ssh has an empty run list. | |
Converging 0 resources | |
Running handlers: | |
Running handlers complete | |
Chef Client finished, 0/0 resources updated in 1.438497343 seconds | |
- run 'chef-client -l auto' on delivery-server-ssh | |
* machine_execute[Create "/var/opt/delivery/license" directory on Delivery Server] action run | |
- run 'mkdir -p /var/opt/delivery/license' on delivery-server-ssh | |
* machine_file[/var/opt/delivery/license/delivery.license] action upload | |
- upload file /Users/salimafiune/chef/delivery/delivery-licenses/delivery.license to /var/opt/delivery/license/delivery.license on delivery-server-ssh | |
* machine[delivery-server-ssh] action converge | |
- update node delivery-server-ssh at https://33.33.33.10/organizations/ssh | |
- add normal.delivery-cluster = {"driver"=>"ssh", "aws"=>{"key_name"=>"salimafiune", "ssh_username"=>nil, "security_group_ids"=>nil, "image_id"=>nil, "bootstrap_proxy"=>nil, "use_private_ip_for_ssh"=>false}, "ssh"=>{"key_file"=>"/Users/salimafiune/.vagrant.d/insecure_private_key", "prefix"=>nil, "ssh_username"=>"vagrant", "bootstrap_proxy"=>nil, "use_private_ip_for_ssh"=>false}, "vagrant"=>{"key_file"=>nil, "ssh_username"=>nil, "use_private_ip_for_ssh"=>false}, "azure"=>{"ssh_username"=>nil, "use_private_ip_for_ssh"=>false}, "id"=>"ssh", "delivery"=>{"license_file"=>"/Users/salimafiune/chef/delivery/delivery-licenses/delivery.license", "hostname"=>"delivery-server-ssh", "fqdn"=>"33.33.33.11", "chef_server"=>"https://33.33.33.10/organizations/ssh", "flavor"=>"t2.medium", "enterprise"=>"ssh", "recipes"=>[], "pass-through"=>true, "ldap"=>{}, "version"=>"latest", "artifactory"=>false, "host"=>"33.33.33.11"}, "chef-server"=>{"hostname"=>"chef-server-ssh", "fqdn"=>nil, "organization"=>"ssh", "flavor"=>"t2.medium", "existing"=>false, "recipes"=>[], "host"=>"33.33.33.10"}, "analytics"=>{"hostname"=>nil, "fqdn"=>nil, "features"=>"false", "flavor"=>"t2.medium", "host"=>"33.33.33.12"}, "splunk"=>{"hostname_prefix"=>nil, "username"=>"admin", "password"=>nil, "flavor"=>"c3.large"}, "supermarket"=>{"hostname"=>nil, "fqdn"=>nil, "flavor"=>"c3.large", "host"=>"33.33.33.13"}, "builders"=>{"hostname_prefix"=>"build-node-ssh", "count"=>"1", "flavor"=>"t2.small", "additional_run_list"=>[], "delivery-cli"=>{}, "1"=>{"host"=>"33.33.33.14"}}} | |
- update run_list from [] to ["recipe[delivery-cluster::delivery]"] | |
- upload file /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/delivery.pem to /etc/delivery/delivery.pem on delivery-server-ssh | |
- upload file /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/builder_key to /etc/delivery/builder_key on delivery-server-ssh | |
- upload file /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/builder_key.pub to /etc/delivery/builder_key.pub on delivery-server-ssh | |
[delivery-server-ssh] Starting Chef Client, version 12.3.0 | |
resolving cookbooks for run list: ["delivery-cluster::delivery"] | |
Synchronizing Cookbooks: | |
- delivery-cluster | |
- chef-server-12 | |
- chef-server-ingredient | |
- packagecloud | |
- delivery_build | |
- git | |
- build-essential | |
- dmg | |
- windows | |
- chef_handler | |
- yum-epel | |
- yum | |
- push-jobs | |
- runit | |
- chef-splunk | |
- chef-vault | |
- supermarket-omnibus-cookbook | |
Compiling Cookbooks... | |
Converging 5 resources | |
Recipe: delivery-cluster::delivery | |
* packagecloud_repo[chef/current] action add | |
* yum_package[pygpgme] action install (up to date) | |
* log[pygpgme_warning] action write (skipped due to not_if) | |
* ruby_block[disable repo_gpgcheck if no pygpgme] action run (skipped due to not_if) | |
* remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io] action create | |
- create new file /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io | |
- update content in file /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io from none to e42d7e | |
--- /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io 2015-05-12 14:03:26.368006827 +0000 | |
+++ /tmp/chef-rest20150512-6825-3n2364 2015-05-12 14:03:26.366005572 +0000 | |
@@ -1 +1,65 @@ | |
+-----BEGIN PGP PUBLIC KEY BLOCK----- | |
+Version: GnuPG v1.4.11 (GNU/Linux) | |
+ | |
+mQINBFLUbogBEADceEoxBDoE6QM5xV/13qiELbFIkQgy/eEi3UesXmJblFdU7wcD | |
+LOW3NuOIx/dgbZljeMEerj6N1cR7r7X5sVoFVEZiK4RLkC3Cpdns0d90ud2f3VyK | |
+K7PXRBstdLm3JlW9OWZoe4VSADSMGWm1mIhT601qLKKAuWJoBIhnKY/RhA/RBXt7 | |
+z22g4ta9bT67PlliTo1a8y6DhUA7gd+5TsVHaxDRrzc3mKObdyS5LOT/gf8Ti2tY | |
+BY5MBbQ8NUGExls4dXKlieePhKutFbde7sq3n5sd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vVr/9j+V9mmrOx7QmQ5LCc/ | |
+1on+L0dqo6suoajADhKy+lDQbzs2mVb4CLpPKncDup/9iJbjiR17DDFMwgyCoy5O | |
+HJICQ5lckNNgkHTS6Xiogkt28YfK4P3S0GaZgIrhKQ7AmO3O+hB12Zr+olpeyhGB | |
+OpBD80URntdEcenvfnXBY/BsuAVbTGXiBzrlBEyQxg656jUeqAdXg+nzCvP0yJlB | |
+UOjEcwyhK/U2nw9nGyaR3u0a9r24LgijGpdGabIeJm6O9vuuqFHHGI72pWUEs355 | |
+lt8q1pAoJUv8NehQmlaR0h5wcwhEtwM6fiSIUTnuJnyHT053GjsUD7ef5fY1KEFm | |
+aZeW04kRtFDOPinz0faE8hvsxzsVgkKye1c2vkXKdOXvA3x+pZzlTHtcgMOhjKQA | |
+sA== | |
+=H60S | |
+-----END PGP PUBLIC KEY BLOCK----- | |
- change mode from '' to '0644' | |
- restore selinux security context | |
* template[/etc/yum.repos.d/chef_current_.repo] action create | |
- create new file /etc/yum.repos.d/chef_current_.repo | |
- update content in file /etc/yum.repos.d/chef_current_.repo from none to 093de0 | |
--- /etc/yum.repos.d/chef_current_.repo 2015-05-12 14:03:26.524104666 +0000 | |
+++ /tmp/chef-rendered-template20150512-6825-119urvi 2015-05-12 14:03:26.524104666 +0000 | |
@@ -1 +1,10 @@ | |
+[chef_current_] | |
+name=chef_current_ | |
+baseurl=https://packagecloud.io/chef/current/el/6/$basearch | |
+repo_gpgcheck=1 | |
+gpgcheck=0 | |
+enabled=1 | |
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io | |
+sslverify=1 | |
+sslcacert=/etc/pki/tls/certs/ca-bundle.crt | |
- change mode from '' to '0644' | |
- restore selinux security context | |
* execute[yum-makecache-chef_current_] action run | |
- execute yum -q makecache -y --disablerepo=* --enablerepo=chef_current_ | |
* ruby_block[yum-cache-reload-chef_current_] action create | |
- execute the ruby block yum-cache-reload-chef_current_ | |
* execute[yum-makecache-chef_current_] action nothing (skipped due to action :nothing) | |
* ruby_block[yum-cache-reload-chef_current_] action nothing (skipped due to action :nothing) | |
* yum_package[delivery] action upgrade | |
- upgrade package delivery from uninstalled to 0.3.47-1.el6 | |
* 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 1b4009 | |
--- /etc/delivery/delivery.rb 2015-05-12 14:10:09.002345195 +0000 | |
+++ /tmp/chef-rendered-template20150512-6825-3c04qw 2015-05-12 14:10:09.001344568 +0000 | |
@@ -1 +1,9 @@ | |
+delivery_fqdn "33.33.33.11" | |
+ | |
+delivery['chef_username'] = "delivery" | |
+delivery['chef_private_key'] = "/etc/delivery/delivery.pem" | |
+delivery['chef_server'] = "https://33.33.33.10/organizations/ssh" | |
+ | |
+delivery['default_search'] = "((recipes:delivery_build OR recipes:delivery_build\\\\:\\\\:default) AND chef_environment:_default)" | |
+ | |
- restore selinux security context | |
* 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, 8/10 resources updated in 478.871655123 seconds | |
- run 'chef-client -l auto' on delivery-server-ssh | |
* machine_execute[Chown '/etc/delivery' to 'delivery' user] action run | |
- run 'chown -R delivery /etc/delivery' on delivery-server-ssh | |
* machine_file[delivery-server-cert] action download | |
- download file /var/opt/delivery/nginx/ca/33.33.33.11.crt on delivery-server-ssh to /Users/salimafiune/github/delivery-cluster/.chef/trusted_certs/33.33.33.11.crt | |
* machine_execute[Creating Enterprise] action run | |
- run 'sudo -E delivery-ctl list-enterprises | grep -w ^ssh; [ $? -ne 0 ] && sudo -E delivery-ctl create-enterprise ssh --ssh-pub-key-file=/etc/delivery/builder_key.pub > /tmp/ssh.creds || echo 1' on delivery-server-ssh | |
* machine_file[/tmp/ssh.creds] action download | |
- download file /tmp/ssh.creds on delivery-server-ssh to /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/ssh.creds | |
* ruby_block[print-delivery-credentials] action runCreated enterprise: ssh | |
Admin username: admin | |
Admin password: PkqrKp01mA72SRLkmgSGCUc7C1agwFZlfpE= | |
Builder Password: 6/S3vv6uC9Cgzxekb1TKEX1tjLZpPTiE2qY= | |
Web login: https://33.33.33.11/e/ssh/ | |
- execute the ruby block print-delivery-credentials | |
Recipe: delivery-cluster::setup_delivery_builders | |
* chef_role[delivery_builders] action create | |
- create role delivery_builders at https://33.33.33.10/organizations/ssh | |
- 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 | |
- [build-node-ssh-1] create new file /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/build-node-ssh-1.json | |
- [build-node-ssh-1] update content in file /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/build-node-ssh-1.json from none to 7c7f60 | |
- [build-node-ssh-1] --- /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/build-node-ssh-1.json 2015-05-12 10:11:09.000000000 -0400 | |
- [build-node-ssh-1] +++ /Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/.build-node-ssh-1.json20150512-2868-1315x3n 2015-05-12 10:11:09.000000000 -0400 | |
- [build-node-ssh-1] @@ -1 +1,40 @@ | |
- [build-node-ssh-1] +{ | |
- [build-node-ssh-1] + "convergence_options": { | |
- [build-node-ssh-1] + "chef_server": { | |
- [build-node-ssh-1] + "chef_server_url": "https://33.33.33.10/organizations/ssh", | |
- [build-node-ssh-1] + "options": { | |
- [build-node-ssh-1] + "client_name": "delivery", | |
- [build-node-ssh-1] + "signing_key_filename": "/Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/delivery.pem" | |
- [build-node-ssh-1] + } | |
- [build-node-ssh-1] + }, | |
- [build-node-ssh-1] + "allow_overwrite_keys": null, | |
- [build-node-ssh-1] + "source_key": null, | |
- [build-node-ssh-1] + "source_key_path": null, | |
- [build-node-ssh-1] + "source_key_pass_phrase": null, | |
- [build-node-ssh-1] + "private_key_options": null, | |
- [build-node-ssh-1] + "ohai_hints": null, | |
- [build-node-ssh-1] + "public_key_path": null, | |
- [build-node-ssh-1] + "public_key_format": null, | |
- [build-node-ssh-1] + "admin": null, | |
- [build-node-ssh-1] + "validator": null, | |
- [build-node-ssh-1] + "chef_config": null, | |
- [build-node-ssh-1] + "chef_config_text": "encrypted_data_bag_secret File.join(File.dirname(__FILE__), 'encrypted_data_bag_secret')", | |
- [build-node-ssh-1] + "ssl_verify_mode": "verify_none", | |
- [build-node-ssh-1] + "bootstrap_proxy": null | |
- [build-node-ssh-1] + }, | |
- [build-node-ssh-1] + "transport_options": { | |
- [build-node-ssh-1] + "host": "33.33.33.14", | |
- [build-node-ssh-1] + "username": "vagrant", | |
- [build-node-ssh-1] + "ssh_options": { | |
- [build-node-ssh-1] + "user": "vagrant", | |
- [build-node-ssh-1] + "password": null, | |
- [build-node-ssh-1] + "keys": [ | |
- [build-node-ssh-1] + "/Users/salimafiune/.vagrant.d/insecure_private_key" | |
- [build-node-ssh-1] + ] | |
- [build-node-ssh-1] + }, | |
- [build-node-ssh-1] + "options": { | |
- [build-node-ssh-1] + "prefix": "sudo " | |
- [build-node-ssh-1] + } | |
- [build-node-ssh-1] + } | |
- [build-node-ssh-1] +} | |
- [build-node-ssh-1] create node build-node-ssh-1 at https://33.33.33.10/organizations/ssh | |
- [build-node-ssh-1] add normal.tags = nil | |
- [build-node-ssh-1] add normal.chef_provisioning = {"reference"=>{"driver_url"=>"ssh:/Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh", "driver_version"=>"0.0.7", "target_name"=>"build-node-ssh-1", "ssh_machine_file"=>"/Users/salimafiune/github/delivery-cluster/.chef/provisioning/ssh/build-node-ssh-1.json", "allocated_at"=>"2015-05-12 14:11:09 UTC"}} | |
- [build-node-ssh-1] update run_list from [] to ["role[delivery_builders]"][2015-05-12T10:11:11-04:00] ERROR: Unable to download /etc/chef/client.pem to /tmp/client.pem.2215843174 on [email protected] -- Error: command 'cp /etc/chef/client.pem /tmp/client.pem.2215843174' exited with code 1. | |
[2015-05-12T10:11:11-04:00] WARN: Unable to clean up /tmp/client.pem.2215843174 on [email protected] -- Error: command 'rm /tmp/client.pem.2215843174' exited with code 1. | |
- [build-node-ssh-1] generate private key (2048 bits) | |
- [build-node-ssh-1] create directory /etc/chef on build-node-ssh-1 | |
- [build-node-ssh-1] write file /etc/chef/client.pem on build-node-ssh-1 | |
- [build-node-ssh-1] create client build-node-ssh-1 at clients | |
- [build-node-ssh-1] add public_key = "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqocqGTdfve0J3QQ6q0Fk\ndmvyO08cj1Utm8L+eirUtvHMmMxdJzR54oql5FuPmey81do9IkNDfNMAV+ClI33C\nfKWqyRusT0gP+WwSPjbT8T3aJ0wX/4V6MmuBRrUrSRz5ZUL0rCQLC+Gn9hHsTvZG\nbxKQC2811y1yDvpe06QXxv+iCJ5htLcYqy2hanQsy3ZvtqmTDPxKOJR4Oo4rf2Bv\nBqV/U3Bc3I46AJwEj+FYFuEnljmICPYESN0jOovZw1XETmXWvAiv0gpFLKTZxVb1\nEQcK6WWHuT2ICsD6APd0wLiJHekegIBgFDnVWLR+GmzGPPvMyo9ghIJB83NP4iXZ\nNwIDAQAB\n-----END PUBLIC KEY-----\n" | |
- [build-node-ssh-1] Add build-node-ssh-1 to client read ACLs | |
- [build-node-ssh-1] Add build-node-ssh-1 to client update ACLs | |
- [build-node-ssh-1] write file /etc/chef/client.rb on build-node-ssh-1 | |
- [build-node-ssh-1] write file /tmp/chef-install.sh on build-node-ssh-1 | |
- [build-node-ssh-1] run 'bash -c ' bash /tmp/chef-install.sh'' on build-node-ssh-1 | |
- [build-node-ssh-1] upload file /Users/salimafiune/github/delivery-cluster/.chef/trusted_certs/33.33.33.10.crt to /etc/chef/trusted_certs/33.33.33.10.crt on build-node-ssh-1 | |
- [build-node-ssh-1] upload file /Users/salimafiune/github/delivery-cluster/.chef/trusted_certs/33.33.33.11.crt to /etc/chef/trusted_certs/33.33.33.11.crt on build-node-ssh-1 | |
- [build-node-ssh-1] upload file /Users/salimafiune/github/delivery-cluster/.chef/../.chef/delivery-cluster-data-ssh/encrypted_data_bag_secret to /etc/chef/encrypted_data_bag_secret on build-node-ssh-1 | |
[build-node-ssh-1] Starting Chef Client, version 12.3.0 | |
resolving cookbooks for run list: ["push-jobs", "delivery_build"] | |
Synchronizing Cookbooks: | |
- push-jobs | |
- runit | |
- build-essential | |
- yum | |
- yum-epel | |
- windows | |
- chef_handler | |
- delivery_build | |
- git | |
- dmg | |
- packagecloud | |
Compiling Cookbooks... | |
Converging 47 resources | |
Recipe: push-jobs::linux | |
* remote_file[/var/chef/cache/opscode-push-jobs-client-1.1.5-1.el6.x86_64.rpm] action create | |
- create new file /var/chef/cache/opscode-push-jobs-client-1.1.5-1.el6.x86_64.rpm | |
- update content in file /var/chef/cache/opscode-push-jobs-client-1.1.5-1.el6.x86_64.rpm from none to f5e6be | |
(file sizes exceed 10000000 bytes, diff output suppressed) | |
- change mode from '' to '0644' | |
- restore selinux security context | |
* yum_package[opscode-push-jobs-client] action install | |
- install version 1.1.5-1.el6 of package opscode-push-jobs-client | |
Recipe: push-jobs::config | |
* directory[/etc/chef] action create (up to date) | |
* template[/etc/chef/push-jobs-client.rb] action create | |
- create new file /etc/chef/push-jobs-client.rb | |
- update content in file /etc/chef/push-jobs-client.rb from none to 5bbb96 | |
--- /etc/chef/push-jobs-client.rb 2015-05-12 14:12:01.230178169 +0000 | |
+++ /tmp/chef-rendered-template20150512-2834-14z69t4 2015-05-12 14:12:01.230178169 +0000 | |
@@ -1 +1,12 @@ | |
+# Generated by Chef for build-node1.example.com | |
+# | |
+# Local modifications will be overwritten! | |
+ | |
+Chef::Config.from_file("/etc/chef/client.rb") | |
+ | |
+# The whitelist comes from node['push_jobs']['whitelist'] | |
+whitelist({"chef-client"=>"chef-client", /^delivery-cmd (.+)$/=>"/var/opt/delivery/workspace/bin/delivery-cmd '\\1'"}) | |
+ | |
+# We're under runit, so don't output timestamp | |
+Mixlib::Log::Formatter.show_time = false | |
- change mode from '' to '0644' | |
- change owner from '' to 'root' | |
- change group from '' to 'root' | |
- restore selinux security context | |
Recipe: runit::default | |
* service[runit] action nothing (skipped due to action :nothing) | |
* execute[start-runsvdir] action nothing (skipped due to action :nothing) | |
* execute[runit-hup-init] action nothing (skipped due to action :nothing) | |
Recipe: build-essential::_rhel | |
* yum_package[autoconf] action install | |
- install version 2.63-5.1.el6 of package autoconf | |
* yum_package[bison] action install | |
- install version 2.4.1-5.el6 of package bison | |
* yum_package[flex] action install | |
- install version 2.5.35-9.el6 of package flex | |
* yum_package[gcc] action install | |
- install version 4.4.7-11.el6 of package gcc | |
* yum_package[gcc-c++] action install | |
- install version 4.4.7-11.el6 of package gcc-c++ | |
* yum_package[kernel-devel] action install | |
- install version 2.6.32-504.16.2.el6 of package kernel-devel | |
* yum_package[make] action install (up to date) | |
* yum_package[m4] action install (up to date) | |
* yum_package[patch] action install | |
- install version 2.6-6.el6 of package patch | |
Recipe: runit::default | |
* yum_package[rpm-build] action install | |
- install version 4.8.0-38.el6_6 of package rpm-build | |
* yum_package[rpmdevtools] action install | |
- install version 7.5-2.el6 of package rpmdevtools | |
* yum_package[tar] action install (up to date) | |
* yum_package[gzip] action install (up to date) | |
* yum_package[glibc-static] action install | |
- install version 2.12-1.149.el6_6.7 of package glibc-static | |
* cookbook_file[/var/chef/cache/runit-2.1.1.tar.gz] action create | |
- create new file /var/chef/cache/runit-2.1.1.tar.gz | |
- update content in file /var/chef/cache/runit-2.1.1.tar.gz from none to fcd94a | |
(new content is binary, diff output suppressed) | |
- restore selinux security context | |
* bash[rhel_build_install] action run | |
- execute "bash" "/tmp/chef-script20150512-2834-7rpr6o" | |
* bash[rhel_build_install] action run (skipped due to not_if) | |
Recipe: <Dynamically Defined Resource> | |
* service[opscode-push-jobs-client] action nothing (skipped due to action :nothing) | |
Recipe: push-jobs::service | |
* runit_service[opscode-push-jobs-client] action enable | |
Recipe: <Dynamically Defined Resource> | |
* directory[/etc/sv/opscode-push-jobs-client] action create | |
- create new directory /etc/sv/opscode-push-jobs-client | |
- change mode from '' to '0755' | |
- restore selinux security context | |
* template[/etc/sv/opscode-push-jobs-client/run] action create | |
- create new file /etc/sv/opscode-push-jobs-client/run | |
- update content in file /etc/sv/opscode-push-jobs-client/run from none to 4b7f78 | |
--- /etc/sv/opscode-push-jobs-client/run 2015-05-12 14:14:11.594776903 +0000 | |
+++ /tmp/chef-rendered-template20150512-2834-8z58r2 2015-05-12 14:14:11.594776903 +0000 | |
@@ -1 +1,4 @@ | |
+#!/bin/sh | |
+exec 2>&1 | |
+exec /opt/opscode-push-jobs-client/bin/pushy-client -c /etc/chef/push-jobs-client.rb | |
- change mode from '' to '0755' | |
- restore selinux security context | |
* directory[/etc/sv/opscode-push-jobs-client/log] action create | |
- create new directory /etc/sv/opscode-push-jobs-client/log | |
- change mode from '' to '0755' | |
- restore selinux security context | |
* directory[/etc/sv/opscode-push-jobs-client/log/main] action create | |
- create new directory /etc/sv/opscode-push-jobs-client/log/main | |
- change mode from '' to '0755' | |
- restore selinux security context | |
* directory[/var/log/opscode-push-jobs-client] action create | |
- create new directory /var/log/opscode-push-jobs-client | |
- change mode from '' to '0755' | |
- restore selinux security context | |
* file[/etc/sv/opscode-push-jobs-client/log/run] action create | |
- create new file /etc/sv/opscode-push-jobs-client/log/run | |
- update content in file /etc/sv/opscode-push-jobs-client/log/run from none to e58438 | |
--- /etc/sv/opscode-push-jobs-client/log/run 2015-05-12 14:14:12.146847080 +0000 | |
+++ /etc/sv/opscode-push-jobs-client/log/.run20150512-2834-1y2udf6 2015-05-12 14:14:12.146847080 +0000 | |
@@ -1 +1,3 @@ | |
+#!/bin/sh | |
+exec svlogd -tt /var/log/opscode-push-jobs-client | |
- change mode from '' to '0755' | |
- restore selinux security context | |
* template[/etc/sv/opscode-push-jobs-client/log/config] action create | |
- create new file /etc/sv/opscode-push-jobs-client/log/config | |
- update content in file /etc/sv/opscode-push-jobs-client/log/config from none to e3b0c4 | |
(no diff) | |
- change mode from '' to '0644' | |
- restore selinux security context | |
* link[/etc/init.d/opscode-push-jobs-client] action create | |
- create symlink at /etc/init.d/opscode-push-jobs-client to /sbin/sv | |
- configure service runit_service[opscode-push-jobs-client] | |
* link[/etc/service/opscode-push-jobs-client] action create | |
- create symlink at /etc/service/opscode-push-jobs-client to /etc/sv/opscode-push-jobs-client | |
- enable service runit_service[opscode-push-jobs-client] | |
Recipe: git::default | |
* git_client[default] action install[2015-05-12T14:14:20+00:00] WARN: Ambiguous provider precedence: [Chef::Provider::GitClient::Package, Chef::Provider::GitClient::Source], please use Chef.set_provider_priority_array to provide determinism | |
* yum_package[default :create git] action install | |
- install version 1.7.1-3.el6_4.1 of package git | |
Recipe: delivery_build::repo | |
* packagecloud_repo[chef/stable] action add | |
* yum_package[pygpgme] action install (up to date) | |
* log[pygpgme_warning] action write (skipped due to not_if) | |
* ruby_block[disable repo_gpgcheck if no pygpgme] action run (skipped due to not_if) | |
* remote_file[/etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io] action create | |
- create new file /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io | |
- update content in file /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io from none to e42d7e | |
--- /etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io 2015-05-12 14:14:31.850351278 +0000 | |
+++ /tmp/chef-rest20150512-2834-1skzaeg 2015-05-12 14:14:31.848351021 +0000 | |
@@ -1 +1,65 @@ | |
+-----BEGIN PGP PUBLIC KEY BLOCK----- | |
+Version: GnuPG v1.4.11 (GNU/Linux) | |
+ | |
+mQINBFLUbogBEADceEoxBDoE6QM5xV/13qiELbFIkQgy/eEi3UesXmJblFdU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KHQEzbSW5coxzU6oOiPbTurCZorIMHTA9cpAZoMUGKaSt19UKIMvSqtcDayhgf4c | |
+Z2ay1z0fdJ2PuLeNnWeiGyfq78q6wqSaJq/h6JdAiwXplFd3gqJZTrFZz7A6Q6Pd | |
+7B+9PZ/DUdEO3JeZlHJDfRmfU2XPoyPUoq79+whP5Tl3WwHUv7Fg357kRSdzKv9D | |
+bgmhqRHlgVeKn9pwN4cpVBN+idzwPefQksSKH4lBDvVr/9j+V9mmrOx7QmQ5LCc/ | |
+1on+L0dqo6suoajADhKy+lDQbzs2mVb4CLpPKncDup/9iJbjiR17DDFMwgyCoy5O | |
+HJICQ5lckNNgkHTS6Xiogkt28YfK4P3S0GaZgIrhKQ7AmO3O+hB12Zr+olpeyhGB | |
+OpBD80URntdEcenvfnXBY/BsuAVbTGXiBzrlBEyQxg656jUeqAdXg+nzCvP0yJlB | |
+UOjEcwyhK/U2nw9nGyaR3u0a9r24LgijGpdGabIeJm6O9vuuqFHHGI72pWUEs355 | |
+lt8q1pAoJUv8NehQmlaR0h5wcwhEtwM6fiSIUTnuJnyHT053GjsUD7ef5fY1KEFm | |
+aZeW04kRtFDOPinz0faE8hvsxzsVgkKye1c2vkXKdOXvA3x+pZzlTHtcgMOhjKQA | |
+sA== | |
+=H60S | |
+-----END PGP PUBLIC KEY BLOCK----- | |
- change mode from '' to '0644' | |
- restore selinux security context | |
* template[/etc/yum.repos.d/chef_stable_.repo] action create | |
- create new file /etc/yum.repos.d/chef_stable_.repo | |
- update content in file /etc/yum.repos.d/chef_stable_.repo from none to 89f6bd | |
--- /etc/yum.repos.d/chef_stable_.repo 2015-05-12 14:14:31.981367934 +0000 | |
+++ /tmp/chef-rendered-template20150512-2834-x6gqah 2015-05-12 14:14:31.981367934 +0000 | |
@@ -1 +1,10 @@ | |
+[chef_stable_] | |
+name=chef_stable_ | |
+baseurl=https://packagecloud.io/chef/stable/el/6/$basearch | |
+repo_gpgcheck=1 | |
+gpgcheck=0 | |
+enabled=1 | |
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-packagecloud_io | |
+sslverify=1 | |
+sslcacert=/etc/pki/tls/certs/ca-bundle.crt | |
- change mode from '' to '0644' | |
- restore selinux security context | |
* execute[yum-makecache-chef_stable_] action run | |
- execute yum -q makecache -y --disablerepo=* --enablerepo=chef_stable_ | |
* ruby_block[yum-cache-reload-chef_stable_] action create | |
- execute the ruby block yum-cache-reload-chef_stable_ | |
* execute[yum-makecache-chef_stable_] action nothing (skipped due to action :nothing) | |
* ruby_block[yum-cache-reload-chef_stable_] action nothing (skipped due to action :nothing) | |
Recipe: delivery_build::chefdk | |
* yum_package[chefdk] action upgrade | |
- upgrade package chefdk from uninstalled to 0.5.1-1.el6 | |
* file[/root/.gemrc] action create | |
- create new file /root/.gemrc | |
- update content in file /root/.gemrc from none to 6936fa | |
--- /root/.gemrc 2015-05-12 14:17:07.874181174 +0000 | |
+++ /root/..gemrc20150512-2834-qxtznz 2015-05-12 14:17:07.874181174 +0000 | |
@@ -1 +1,12 @@ | |
+--- | |
+:benchmark: false | |
+:verbose: true | |
+:update_sources: true | |
+gem: --no-rdoc --no-ri | |
+install: --no-user-install | |
+:sources: | |
+- http://rubygems.org/ | |
+- http://gems.github.com/ | |
+:backtrace: true | |
+:bulk_threshold: 1000 | |
- change mode from '' to '0644' | |
- change owner from '' to 'root' | |
- restore selinux security context | |
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::workspace | |
* directory[/var/opt/delivery/workspace] action create | |
- change mode from '0700' to '0755' | |
- change owner from 'dbuild' to 'root' | |
- 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 | |
* 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 'root' | |
- restore selinux security context | |
* template[/var/opt/delivery/workspace/bin/git_ssh] action create | |
- create new file /var/opt/delivery/workspace/bin/git_ssh | |
- update content in file /var/opt/delivery/workspace/bin/git_ssh from none to 0da630 | |
--- /var/opt/delivery/workspace/bin/git_ssh 2015-05-12 14:17:09.116339046 +0000 | |
+++ /tmp/chef-rendered-template20150512-2834-1ic4mcs 2015-05-12 14:17:09.116339046 +0000 | |
@@ -1 +1,15 @@ | |
+#!/bin/bash | |
+# Martin Emde | |
+# https://github.com/martinemde/git-ssh-wrapper | |
+ | |
+unset SSH_AUTH_SOCK | |
+ssh -o CheckHostIP=no \ | |
+ -o IdentitiesOnly=yes \ | |
+ -o LogLevel=INFO \ | |
+ -o StrictHostKeyChecking=no \ | |
+ -o PasswordAuthentication=no \ | |
+ -o UserKnownHostsFile=/var/opt/delivery/workspace/etc/delivery-git-ssh-known-hosts \ | |
+ -o IdentityFile=/var/opt/delivery/workspace/etc/builder_key \ | |
+ -l builder \ | |
+ $* | |
- change mode from '' to '0755' | |
- change owner from '' to 'root' | |
- restore selinux security context | |
* file[/var/opt/delivery/workspace/etc/delivery-git-ssh-known-hosts] action create | |
- create new file /var/opt/delivery/workspace/etc/delivery-git-ssh-known-hosts | |
- change mode from '' to '0644' | |
- change owner from '' to 'dbuild' | |
- restore selinux security context | |
* template[/var/opt/delivery/workspace/bin/delivery-cmd] action create | |
- create new file /var/opt/delivery/workspace/bin/delivery-cmd | |
- update content in file /var/opt/delivery/workspace/bin/delivery-cmd from none to 7460a3 | |
--- /var/opt/delivery/workspace/bin/delivery-cmd 2015-05-12 14:17:09.381372732 +0000 | |
+++ /tmp/chef-rendered-template20150512-2834-h3jwfg 2015-05-12 14:17:09.381372732 +0000 | |
@@ -1 +1,166 @@ | |
+#!/opt/chef/embedded/bin/ruby | |
+ | |
+require 'chef' | |
+require 'chef/config' | |
+require 'chef/rest' | |
+require 'chef/client' | |
+require 'base64' | |
+require 'uri' | |
+ | |
+module Delivery | |
+ # Helper methods for our build node job runner workflow. | |
+ module JobHelpers | |
+ | |
+ # All build nodes currently leverage a built-in internal user that | |
+ # all enterprises have; its name is "builder". | |
+ # | |
+ # This is my builder. There are many like it, but this is mine. | |
+ BUILDER_USER = "builder" | |
+ | |
+ # Create appropriate authentication headers for a builder, given a | |
+ # job data hash. If no token is present in `job_data` (because the | |
+ # build nodes were updated before the server began handing tokens | |
+ # out), an empty set of headers is returned. | |
+ # | |
+ # @param job_data [Hash] Describes the job being run; we're | |
+ # looking for a `token` key. | |
+ # | |
+ # @return [Hash] authentication headers, suitable for passing into | |
+ # a `Chef::REST` call. | |
+ def self.builder_auth_headers(job_data) | |
+ if job_token = job_data["token"] | |
+ {"chef-delivery-token" => job_token, | |
+ "chef-delivery-user" => BUILDER_USER} | |
+ else | |
+ {} | |
+ end | |
+ end | |
+ | |
+ end # JobHelpers | |
+end # Delivery | |
+ | |
+class Streamy | |
+ attr_accessor :output, :rest, :path, :builder_auth_headers | |
+ | |
+ def initialize(rest, path, headers) | |
+ @rest = rest | |
+ @path = path | |
+ @builder_auth_headers = headers | |
+ @output = "" | |
+ end | |
+ | |
+ def <<(arg) | |
+ begin | |
+ # Force the chef-client output into UTF-8 to prevent issues | |
+ # sending it to our REST API. | |
+ @output << arg.force_encoding('utf-8') | |
+ rest.post(path, | |
+ { | |
+ "run_success" => false, | |
+ "run_log" => @output, | |
+ "run_status" => "running", | |
+ "run_complete" => false | |
+ }, | |
+ builder_auth_headers | |
+ ) | |
+ rescue | |
+ # If we hit this block it means 1 of 2 things went wrong: | |
+ # 1) There was an error encoding the String | |
+ # 2) There was an error talking to the Delivery Server | |
+ # | |
+ # The first case, while unlikely, shouldn't cause the entire phase | |
+ # run to fail. We would rather have a successful phase runs without | |
+ # logs than a failed phase runs due to logging errors. | |
+ # | |
+ # The second case, if it happens with the request, the logs will continue | |
+ # to aggregate and be sent on the next attempt. If we continue to get | |
+ # request errors than eventually the job will time out and we will know | |
+ # there is something wrong with the build node or the delivery server. | |
+ end | |
+ end | |
+ | |
+ def to_str | |
+ @output | |
+ end | |
+end | |
+ | |
+workspace_root = "/var/opt/delivery/workspace" | |
+workspace_bin = "/var/opt/delivery/workspace/bin" | |
+ | |
+Chef::Config.from_file("/etc/chef/client.rb") | |
+client = Chef::Client.new | |
+client.run_ohai | |
+client.node_name | |
+ | |
+change_file = File.join(workspace_root, 'change.json') | |
+raw_json = Base64.decode64(ARGV[0]) | |
+File.open(change_file, 'w') do |file| | |
+ file.puts(raw_json) | |
+end | |
+ | |
+job_data = Chef::JSONCompat.from_json(raw_json) | |
+ | |
+builder_auth_headers = Delivery::JobHelpers.builder_auth_headers(job_data) | |
+ | |
+rest = Chef::REST.new(job_data["delivery_api_url"]) | |
+path = File.join(job_data['enterprise'], | |
+ 'orgs', job_data['organization'], | |
+ 'projects', job_data['project'], | |
+ 'pipelines', job_data['pipeline'], | |
+ 'phase_runs', job_data['phase_run_id'].to_s) | |
+ | |
+streamy = Streamy.new(rest, path, builder_auth_headers) | |
+server = URI(job_data['delivery_api_url']) | |
+job_data['patchset_branch'] =~ /^_reviews\/#{job_data['pipeline']}\/(.+)\/#{job_data['patchset_number']}$/ | |
+change = $1 | |
+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']} --patchset #{job_data['patchset_number']} --change-id #{job_data['change_id']} --change #{change} " | |
+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']}" | |
+end | |
+ | |
+https_proxy = Chef::Config[:https_proxy] || ENV['HTTPS_PROXY'] || ENV['https_proxy'] | |
+http_proxy = Chef::Config[:http_proxy] || ENV['HTTP_PROXY'] || ENV['http_proxy'] | |
+no_proxy = Chef::Config[:no_proxy] || ENV['NO_PROXY'] || ENV['no_proxy'] | |
+cli_env = { | |
+ 'PATH' => "/opt/chefdk/bin:/opt/chefdk/embedded/bin:#{ENV['PATH']}", | |
+ 'LC_ALL' => 'en_US.UTF-8', | |
+ 'GIT_SSH' => File.join(workspace_bin, 'git_ssh'), | |
+ 'HOME' => workspace_root, | |
+ 'TERM' => 'screen-256color' | |
+} | |
+cli_env['https_proxy'] = https_proxy if https_proxy && !https_proxy.strip.empty? | |
+cli_env['http_proxy'] = http_proxy if http_proxy && !http_proxy.strip.empty? | |
+cli_env['no_proxy'] = no_proxy if no_proxy && !no_proxy.strip.empty? | |
+ | |
+cmd = Mixlib::ShellOut.new("#{command_line} --no-spinner", :environment => cli_env) | |
+streamy << "Starting job on builder #{client.node_name}.\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 | |
+if cmd.error? | |
+ rest.post(path, | |
+ { | |
+ "run_success" => false, | |
+ "run_log" => streamy.output, | |
+ "run_status" => "failed", | |
+ "run_complete" => true | |
+ }, | |
+ builder_auth_headers | |
+ ) | |
+else | |
+ rest.post(path, | |
+ { | |
+ "run_success" => true, | |
+ "run_log" => streamy.output, | |
+ "run_status" => "finished", | |
+ "run_complete" => true | |
+ }, | |
+ builder_auth_headers | |
+ ) | |
+end | |
- change mode from '' to '0755' | |
- change owner from '' to 'root' | |
- restore selinux security context | |
* file[/var/opt/delivery/workspace/etc/builder_key] action create | |
- create new file /var/opt/delivery/workspace/etc/builder_key | |
- update content in file /var/opt/delivery/workspace/etc/builder_key from none to b563a0 | |
--- /var/opt/delivery/workspace/etc/builder_key 2015-05-12 14:17:09.539392814 +0000 | |
+++ /var/opt/delivery/workspace/etc/.builder_key20150512-2834-ti9u9y 2015-05-12 14:17:09.538392687 +0000 | |
@@ -1 +1,28 @@ | |
+-----BEGIN RSA PRIVATE KEY----- | |
+MIIEowIBAAKCAQEAzPi0rNPMy75YgnbICQMlj24ujY8/2UcZa6bO++tyGXo63HgY | |
+RC0ZUIE6c+8LkIkCLl9TUs4CtecMOzgt+C4lWl0Ket0+9H5YUJVF23cIbAEYTLH7 | |
+gTyN/xoN99w4Au+2fZ4Vsh+jVH3Cq+7xEW4cpxew3ruXzv8TbvrX6xCEqr6Qoezj | |
+ThtQWvRyXBXsQBarUv1mOJ3syupFBCViLCKsN0VLmOCv3u6OG1z3YplKYVBorcYO | |
+yFC1LYU+0QNfOv0mhH43LZPBG7rUj/V6XBkGdfcXIGq5Op3BjIw6zmc4WrfS0FNx | |
+Rd5NXnYwTwxG094wU0WKzHE5BE0koeJH4tpjDQIDAQABAoIBABx1L0iLg3SKMemz | |
+KiSuLinSx13aFKhLCcl7eGNblhTZdpCjj+LvTAN0XbQ47ScdDpN3oq7tcUzmDjmu | |
+nBtH9OGt50WVsCbr38EYaIGG7kFoiYIkd+HCkYhoiqXuCkzGEVUxfJulbtzNNRj/ | |
+7LJZ0lqUnHbgHrybh4wyAYZeXb0Cxkz+onCR/jJhchgSi+TdQwy9YdMIzrl9boSd | |
+7ROYw2ENTGLwukGYe9BkZFDSzvOF2y3o0jMcP/+3DPVYSE/nsGE9OKknyvZq8ic/ | |
+9UUtRMNtVk1QSr71ybM/4rOyh5QTvcWGA8bTN9ukRwKtz0QDnGO+OCt3MWktehGT | |
+Zw5NikECgYEA/XDYA0c7LObROg8juhg1uWRmRFT18zIa/9wDNu1O4csb+muEK4Lh | |
+jwmkEc5BjvWmcE8JblLT9fb0yF/RlCCkxlBnLkvccI/2a8KV5iD/zXrjf9F9WV1V | |
+fl9bJIn1KCt2SBE6WzUkfANqmBJUQGpUTenZzEjvWDoo/ApI06xnHf0CgYEAzwqR | |
+DPPfTQ4Eiho6lo7R85eHVTIbVclsJoQ06ln7Z8lafBOHwUM+OJSg4LTALOhdDr5z | |
+sqoH3wjmXi2/jATg0oSRMxLTsxGUZSOhy0mEP+kYcBkWnl+IOQTNNZCvTiYaaRbw | |
+/EUkNHqjFUUqFfKdmH3GAOvLHeqctb5plCBDXlECgYAQSdRYQZe4Bw2jYZ22NCAf | |
+zigUdDFqc+nwT7+VJCNRt7AQpCBWe47rln8I9eyYt4j+5tWAVapxwHFy/1WE46Qz | |
+aq929kEwqs/3lQX1SGGoXyGH8XrQ54K7IH3HF2a+Mizj7NeHTR8PKVkMdQEdMrhA | |
+Was5yeY4EWTY7gBIOmhWMQKBgCZ7S0yCA24Z/eQBTgRv1TwWXPQL1SLTxkM+bWtl | |
+gCHhPe0z4BaevfDcRy6cyd9O7QTxhyWdDst4pwC4NhL7USIvu6EnjauJx/AoeEkF | |
+iAws8frb3uVe0j3u04lyM/Mth9kih3YMD9elN6ybZ2Ae8QXH0saXDPCpi6kIFC2Q | |
+9ZSRAoGBAICFjX8IkiwgLUNKAuZOAKHO8b/JzsEIE+Vt3rpJx0P3JMlOXEGOA6Pm | |
+ZtyxQDFzoWM//AW3Rl5EWZ3N2iYVURZFxonm+SmPS8TT8EHN/mxHBzq8ABqUsYJd | |
+sptnEwOToMm4+84nF7M7KAwW24BPgziDGk/bF1A+zD2NkxscZ7ni | |
+-----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 b563a0 | |
--- /var/opt/delivery/workspace/.chef/builder_key 2015-05-12 14:17:09.671409596 +0000 | |
+++ /var/opt/delivery/workspace/.chef/.builder_key20150512-2834-176rryk 2015-05-12 14:17:09.671409596 +0000 | |
@@ -1 +1,28 @@ | |
+-----BEGIN RSA PRIVATE KEY----- | |
+MIIEowIBAAKCAQEAzPi0rNPMy75YgnbICQMlj24ujY8/2UcZa6bO++tyGXo63HgY | |
+RC0ZUIE6c+8LkIkCLl9TUs4CtecMOzgt+C4lWl0Ket0+9H5YUJVF23cIbAEYTLH7 | |
+gTyN/xoN99w4Au+2fZ4Vsh+jVH3Cq+7xEW4cpxew3ruXzv8TbvrX6xCEqr6Qoezj | |
+ThtQWvRyXBXsQBarUv1mOJ3syupFBCViLCKsN0VLmOCv3u6OG1z3YplKYVBorcYO | |
+yFC1LYU+0QNfOv0mhH43LZPBG7rUj/V6XBkGdfcXIGq5Op3BjIw6zmc4WrfS0FNx | |
+Rd5NXnYwTwxG094wU0WKzHE5BE0koeJH4tpjDQIDAQABAoIBABx1L0iLg3SKMemz | |
+KiSuLinSx13aFKhLCcl7eGNblhTZdpCjj+LvTAN0XbQ47ScdDpN3oq7tcUzmDjmu | |
+nBtH9OGt50WVsCbr38EYaIGG7kFoiYIkd+HCkYhoiqXuCkzGEVUxfJulbtzNNRj/ | |
+7LJZ0lqUnHbgHrybh4wyAYZeXb0Cxkz+onCR/jJhchgSi+TdQwy9YdMIzrl9boSd | |
+7ROYw2ENTGLwukGYe9BkZFDSzvOF2y3o0jMcP/+3DPVYSE/nsGE9OKknyvZq8ic/ | |
+9UUtRMNtVk1QSr71ybM/4rOyh5QTvcWGA8bTN9ukRwKtz0QDnGO+OCt3MWktehGT | |
+Zw5NikECgYEA/XDYA0c7LObROg8juhg1uWRmRFT18zIa/9wDNu1O4csb+muEK4Lh | |
+jwmkEc5BjvWmcE8JblLT9fb0yF/RlCCkxlBnLkvccI/2a8KV5iD/zXrjf9F9WV1V | |
+fl9bJIn1KCt2SBE6WzUkfANqmBJUQGpUTenZzEjvWDoo/ApI06xnHf0CgYEAzwqR | |
+DPPfTQ4Eiho6lo7R85eHVTIbVclsJoQ06ln7Z8lafBOHwUM+OJSg4LTALOhdDr5z | |
+sqoH3wjmXi2/jATg0oSRMxLTsxGUZSOhy0mEP+kYcBkWnl+IOQTNNZCvTiYaaRbw | |
+/EUkNHqjFUUqFfKdmH3GAOvLHeqctb5plCBDXlECgYAQSdRYQZe4Bw2jYZ22NCAf | |
+zigUdDFqc+nwT7+VJCNRt7AQpCBWe47rln8I9eyYt4j+5tWAVapxwHFy/1WE46Qz | |
+aq929kEwqs/3lQX1SGGoXyGH8XrQ54K7IH3HF2a+Mizj7NeHTR8PKVkMdQEdMrhA | |
+Was5yeY4EWTY7gBIOmhWMQKBgCZ7S0yCA24Z/eQBTgRv1TwWXPQL1SLTxkM+bWtl | |
+gCHhPe0z4BaevfDcRy6cyd9O7QTxhyWdDst4pwC4NhL7USIvu6EnjauJx/AoeEkF | |
+iAws8frb3uVe0j3u04lyM/Mth9kih3YMD9elN6ybZ2Ae8QXH0saXDPCpi6kIFC2Q | |
+9ZSRAoGBAICFjX8IkiwgLUNKAuZOAKHO8b/JzsEIE+Vt3rpJx0P3JMlOXEGOA6Pm | |
+ZtyxQDFzoWM//AW3Rl5EWZ3N2iYVURZFxonm+SmPS8TT8EHN/mxHBzq8ABqUsYJd | |
+sptnEwOToMm4+84nF7M7KAwW24BPgziDGk/bF1A+zD2NkxscZ7ni | |
+-----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 14deb9 | |
--- /var/opt/delivery/workspace/etc/delivery.pem 2015-05-12 14:17:09.846431838 +0000 | |
+++ /var/opt/delivery/workspace/etc/.delivery.pem20150512-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kgMjuZHKseo383o4hiF4TVjbQmbuiMe | |
+mF84X8dt4SlPFxzD4s8NQ5uHOGcJwcl+zS0/AvYCkt8YvjrlZWv4tJ0Vky6CAfh9 | |
+9NY5OyMTVO1WGL8iQ9ffA8eL2lLFAz6yO59dRJECgYBubOgoIeDIYGAHKaPHDFOx | |
+eF3Kbj+lVUKjOnZY0iDnMqPivg1Ro5J1NXuN0GecPelK5woOyRp6VAgB/aMvhoJJ | |
+0f2vK5gAirMS34HLch2D9gxm/oRhVhwUnFuqJbtxl77MDR0aV03qy6YqdMD/UQ+a | |
+mKj/Jyn5+88mWvTMBxc8SQKBgB6DaLpBz06Q2CazVsty1d7jmLtYYawiKHqxHOPH | |
+21ZS+BjhmSpkYpU2mWsFSOOWVaHsrHHGpeqoHyzFpBoLHzoFd5/w4l1YEvkXPVxV | |
+TftrbBl/CcFlN8Hw7KdhxiX4ZMxkAWDGOahYIUPp0sII0RRh2u8fM2RF+4o3N+YC | |
+TbJRAoGARARXUNO93ytmLZ6pDw51HATHcVr7xZr36lMixWCCtX0G79zmUoLbEDZf | |
+ZUaZgHYafJ7ymL+Zl09xrBPtWqjxBcrEfrwj7jeK2zamaYECyFipVNYWOLVMo2QS | |
+YukQG9zhlYlHNi61kuAYt7sPE7Bkmuj34DKdagLQETllD6NQT7c= | |
+-----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 14deb9 | |
--- /var/opt/delivery/workspace/.chef/delivery.pem 2015-05-12 14:17:09.980448872 +0000 | |
+++ /var/opt/delivery/workspace/.chef/.delivery.pem20150512-2834-2i1z37 2015-05-12 14:17:09.980448872 +0000 | |
@@ -1 +1,28 @@ | |
+-----BEGIN RSA PRIVATE KEY----- | |
+MIIEog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v4tJ0Vky6CAfh9 | |
+9NY5OyMTVO1WGL8iQ9ffA8eL2lLFAz6yO59dRJECgYBubOgoIeDIYGAHKaPHDFOx | |
+eF3Kbj+lVUKjOnZY0iDnMqPivg1Ro5J1NXuN0GecPelK5woOyRp6VAgB/aMvhoJJ | |
+0f2vK5gAirMS34HLch2D9gxm/oRhVhwUnFuqJbtxl77MDR0aV03qy6YqdMD/UQ+a | |
+mKj/Jyn5+88mWvTMBxc8SQKBgB6DaLpBz06Q2CazVsty1d7jmLtYYawiKHqxHOPH | |
+21ZS+BjhmSpkYpU2mWsFSOOWVaHsrHHGpeqoHyzFpBoLHzoFd5/w4l1YEvkXPVxV | |
+TftrbBl/CcFlN8Hw7KdhxiX4ZMxkAWDGOahYIUPp0sII0RRh2u8fM2RF+4o3N+YC | |
+TbJRAoGARARXUNO93ytmLZ6pDw51HATHcVr7xZr36lMixWCCtX0G79zmUoLbEDZf | |
+ZUaZgHYafJ7ymL+Zl09xrBPtWqjxBcrEfrwj7jeK2zamaYECyFipVNYWOLVMo2QS | |
+YukQG9zhlYlHNi61kuAYt7sPE7Bkmuj34DKdagLQETllD6NQT7c= | |
+-----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 acc491 | |
--- /var/opt/delivery/workspace/etc/delivery.rb 2015-05-12 14:17:10.137468829 +0000 | |
+++ /tmp/chef-rendered-template20150512-2834-1te5ivb 2015-05-12 14:17:10.137468829 +0000 | |
@@ -1 +1,7 @@ | |
+current_dir = File.dirname(__FILE__) | |
+log_location STDOUT | |
+node_name "delivery" | |
+client_key "#{current_dir}/delivery.pem" | |
+trusted_certs_dir "/etc/chef/trusted_certs" | |
+chef_server_url "https://33.33.33.10/organizations/ssh" | |
- 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 acc491 | |
--- /var/opt/delivery/workspace/.chef/knife.rb 2015-05-12 14:17:10.274486254 +0000 | |
+++ /tmp/chef-rendered-template20150512-2834-xct4sx 2015-05-12 14:17:10.274486254 +0000 | |
@@ -1 +1,7 @@ | |
+current_dir = File.dirname(__FILE__) | |
+log_location STDOUT | |
+node_name "delivery" | |
+client_key "#{current_dir}/delivery.pem" | |
+trusted_certs_dir "/etc/chef/trusted_certs" | |
+chef_server_url "https://33.33.33.10/organizations/ssh" | |
- 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::cli | |
* remote_file[/var/chef/cache/delivery-cli.rpm] action create | |
- create new file /var/chef/cache/delivery-cli.rpm | |
- update content in file /var/chef/cache/delivery-cli.rpm from none to fa1f17 | |
(new content is binary, diff output suppressed) | |
- change mode from '' to '0644' | |
- change owner from '' to 'root' | |
- change group from '' to 'root' | |
- restore selinux security context | |
* yum_package[delivery-cli] action install | |
- install version 20150408004719-1 of package delivery-cli | |
Running handlers: | |
Running handlers complete | |
Chef Client finished, 3/53 resources updated in 18.113965049 seconds | |
- [build-node-ssh-1] run 'chef-client -l auto' on build-node-ssh-1 | |
[2015-05-12T10:24:01-04:00] WARN: Skipping final node save because override_runlist was given | |
Running handlers: | |
Running handlers complete | |
Chef Client finished, 1/3 resources updated in 31.090121 seconds | |
# | |
# Access to Delivery Cluster | |
# | |
salimafiune@afiuneChef:~/github/delivery-cluster | |
$ rake info:delivery_creds | |
Created enterprise: ssh | |
Admin username: admin | |
Admin password: PkqrKp01mA72SRLkmgSGCUc7C1agwFZlfpE= | |
Builder Password: 6/S3vv6uC9Cgzxekb1TKEX1tjLZpPTiE2qY= | |
Web login: https://33.33.33.11/e/ssh/ | |
# DONE! :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment