摘要: 说明 部署完ceph集群(active+clean状态)之后, 我们来实践下ceph block device(即RBD或RADOS block device)。 我们需要在一台新的client节点上,初始化、使用ceph集群创建、提供的卷(image) 在ceph-client节点,安装ceph 阅读全文
posted @ 2018-05-04 11:51 nineep 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: 环境说明 server:3台虚拟机,挂载卷/dev/vdb 10G 系统:centos7.2 ceph版本:luminous repo: 公网-http://download.ceph.com,http://mirrors.aliyun.com 内网-自建mirrors 架构说明 node1:adm 阅读全文
posted @ 2018-05-04 11:25 nineep 阅读(6885) 评论(0) 推荐(0) 编辑
摘要: facts Facts通过访问远程系统获取相应的信息。 一个例子就是远程主机的IP地址或者操作系统是什么. 使用以下命令可以查看哪些信息是可用的: 这会返回巨量的变量数据,比如对于Ubutu 12.04系统,Ansible 1.4获取的信息显示如下: 引用返回的fact变量: 在模板和条件判断中会经 阅读全文
posted @ 2018-05-03 10:48 nineep 阅读(2347) 评论(0) 推荐(1) 编辑
摘要: 1、加速模式运行playbook 对于使用ansible 1.5 及之后版本的用户,加速模式只在以下情况下有用处: (A) 管理红帽企业版 Linux 6 或者更早的那些依然使用 paramiko 的版本 (B) 像在文档中描述的那样:无法在 TTYs 中使用 sudo. 2、异步操作和轮询 默认情 阅读全文
posted @ 2018-04-25 20:25 nineep 阅读(481) 评论(0) 推荐(0) 编辑
摘要: 一、Jinja2介绍 Jinja2是基于python的模板引擎,功能比较类似于PHP的smarty,J2ee的Freemarker和velocity。它能完全支持unicode,并具有集成的沙箱执行环境,应用广泛。jinja2使用BSD授权 Jinja2的语法是由variables(变量)和stat 阅读全文
posted @ 2018-04-25 18:56 nineep 阅读(820) 评论(0) 推荐(0) 编辑
摘要: 我们使用查看ansible modules 和plugins 都可通过ansible-doc 命令在终端实现。 具体到ansible role,我们可以使用ansible-galaxy 在终端 search&install roles 也可以在ansible galaxy官网查询roles 命令行工 阅读全文
posted @ 2018-04-25 18:54 nineep 阅读(1131) 评论(0) 推荐(0) 编辑
摘要: 1、inventory文件 1、inventory文件说明: 目标主机的组织编排,灵活的将ad-hoc或plays传递给不同的主机。 主机、plays较少,直接在ansible 根目录使用hosts文件即可, 如果较为复杂,可以创建inventory文件夹,分不同inventory文件: inven 阅读全文
posted @ 2018-04-25 18:50 nineep 阅读(483) 评论(0) 推荐(0) 编辑
摘要: [action plugins] [cache plugins]jsonfilememcachedmemorymongodbpickleredisyaml [callback plugins]actionablecontext_demodebugdefaultdenseforemanfull_ski 阅读全文
posted @ 2018-04-25 18:47 nineep 阅读(247) 评论(0) 推荐(0) 编辑
摘要: ##Some common modules[cloud modules] [clustering modules] [command modules]command - executes a command on a remote nodeexpect - executes a command an 阅读全文
posted @ 2018-04-25 18:45 nineep 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 查看当前内核版本: [root@nineep ~]# uname -r 2.3.10.0-514.2.2.el7.x86_64 查看当前发行版本: [root@nineep ~]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core 阅读全文
posted @ 2018-01-31 18:45 nineep 阅读(2670) 评论(0) 推荐(0) 编辑