Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
September 2016
Using Ansible to manage instances on CloudPlatform
By
Kiran Manohar Chavala
@kiranchavala
kiranchavala@gmai...
© 2016 Accelerite. All Rights R
Agenda
Configuration Management
Why Ansible is required
Installing Ansible
Hands on sessio...
© 2016 Accelerite. All Rights R
Why Configuration management is important
I need these services to be installed and runnin...
© 2016 Accelerite. All Rights R
What is Configuration Management?
  Configuration management is the philosophy of defining...
© 2016 Accelerite. All Rights R
hat is Idempotent
erations in mathematics and computer science, that can be applied multip...
© 2016 Accelerite. All Rights R
How Ansible is different then Chef and Puppet
Technical:
Client/Server architecture not re...
© 2016 Accelerite. All Rights R
Basic Terminologies
Host Inventories
Roles
Tasks
Variables (hosts or groups)
Modules
Templ...
© 2016 Accelerite. All Rights R
nstalling Ansible
  Install a centos 6 .x machine
  yum install wget
  wget http://dl.fedo...
© 2016 Accelerite. All Rights R
onfiguring Ansible
um install openssh-server openssh-clients
Yum install git
-keygen -t rs...
© 2016 Accelerite. All Rights R
Use Case Scenarios
  The remote machine should have set of predefined packages installed
h...
© 2016 Accelerite. All Rights R
Deploying Cloudstack components using Anisble
  http://docs.cloudstack.apache.org/en/lates...
Thank You!
Upcoming SlideShare
Loading in …5
×
Upcoming SlideShare
Containerisation & Cloud Trends
Next
Download to read offline and view in fullscreen.

0

Share

Download to read offline

Using ansible to manage cloud platform by Accelerite

Download to read offline

Kiran, Product Engineer from Accelerite shared "how to manage/deploycloudstack through ansible" at the 5th edition of Hybrid cloud meetup.

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

Using ansible to manage cloud platform by Accelerite

  1. 1. September 2016 Using Ansible to manage instances on CloudPlatform By Kiran Manohar Chavala @kiranchavala kiranchavala@gmail.com
  2. 2. © 2016 Accelerite. All Rights R Agenda Configuration Management Why Ansible is required Installing Ansible Hands on session on a practicle example of Ansible Deploying Cloudstack Management server
  3. 3. © 2016 Accelerite. All Rights R Why Configuration management is important I need these services to be installed and running I need this configuration file to contain these lines I need this file to exist in this directory Centralization of configuration Creation of reusable template configurations i.e. web servers, database servers, DHCP servers, Cloudstack management servers
  4. 4. © 2016 Accelerite. All Rights R What is Configuration Management?   Configuration management is the philosophy of defining the state that a server should be in wrt it’s configuration and using tools that achieve that state   CM gives centralization of configuration data and actions   Configuration Management tools should be idempotent
  5. 5. © 2016 Accelerite. All Rights R hat is Idempotent erations in mathematics and computer science, that can be applied multiple times without changing the result yond the initial application. You need to add the following lines to the default my.cnf: odb_rollback_on_timeout=1 odb_lock_wait_timeout=600 x_connections=350 A sed command would add the lines d -i -e '/symbolic-links=0/ ainnodb_rollback_on_timeout=1' -e '/symbolic-links=0/ ainnodb_lock_wait_timeout=600' - symbolic-links=0/ amax_connections=350' /etc/my.cnf But if you needed to run your script to update/restore another setting then the addition of these lines would be repeated A configuration management tool would not add these lines aga
  6. 6. © 2016 Accelerite. All Rights R How Ansible is different then Chef and Puppet Technical: Client/Server architecture not required Only SSH connectivity required (password or public/private keys) making it easier to deploy in environments Modules can be in any language capable of returning JSON or key=value text pairs Has an API User: Don’t need to learn a programming language (i.e. Ruby) Chef and puppet are pull-based by default. Agent installed on the servers periodically check in with a centra ervice and pull down con
  7. 7. © 2016 Accelerite. All Rights R Basic Terminologies Host Inventories Roles Tasks Variables (hosts or groups) Modules Templates Playbooks
  8. 8. © 2016 Accelerite. All Rights R nstalling Ansible   Install a centos 6 .x machine   yum install wget   wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm   wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm   sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm   yum install -y ansible
  9. 9. © 2016 Accelerite. All Rights R onfiguring Ansible um install openssh-server openssh-clients Yum install git -keygen -t rsa -copy-id root@remote machine you want to control ot@anscont3 playbooks1]# cat hosts ibleremote ansible_ssh_host=10.104.49.233 ansible_ssh_port=22 ot@anscont3 playbooks1]# cat ansible.cfg faults] tfile = hosts mote_user = root ate_key_file=/root/.ssh/id_rsa t_key_checking = False
  10. 10. © 2016 Accelerite. All Rights R Use Case Scenarios   The remote machine should have set of predefined packages installed https://github.com/fifthecho/CloudStack-Template git clone https://github.com/fifthecho/CloudStack-Template.git
  11. 11. © 2016 Accelerite. All Rights R Deploying Cloudstack components using Anisble   http://docs.cloudstack.apache.org/en/latest/ansible.html   http://docs.ansible.com/ansible/guide_cloudstack.html   https://github.com/resmo/ansible-cloudstack
  12. 12. Thank You!

Kiran, Product Engineer from Accelerite shared "how to manage/deploycloudstack through ansible" at the 5th edition of Hybrid cloud meetup.

Views

Total views

2,258

On Slideshare

0

From embeds

0

Number of embeds

1,873

Actions

Downloads

10

Shares

0

Comments

0

Likes

0

×