Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.83 KB

README_Windows.md

File metadata and controls

59 lines (40 loc) · 1.83 KB

Setting up your Python Environment

Install Prerequisites

Windows Subsystem Linux

  1. Use Ubuntu's documentation to install Ubuntu on WSL (the steps are different depending on your Windows version)
  2. Open the Start menu and select Ubuntu
  3. Install Docker for Ubuntu
  4. Install ruby and python
    1. If using asdf, install the plugins as listed in .tool-versions

      asdf install
      pip install pipenv
      
    2. Otherwise:

      1. Install Python with the following:

      apt -y install python python3-pip

      1. Install Ruby with the following:

        sudo apt install -y gcc make pkg-config zlib1g-dev
        cd
        git clone https://github.com/rbenv/rbenv.git ~/.rbenv
        echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
        echo 'eval "$(rbenv init -)"' >> ~/.bashrc
        exec $SHELL
        
        git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
        echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
        exec $SHELL
        
        rbenv install 3.1.3
        rbenv global 3.1.3
        
        gem install bundler
        
        rbenv rehash
      2. pip install --upgrade pipenv

Setup your environment

Follow the instructions in the README

Automatically pull vault password from lastpass

Information about installing lastpass-cli

  1. lpass login <[email protected]>
  2. gem install lastpass-ansible or asdf exec gem install lastpass-ansible
  3. source princeton_ansible_env.sh

Follow instructions in the README to run playbooks