Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proxy support for deploy.sh #8

Closed
trozet opened this issue Apr 24, 2015 · 5 comments
Closed

Add proxy support for deploy.sh #8

trozet opened this issue Apr 24, 2015 · 5 comments
Assignees

Comments

@trozet
Copy link
Owner

trozet commented Apr 24, 2015

  • Need to remove sudo commands from bootsrap.sh
  • Detect proxy and add to bootsrap.sh, deploy
  • Pass proxy into khaleesi and use environment + set proxy on role opnfv_install
@trozet trozet self-assigned this Apr 28, 2015
@trozet
Copy link
Owner Author

trozet commented May 5, 2015

Creating "proxy" branch to do this feature on

@pbandzi
Copy link

pbandzi commented May 6, 2015

Hi Tim,

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

  • Vagrant file
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
  • opnfv_ksgen_settings.yml
force-puppet: "true"
enable-puppetlabs-repo: "true"
http-proxy:proxy
http-proxy-port: number
  • bootstrap.sh

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
Copy link
Owner Author

trozet commented May 8, 2015

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

This is an Astapor change

@pbandzi
Copy link

pbandzi commented May 13, 2015

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

@trozet
Copy link
Owner Author

trozet commented Oct 21, 2015

project has been deprecated in favor of OPNFV Genesis

@trozet trozet closed this as completed Oct 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants