trozet / bgs_vagrant

Automatic Deployment of OPNFV (OpenStack HA + OpenDaylight)
Apache License 2.0
3 stars 8 forks source link

Add proxy support for deploy.sh #8

Closed trozet closed 8 years ago

trozet commented 9 years ago
trozet commented 9 years ago

Creating "proxy" branch to do this feature on

pbandzi commented 9 years ago

Hi Tim,

I am still trying to make it work behind proxy. Here is list of changes required so far.

config.vm.provision :shell, :inline => "export http_proxy=proxy_replace; export https_proxy=proxy_replace; export no_proxy=127.0.0.1,localhost,local,public_IP_of_vagrant_host>"

in vagrant host there is need to modify:

/etc/bashrc  -> same http_proxy and no_proxy vars have to be configured
/etc/yum.conf -> add proxy
force-puppet: "true"
enable-puppetlabs-repo: "true"
http-proxy:proxy
http-proxy-port: number

before run.sh is executed following files has to be changed: /opt/khaleesi/playbooks/opnfv.yml

- name: Install Foreman
  hosts: localhost
  gather_facts: True
  sudo: yes
  roles:
    - { role: foreman/opnfv-install }
  tags:
    - install
  environment:
    http_proxy: proxy:port
    https_proxy: proxy:port

/opt/khaleesi/roles/foreman/opnfv-install/tasks/main.yml

- name: Download vmlinuz
  get_url: url=http://mirror.centos.org/centos/7/os/x86_64/images/pxeboot/vmlinuz
           dest=/var/lib/tftpboot/boot/CentOS-7-x86_64-vmlinuz
           mode=644
           force=yes
           timeout=60
  environment:
    http_proxy: proxy:port
    https_proxy: proxy:port

there is need to be added --no-proxy opntion to wget command in kickstart provission template

trozet commented 9 years ago

Also, we need to add: use wget with --no-proxy option in kickstart file

This is an Astapor change

pbandzi commented 9 years ago

I have to also add proxy into /etc/yum.conf on control and compute nodes.

trozet commented 8 years ago

project has been deprecated in favor of OPNFV Genesis