Opennstack

  • Open source software for creating private and public clouds

  • Manages the servers at these sites so you can create Virtual Machines (VMs) for your apps / services to run on

  • Can create VMs using the UI or through scripts

  • Once created, can click on the instance name in the UI to find the IP

  • nslookup on the IP to find the hostname (hostname can be worked out from the Openstack account and the instance name as well)

  • SSH onto the IP / host as root, using the appropriate private key

  • Check instance has correct resources by running lscpu / free -h / df -h

Heat

  • Heat is the main project in the OpenStack Orchestration program (Orchestration: Coordinate servers to work together). It implements an orchestration engine to launch multiple composite cloud applications based on templates in the form of text files that can be treated like code.

  • A heat template can create multiple volumes & VMs

  • heat stack-create \
    -f openstack/templates/demo-template.yaml \
    cr-demo

Openstack vs  AWS vs Raw tin

  • Openstack is mainly for creating private cloud and is open source while AWS is mainly a public cloud.

  • Network speed in AWS would be slower than that in Openstack, as the AWS machines are in Ireland.

  • Network speed in Openstack would be slower than that in raw tin servers, as the openstack servers have an virtualization layer.

Ansible

  • After created blan VM in openstack, could use Ansible to create non-root users, copy ssh keys, install java, install/delete cronjobs

  • “[Ansible] can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates”

  • Why not Puppet / Chef / x?

    • No need for a ‘master’ node (just run from your laptop!)

  • Inventory Files

    • Specify which servers to configure

    • Group servers together (eg. ‘Dash Servers’)

    • Can be Static or Dynamic

      • Static = hard-coded IPs or hostnames

      • Dynamic = query a provider like AWS… Or Openstack!

  • Roles

    • Define a set of tasks to apply to a group of servers

    • Eg. group together tasks for a standard Java app server, and apply those tasks to all Java app servers

  • Tasks

    • Define specific actions to carry out on a server

    • Eg. Install Java 8

    • Eg. Copy file x from my Ansible repo to the server

    • Eg. Copy template y from my Ansible repo to the server

    • Eg. Restart service z on the server

  • Variables

    • Tasks and templates may reference variables

    • Variables can be set against:

      • Specific servers (in inventory files / inventory folders)

      • Groups of servers (in group_vars)

Conclusion

  • Statically create VMs in Openstack
  • Use Ansible to manage VMs
      • Installing software (Java, sqlite, filebeat, etc)

      • Managing app scripts (deploy / stop / start)

      • Managing cronjobs (log deletion scripts)

      • Managing SSH Keys

      • Managing config (New Relic, filebeat)

Openstack & Ansible的更多相关文章

  1. 我的第二本译作《精通OpenStack》上架啦:前言、目录和样章

    1. 前言 今天,随着新功能和子项目的增加,OpenStack已成为一个不断扩展的大型开源项目.随着数以百计大型企业采用并不断为OpenStack生态系统做出贡献,OpenStack必将成为下一代私有 ...

  2. DevOps之平台架构

    唠叨话 关于德语噢屁事的知识点,仅提供精华汇总,具体知识点细节,参考教程网址,如需帮助,请留言. DevOps平台架构(Platform Architecture) <虚拟化平台(Platfor ...

  3. CNCF CloudNative Landscape

    cncf landscape CNCF Cloud Native Interactive Landscape 1. App Definition and Development 1. Database ...

  4. CNCF LandScape Summary

    CNCF Cloud Native Interactive Landscape 1. App Definition and Development 1. Database Vitess:itess i ...

  5. ansible无网络安装openstack(Newton)

    概要 apt使用本地源,pip使用本地源 网络环境 物理机环境 网络名 网络地址 VLAN br-ex 192.168.200.250/24 90 br-mgmt 92.0.0.100/24 92 a ...

  6. 使用Ansible部署openstack平台

    使用Ansible部署openstack平台 本周没啥博客水了,就放个云计算的作业上来吧(偷个懒) 案例描述 1.了解高可用OpenStack平台架构 2.了解Ansible部署工具的使用 3.使用A ...

  7. openstack资料相关

    https://github.com/int32bit/openstack-workflow  #openstack各种时序图 http://docs.openstack.org/developer/ ...

  8. 初探ansible安装

    一.ansible介绍常用的自动化运维工具 Puppet —基于 Ruby 开发,采用 C/S 架构,扩展性强,基于 SSL,远程命令执行相对较弱SaltStack —基于 Python 开发,采用 ...

  9. ansible入门

    前言 最近看了一下ansible,挺火的一个配置管理工具,对比老大哥puppet,使用起来要简单一些,并且可以批量执行命令,对比同是python语言编写的saltstack,不需要安装客户端(基于pa ...

随机推荐

  1. Spring Hiernate整合

    Spring整合Hibernate 一.整合目标 1.由IoC容器管理Hibernate的SessionFactory2.让Hibernate使用Spring的声明式事务 二.整合步骤 先加入Hibe ...

  2. Hibernate(三)之配置文件详解

    一.核心配置文件(hibernate.cfg.xml) <?xml version="1.0" encoding="UTF-8"?> <!DO ...

  3. 使用VsCode编写和调试.NET Core项目

    ​ 本来我还想介绍以下VSCode或者donet core,但是发现都是废话,没有必要,大家如果对这个不了解可以直接google这两个关键字,或者也根本不会看我这边文章. ​ 好直接进入主题了,本文的 ...

  4. node.js系列(实例):原生node.js实现接收前台post请求提交数据

    前台界面: 前台代码: <form class="form-horizontal" method="post" action="http:127 ...

  5. 以防忘记,建立stm32工程的过程

    然后会弹出manage run -time environment的运行环境界面,必须选择的有CMSIS下的core和device下的startup,至于其它的根据你需要的外设, 在stdperiph ...

  6. 跨语言学习的基本思路及python的基础学习

    笔者是C#出身,大学四年主修C#,工作三年也是C#语言开发.但在学校里其他的语言也有相应的课程,eg:Java,Php,C++都学过,当然只是学了皮毛(大学嘛,你懂得),严格来说未必入门,但这些语言的 ...

  7. _getch() 函数,应用于输入密码敲入回车前修改

    body,table { font-family: 微软雅黑; font-size: 10pt } table { border-collapse: collapse; border: solid g ...

  8. JS + HTml 时钟代码实现

    JS+ Html 画布实现的时钟效果图: 闲来无聊做了一个网页的时钟,效果模拟传统时钟的运行方式, 运用了html 的画布实现指针,背景图片引用了网络图片. 具体原理: 首先将时钟分为四个不同区域,对 ...

  9. EMMC与RAND的区别

    作者:Younger Liu, 本作品采用知识共享署名-非商业性使用-相同方式共享 3.0 未本地化版本许可协议进行许可. EMMC与RAND的区别 说到两者的区别,必须从flash的发展历程说起,因 ...

  10. mysql导入导出sql文件(包括数据库和数据表的操作)

    废话不多说直接开始. 在windows命令行下登录mysql,创建一个test_01数据库,创建一个user表,并插入一条数据,如下 一.导出数据库test_01 1.退出数据库,在命令行中输入 my ...