码迷,mamicode.com
首页 >  
搜索关键字:配置管理 ansible    ( 4301个结果
ansible的内置变量
内置变量ansible_version获取到ansible的版本号ansibletest70-mdebug-a"msg={{ansible_version}}"内置变量hostvars操作当前主机时获取到其他主机中的信息name:"play1:Gatherfactsoftest71"hosts:test71remote_user:rootname:"
分类:其他好文   时间:2020-09-17 17:20:47    阅读次数:79
ansible进阶循环
通过item和with_items对重复操作进行循环执行示例:hosts:jack6_1remote_user:rootgather_facts:notasks:name:touchfilefile:path:"{{item}}"state:touchwith_items:"a""b""c"在jack6_1主机上创建三
分类:其他好文   时间:2020-09-17 17:20:16    阅读次数:39
ansible的循环二
with_items遍历列表中每个元素,包括嵌套列表with_list将嵌套列表作为整体元素遍历with_together将多个列表中的子列表元素,一起输出,不成对则null补位示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_items:[1,2,3][a,b]debug
分类:其他好文   时间:2020-09-17 17:19:57    阅读次数:31
ansible循环四
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:其他好文   时间:2020-09-17 17:19:41    阅读次数:32
ansible循环四
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:其他好文   时间:2020-09-17 17:19:20    阅读次数:33
cmdb系统设计
概念CMDB:ConfigurationManagementDB,配置管理数据库。它管理的是资产,核心是DB,即存放资产信息的系统,而在实际中,运维团队会围绕这个DB衍生出运维管理系统,该系统依赖CMDB中的基础信息。传统设计模式数据库表设计资产类型表idname如:1服务器,2交换机,3路由器资产表idname资产类型id设备编号如:1dell服务器1d1002933,2H3C路由器3r2340
分类:数据库   时间:2020-09-17 17:17:56    阅读次数:42
ansible循环三
with_nested采用笛卡尔乘积方式,将多个嵌套列表中的元素交叉组合示例:创建多个目录及子目录mkdir-p/testdir/{a,b,c}/{1,2}ansible剧本如下:hosts:jack6_1remote_user:rootgather_facts:notasks:file:path:"/testdir"state:directoryfile:path:"
分类:其他好文   时间:2020-09-17 16:54:16    阅读次数:24
ansible模块register/vars
register注册变量可以将输出信息作为变量值示例:[root@jack7-1work]#catregister.ymlhosts:PCremote_user:roottasks:name:testshellshell:"echotest>/root/test"register:testvar==================>将shell输出的结果赋值给tes
分类:其他好文   时间:2020-09-17 16:02:37    阅读次数:28
Spring Cloud:Consul基础知识
一.基本概念 Consul是一套开源的分布式服务发现和配置管理系统,由HashiCorp公司用Go开发。 它提供微服务系统中的服务治理、配置中心、控制总线等功能。 服务发现:提供HTTP和DNS两种发现方式。 健康检测:支持多种方式,http、tcp、Docker、shell等 kv存储:key、v ...
分类:编程语言   时间:2020-09-17 13:43:04    阅读次数:30
SpringCloud入门 服务配置 Config
?服务配置:分布式配置中心 1、概述 分布式系统面临的.....配置问题 微服务意味着要将单体应用中的业务拆分成一个个子服务,每个服务的粒度相对较小,因此系统中会出现大量的服务。由于每个服务都需要必要的配置信息才能运行,所以一套集中式的、动态的配置管理设施是必不可少的。 SpringCloud提供了 ...
分类:编程语言   时间:2020-09-17 13:15:26    阅读次数:24
4301条   上一页 1 ... 9 10 11 12 13 ... 431 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!