Cloud Computing
Topic Overview of Chameleon cloud Cloud Concepts & Terminology Launch a instance (as a team) Learn about Ansible and automate adding of tools to your instance Install a webserver using ansible
What are we using ? Openstack (and the provider is NSF Chameleon) https://chameleoncloud.org/docs/user- guides/openstack-kvm-user-guide/ Quick overview of concepts (review of docs at Chameleon) Review of our “CI Lego blocks” from your midterm experience
Some Cloud Terminology Image Ports Size Ingress VCPU Egress Instance IP address (Public and Private) Power state Keypair Zone Volume Snapshot Firewall Security group
Ansible Infrastructure as code ! Configuration Management (why ?) Popular tools for CM (Chef, Puppet etc) Why Ansible ? Concepts: Inventory Playbooks (recipe) & YAML Role of ssh and keys ! Ansible: From Beginner to Pro by Heap, Michael (ebook in our library)
Hands on Step 1 Form a group (3 to 4) Log into console for Chameleon Launch centos7 image Associate public IP (why ?) ssh to it (remember the login name is cc ) This is a vanilla image, lets make it interesting What does it mean to “script your infrastructure”
Hands on Step 2 (Ansible) http://docs.ansible.com/ansible/ Install ansible on your laptop (local or virtual box instance) using instructions What is a inventory file (make one) What are modules (use some) Install a package on your instance ansible all -u cc -i inventory.txt --sudo -m yum -a "name=wget state=present” ansible all -u cc -i inventory.txt --sudo -m service -a "name=httpd state=reloaded” What is a playbook (we will use some next class)