Skip to content

Commit

Permalink
Resolving issue hashbangcode#295 by installing Ruby earlier.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvance committed Nov 6, 2015
1 parent 43998c7 commit 31df075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlad_guts/playbooks/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@

- role: base

- { role: ruby, tags: ["ruby"], when: "ruby_install" }

- { role: samba, tags: ["windows"], when: "is_windows" }

- { role: apache, tags: ["apache"], when: "apache_install" }
Expand Down Expand Up @@ -137,8 +139,6 @@

- { role: munin, tags: ["munin"], when: "munin_install" }

- { role: ruby, tags: ["ruby"], when: "ruby_install" }

- { role: mailcatcher, tags: ["mailcatcher"], when: "mailcatcher_install" }

- { role: node, tags: ["node"], when: "node_install" }
Expand Down

2 comments on commit 31df075

@christopher-hopper
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was very much hoping that this would fix hashbangcode/vlad issue hashbangcode#295 however it seems not.

This was the results after implementing your patch above. First a clean build:

vagrant destroy
vagrant up

Then it fails, at least quicker than before, but with a failed dependencies noted this time.

PLAY [all] ******************************************************************** 

GATHERING FACTS *************************************************************** 
ok: [10.0.0.15]
10.0.0.15: not importing file: /home/chopper/Projects/technocratau/unsw_student-vlad/settings/vlad_local_settings.yml
10.0.0.15: not importing file: /home/chopper/Projects/technocratau/settings/vlad_local_settings.yml
10.0.0.15: not importing file: /home/chopper/Projects/technocratau/unsw_student-vlad/vlad/local_settings.yml

TASK: [Check Ansible version compatibility] *********************************** 
skipping: [10.0.0.15]

TASK: [Ensure Varnish is stopped] ********************************************* 
failed: [10.0.0.15] => {"failed": true}
msg: no service or tool found for: varnish
...ignoring

TASK: [Ensure Varnish is removed] ********************************************* 
ok: [10.0.0.15]

TASK: [Ensure Varnish is removed] ********************************************* 
skipping: [10.0.0.15]

TASK: [Check for incorrect HTTP port if not running Varnish] ****************** 
skipping: [10.0.0.15]

TASK: [Check if Varnish & Apache ports match] ********************************* 
skipping: [10.0.0.15]

TASK: [Check PHP version is valid] ******************************************** 
skipping: [10.0.0.15]

TASK: [Check specified Solr package] ****************************************** 
skipping: [10.0.0.15]

TASK: [Check MailCatcher dependencies] **************************************** 
skipping: [10.0.0.15]

TASK: [Check Adminer dependencies] ******************************************** 
skipping: [10.0.0.15]

TASK: [Check XHProf dependencies] ********************************************* 
skipping: [10.0.0.15]

TASK: [Check PimpMyLog dependencies] ****************************************** 
skipping: [10.0.0.15]

TASK: [Check Imagemagick dependencies] **************************************** 
skipping: [10.0.0.15]

TASK: [Check Memcached dependencies] ****************************************** 
skipping: [10.0.0.15]

TASK: [get local IPv4 address] ************************************************ 
ok: [10.0.0.15 -> 127.0.0.1]

TASK: [base | ensure certain vlad_aux subdirectories exist] ******************* 
ok: [10.0.0.15] => (item=tmp)
ok: [10.0.0.15] => (item=db_io)

TASK: [base | set permissions on /tmp directory] ****************************** 
changed: [10.0.0.15]

TASK: [base | vm info | create current_build_settings.yml at vlad_ux/tmp/] **** 
ok: [10.0.0.15] => (item=/home/chopper/Projects/technocratau/unsw_student-vlad/vlad/settings.yml)

TASK: [base | vm info | create current_local_overrides.yml at vlad_ux/tmp/] *** 
ok: [10.0.0.15] => (item=/home/chopper/Projects/technocratau/unsw_student-vlad/vlad/playbooks/vars/dummy_settings.yml)

TASK: [base | apt-get | apt-get update and ensure core packages are installed] *** 
changed: [10.0.0.15] => (item=ssh-import-id,gcc,unzip,curl,atop,vim,make,iptables)

TASK: [base | get epel rpm] *************************************************** 
skipping: [10.0.0.15]

TASK: [base | install epel] *************************************************** 
skipping: [10.0.0.15]

TASK: [base | yum | yum update and ensure core packages are installed] ******** 
skipping: [10.0.0.15]

TASK: [base | git | install git with apt-get] ********************************* 
changed: [10.0.0.15]

TASK: [base | git | install git with yum] ************************************* 
skipping: [10.0.0.15]

TASK: [base | git | add Git user.name config] ********************************* 
skipping: [10.0.0.15]

TASK: [base | git | add Git user.email config] ******************************** 
skipping: [10.0.0.15]

TASK: [base | python | apt-get install python and pip] ************************ 
changed: [10.0.0.15] => (item=python,python-pip)

TASK: [base | python | yum install python and pip] **************************** 
skipping: [10.0.0.15]

TASK: [base | ssh config | add ssh config file] ******************************* 
changed: [10.0.0.15]

TASK: [base | Ensure .profile is loaded from .bash_profile] ******************* 
changed: [10.0.0.15]

TASK: [ruby | ensure prerequisite packages are installed] ********************* 
skipping: [10.0.0.15]

TASK: [ruby | install rbenv] ************************************************** 
changed: [10.0.0.15]

TASK: [ruby | install rbenv plugins] ****************************************** 
changed: [10.0.0.15] => (item=rbenv-gem-rehash)
changed: [10.0.0.15] => (item=rbenv-gemset)
changed: [10.0.0.15] => (item=ruby-build)

TASK: [ruby | add line to .bash_profile (rbenv) (step 1/4)] ******************* 
changed: [10.0.0.15]

TASK: [ruby | add line to .bash_profile (rbenv) (step 2/4)] ******************* 
changed: [10.0.0.15]

TASK: [ruby | add line to .bash_profile (rbenv) (step 3/4)] ******************* 
changed: [10.0.0.15]

TASK: [ruby | ensure .bashrc gets loaded as well (rbenv) (step 4/4)] ********** 
changed: [10.0.0.15]

TASK: [ruby | source ~/.bash_profile] ***************************************** 
changed: [10.0.0.15]

TASK: [ruby | install Ruby {{ default_ruby_version }}] ************************ 
failed: [10.0.0.15] => {"changed": true, "cmd": ["bash", "-lc", "rbenv install 2.1.2"], "delta": "0:04:16.600092", "end": "2015-12-14 02:02:45.775242", "rc": 1, "start": "2015-12-14 01:58:29.175150", "warnings": []}
stderr: Downloading ruby-2.1.2.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/f22a6447811a81f3c808d1c2a5ce3b5f5f0955c68c9a749182feb425589e6635
Installing ruby-2.1.2...

BUILD FAILED (Ubuntu 14.04 using ruby-build 20151028)

Inspect or clean up the working tree at /tmp/ruby-build.20151214015829.12042
Results logged to /tmp/ruby-build.20151214015829.12042.log

Last 10 log lines:
The Ruby openssl extension was not compiled.
The Ruby readline extension was not compiled.
The Ruby zlib extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Try running `apt-get install -y libssl-dev libreadline-dev zlib1g-dev` to fetch missing dependencies.

Configure options used:
  --prefix=/home/vagrant/.rbenv/versions/2.1.2
  LDFLAGS=-L/home/vagrant/.rbenv/versions/2.1.2/lib 
  CPPFLAGS=-I/home/vagrant/.rbenv/versions/2.1.2/include 

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/home/chopper/site.retry

10.0.0.15                  : ok=20   changed=13   unreachable=0    failed=1   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

@christopher-hopper
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I've grabbed the latest master branch ruby.yml. The version I had was missing the dependencies above. I also may have found the source of this problem. See my comment on experimental debia repos in hashbangcode#295 and the associated link to the Debian bug tracker.

Please sign in to comment.