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. ABP框架实战 1.基础信息维护

    在之前的一个开发项目中,因为公司战略发展,引用了这个ABP开源框架作为新项目的基础版本,由于客户的要求需要迁移旧系统数据,以及其他的一些原因,数据库采用了Oracle数据库管理.所以引用了Dapper ...

  2. 测试开发技术:DOM中 innerHTML、innerText、outerHTML、outerText的区别

    测试开发技术:DOM中 innerHTML.innerText.outerHTML.outerText的区别   我们在做web自动化的过程中通过dom处理web页面元素,那么你就要了解innerHT ...

  3. 用Xamarin + VS 编写Android程序体验及其与Android Studio的比较

    昨天看了微软2016Build大会,Xamarin免费了.恩,5亿美刀的家伙,哈哈,我也要体验一下..... 1. 首先在Xamarin官网下载安向导:https://www.xamarin.com/ ...

  4. Git 更新本地代码

    先用git remote -v 查看远程仓库的分支: 我分支远程仓库就只有一个分支master 比较本地仓库和远程仓库的不同 我本地仓库和远程仓库的代码是一样的所以没有区别 更新远程代码到本地 合并本 ...

  5. 【G】开源的分布式部署解决方案文档 - 部署Console & 控制负载均衡 & 跳转持续集成控制台

    G.系列导航 [G]开源的分布式部署解决方案 - 导航 设置项目部署流程 项目类型:选择Console,这个跟功能无关,只是做项目分类,后面会有后续功能 宿主:选择Console 部署方式:选择原始, ...

  6. android布局中画线的方法

    1.自定义View画线 http://fariytale.iteye.com/blog/1264225 下面介绍几种简单的方法 2.textView和View画直线 <TextView andr ...

  7. 学习MVC之租房网站(三)-编写实体类并创建数据库

    在上一篇<学习MVC之租房网站(二)-框架搭建及准备工作>中,搭建好了项目框架,并配置了EF.Log4Net和进程外Session.接下来会编写Eneity类并采用CodeFirst的方式 ...

  8. C++ 编译报错discards qualifiers [-fpermissive]

    声明了一个类 class Card { public: Card(const string&); int m_value; char m_suit; private: const static ...

  9. Android系统--输入系统(七)Reader_Dispatcher线程启动分析

    Android系统--输入系统(七)Reader_Dispatcher线程启动分析 1. Reader/Dispatcher的引入 对于输入系统来说,将会创建两个线程: Reader线程(读取事件) ...

  10. Unity C# 多态 委托 事件 匿名委托 Lambda表达式 观察者模式 .NET 框架中的委托和事件

    一.多态 里氏替换原则: 任何能用基类的地方,可以用子类代替,反过来不行.子类能够在基类的基础上增加新的行为.面向对象设计的基本原则之一. 开放封闭原则: 对扩展开放,意味着有新的需求或变化时,可以对 ...