大网数据广告活动
服务器运维问答

What is the equivalent of using hiera as an ENC in Ansible?

· 52CE 我爱测

I use hiera as an External Node Classifier in Puppet in order to avoid that roles are deployed on nodes that are for example incompatible. Now I have two servers that are provisioned using Ansible. I am concerned that when the cl…

问题原文

原帖链接 · 030 · CC BY-SA 3.0

I use hiera as an External Node Classifier in Puppet in order to avoid that roles are deployed on nodes that are for example incompatible. Now I have two servers that are provisioned using Ansible. I am concerned that when the cluster grows that I have to check what nodes are available and then decide what role should be applied instead of hiera that that is doing automatically. For example, system A is a developer system and deploy development role and systemB is a db system deploy database role.

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 3.0

Ansible supports pulling host and group variables from one or more external inventory systems. Examples are included of pulling in inventory from Cobbler, EC2 and OpenStack. Ansible Tower also includes its own dynamic inventory source. It is also possible to write your own script to pull data from any source.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-07-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。