Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.43 KB

ansible-setup.md

File metadata and controls

61 lines (42 loc) · 1.43 KB

Mac OS X Setup

  1. Install git. This can be done via typing git at a terminal and installing Xcode Developer Tools, or from git-scm.com

  2. Install the Homebrew Package Manager.

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  3. Install wget with Homebrew.

    brew install wget
  4. Install Python 3 via Homebrew. (Note: Python 3 is currently the default version provided by homebrew.)

    brew install python
  5. Install Python utilities.

    # Retrieve pip installation script from web
    wget https://bootstrap.pypa.io/get-pip.py
    
    # Install pip into default Python installation 
    sudo -H python get-pip.py 
    
    # Install Virtual Environment with pip 
    sudo -H python -m pip install virtualenv 
  6. Move to your working directory. (This is an example directory; use your local directory structure.)

    cd ~/Code/cvd-config-templates
  7. Setup a Python Virtual Environment.

    virtualenv venv
    source venv/bin/activate 
  8. Create a requirements list.

    echo 'ansible==2.4.2.0
    ncclient==0.5.3
    requests==2.18.4' > requirements.txt
  9. Install Ansible requirements.

    pip install -r requirements.txt