UBC-DSCI / jupyterhub-infrastructure

0 stars 0 forks source link

Install ansible and use it to install something on EC2 #12

Open ttimbers opened 4 years ago

ttimbers commented 4 years ago

@hsmohammed - one thing you can do this week is start to prep for automation. This means trying out ansible to do something simple. Please install ansible on your laptop (see instructions here: https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installation-guide) and then set up a free EC2 instance (t2.micro, for example) and get ansible to install something on that machine using the instructions you give it on your laptop. I will try the same this week as well.

ttimbers commented 4 years ago

I'm going to try following this tutorial somewhat: https://blog.risingstack.com/getting-started-with-ansible-infrastructure-automation/#ansiblesetupconfigurationandautomation

ttimbers commented 4 years ago

@hsmohammed - OK, I got this working on my laptop and a new AWS EC2 machine. You can test it out by pulling the ansible branch and following the docs here: https://github.com/UBC-DSCI/rudaux/blob/ansible/jupyterbook/content/01-infrastructure.ipynb

Note you need new EC2 instances, to test this out you can just use the free tier ones.

hsmohammed commented 4 years ago

I have got this working on my laptop too.

ttimbers commented 4 years ago

Let's move the ansible directory from here: https://github.ubc.ca/UBC-DSCI/dsci-100-infra into this repo on the ansible branch.

Before you do that, rename the current ansible directory on the ansible branch ansible_toy

ttimbers commented 4 years ago

Please document all you do in this file: https://github.com/UBC-DSCI/rudaux/blob/ansible/jupyterbook/content/01-infrastructure.ipynb

ttimbers commented 4 years ago

Remove the grading machine from here: https://github.ubc.ca/UBC-DSCI/dsci-100-infra/blob/master/ansible/inventory-ad-hoc (we will add it back in later).

jhub-mastodon ansible_host=192.168.123.59 should become something like: jhub-mastodon ansible_host=centos@<IP>

hsmohammed commented 4 years ago

I have a question: The new Centos instance has 3 devices

/dev/sda1 /dev/sdb /dev/sdc

which one we will be using?

trevorcampbell commented 4 years ago

@ttimbers is this still an open issue?