Skip to content

chapter09/initVM

Repository files navigation

Table of Contents

initVM

Ansible playbooks for VMs initialization

Todo

  • Timeout the install vim plugins task.
  • Add /etc/hosts file modification
  • Add upgrade to pip and pip3

Usage

sh -c "$(wget https://raw.githubusercontent.com/chapter09/initVM/master/init.sh -O -)"

Basic installation

  1. Run init.sh
  2. Rename host.template to host
  3. Add your public keys (e.g., https://github.com/chapter09.keys) to group_vars/all
  4. Run ansible-playbook site.yml

doctoc

Jupyter

ansible-playbook jupyter.yml

TensorFlow

Jupyter Notebook

initVM a cluster of bare VMs (without Python)

Install Python

ansible -i hosts all -m raw -a "sudo apt-get install python3"

initVM

ansible -i hosts all -m raw -a "sh -c '$(wget https://raw.githubusercontent.com/chapter09/initVM/master/init.sh -O -)'"
ansible -i hosts all -m shell -a "cd initVM; ansible-playbook site.yml"
ansible -i hosts all -m shell -a "reboot" -b

Hadoop & Spark Stack

  • Generate a uniform /etc/hosts file

About

Ansible playbooks for VMs initialization

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors