install.sh doesn't work behind proxy firewall

75 views
Skip to first unread message

Walter Boring

unread,
Feb 19, 2015, 3:03:21 PM2/19/15
to gito...@googlegroups.com
How do I force install.sh and all of the components of the installer to go through my proxy firewall at work?

I've had to hack a number of the yaml files to individually add an environment:
section to force a proxy. I have environment variables in my shell set prior to running install.sh, but those are ignored.

vagrant@vagrant-ubuntu-trusty-64:~/ce-installer$ git diff
diff --git a/roles/gitorious/tasks/main.yml b/roles/gitorious/tasks/main.yml
index c4d3830..8e537aa 100644
--- a/roles/gitorious/tasks/main.yml
+++ b/roles/gitorious/tasks/main.yml
@@ -149,6 +149,9 @@
# === gitorious-shell

- name: install gitorious-shell
+ environment:
+ http_proxy: http://proxy.houston.hp.com:8080
+ https_proxy: http://proxy.houston.hp.com:8080
get_url: url=https://bin.gitorious.org/gitorious-proto/v1.0.0/gitorious-shell_linux_amd64 dest=/usr/bin/gitorious-shell sha2

- name: make gitorious-shell executable
@@ -160,6 +163,9 @@
# === gitorious-http-backend

- name: install gitorious-http-backend
+ environment:
+ http_proxy: http://proxy.houston.hp.com:8080
+ https_proxy: http://proxy.houston.hp.com:8080
get_url: url=https://bin.gitorious.org/gitorious-proto/v1.0.0/gitorious-http-backend_linux_amd64 dest=/usr/bin/gitorious-htt
notify:
- restart gitorious-http-backend
@@ -184,6 +190,9 @@
- tarballs-work

- name: install git-archive-daemon
+ environment:
+ http_proxy: http://proxy.houston.hp.com:8080
+ https_proxy: http://proxy.houston.hp.com:8080
get_url: url=https://bin.gitorious.org/git-archive-daemon/v1.0.0/git-archive-daemon_linux_amd64 dest=/usr/bin/git-archive-da
notify:
- restart gitorious-archiver
@@ -213,6 +222,9 @@
file: path={{ gitorious_root }}/repositories state=directory owner=git group=git

- name: clone web app
+ environment:
+ http_proxy: http://proxy.houston.hp.com:8080
+ https_proxy: http://proxy.houston.hp.com:8080
git: repo=https://gitorious.org/gitorious/mainline.git dest={{ gitorious_root }}/app version={{ gitorious_version }}
notify:
- restart web
@@ -339,6 +351,9 @@
# === hooks

- name: clone gitorious-proto (hooks)
+ environment:
+ http_proxy: http://proxy.houston.hp.com:8080
+ https_proxy: http://proxy.houston.hp.com:8080
git: repo=https://gitorious.org/gitorious/gitorious-proto.git dest={{ gitorious_root }}/gitorious-proto version=v1.0.0

- name: symlink hooks in repositories dir



Also there are git repos that are pulled via git:// that don't work behind a forced http_proxy as well.


TASK: [gitorious | clone web app] *********************************************
failed: [localhost] => {"failed": true}
msg: Failed to init/update submodules: Submodule 'public/ui3' (https://gitorious.org/gitorious/ui3.git) registered for path 'public/ui3'
Submodule path 'public/ui3': checked out 'fb4ba815019a5da7ab3acb43f0d3d9894aaa0295'
Submodule 'js/lib/bane' (https://github.com/busterjs/bane.git) registered for path 'js/lib/bane'
Submodule 'js/lib/capillary' (https://git.gitorious.org/capillary/capillary-js.git) registered for path 'js/lib/capillary'
Submodule 'js/lib/culljs' (https://github.com/culljs/culljs.git) registered for path 'js/lib/culljs'
Submodule 'js/lib/dome' (https://github.com/culljs/dome.git) registered for path 'js/lib/dome'
Submodule 'js/lib/raphael' (https://github.com/DmitryBaranovskiy/raphael.git) registered for path 'js/lib/raphael'
Submodule 'js/lib/reqwest' (https://github.com/ded/reqwest.git) registered for path 'js/lib/reqwest'
Submodule 'js/lib/showdown' (https://github.com/coreyti/showdown.git) registered for path 'js/lib/showdown'
Submodule 'js/lib/spin.js' (https://github.com/fgnass/spin.js.git) registered for path 'js/lib/spin.js'
Submodule 'js/lib/timeago' (https://github.com/cjohansen/timeago.git) registered for path 'js/lib/timeago'
Submodule 'js/lib/uinit' (https://git.gitorious.org/gitorious/uinit.git) registered for path 'js/lib/uinit'
Submodule 'js/lib/when' (https://github.com/cujojs/when.git) registered for path 'js/lib/when'
Submodule path 'public/ui3/js/lib/bane': checked out 'f7282b890afd78656ffa71355a3f223e07be04e6'
Submodule path 'public/ui3/js/lib/capillary': checked out '6d80dff3b622716cc2da86d3330fecc94befa621'
Submodule 'vendor/raphael' (https://github.com/DmitryBaranovskiy/raphael.git) registered for path 'vendor/raphael'
Submodule path 'public/ui3/js/lib/capillary/vendor/raphael': checked out 'dbe241f4c5310dd9bf3b451c538d78c6c4a0e288'
Submodule path 'public/ui3/js/lib/culljs': checked out 'f6b23bde08e2529923cb769f4f73bb85f134a263'
Submodule path 'public/ui3/js/lib/dome': checked out 'd3ad2312096164fc30651fca9462c4157ce595cd'
Submodule path 'public/ui3/js/lib/raphael': checked out 'bdbc517a5995c8151a55e1eef68446d8fbfd291c'
Submodule 'eve' (git://github.com/adobe-webplatform/eve.git) registered for path 'eve'
Submodule path 'public/ui3/js/lib/reqwest': checked out '9def4cb2cc55ea8f861c9a9ca6d4005de8d2c773'
Submodule path 'public/ui3/js/lib/showdown': checked out '2e102c72b26708147817f8f5e4ab1161a38a57a0'
Submodule path 'public/ui3/js/lib/spin.js': checked out 'a7bbee98fa4416351ca226c032c0090ed1db74ab'
Submodule path 'public/ui3/js/lib/timeago': checked out '044fa1857c7ba153f210d3d3fee4c8623ff5e1e7'
Submodule path 'public/ui3/js/lib/uinit': checked out 'ca094bbba23bde2d14d1f22d3758dcce129b43ab'
Submodule path 'public/ui3/js/lib/when': checked out '46b5fe434f652da8663b65dd07bb32b646738f36'
Cloning into 'public/ui3'...
Cloning into 'js/lib/bane'...
Cloning into 'js/lib/capillary'...
Cloning into 'vendor/raphael'...
Cloning into 'js/lib/culljs'...
Cloning into 'js/lib/dome'...
Cloning into 'js/lib/raphael'...
Cloning into 'eve'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=Connection timed out

Clone of 'git://github.com/adobe-webplatform/eve.git' into submodule path 'eve' failed
Cloning into 'js/lib/reqwest'...
Cloning into 'js/lib/showdown'...
Cloning into 'js/lib/spin.js'...
Cloning into 'js/lib/timeago'...
Cloning into 'js/lib/uinit'...
Cloning into 'js/lib/when'...
Failed to recurse into submodule path 'public/ui3/js/lib/raphael'
Failed to recurse into submodule path 'public/ui3'


FATAL: all hosts have already failed -- aborting
Reply all
Reply to author
Forward
0 new messages