【发布时间】:2016-08-08 21:11:43
【问题描述】:
我正在使用https://github.com/openstack/puppet-keystone 设置 OpenStack 管理/控制器节点。我需要将'glance'用户添加到keystone。我想在我的 hiera 数据中尽可能多地尝试和做,这样我的清单就会很简单。
这是我的清单:
class kilo2_keystone {
include controller_ceph
include keystone
include keystone::config
include keystone::user
# keystone_user { 'glance':
# ensure => present,
# }
}
注释掉的部分有效,但我希望能够做到 include keystone::user 并在我的 hiera 数据中提供参数,如下所示:
keystone::user:
"%{hiera('glance_admin_user')}":
ensure: present
但是当我在我的节点上运行 puppet agent -t 时,我得到了这个错误:
Could not find class ::keystone::user
【问题讨论】:
-
该模块中似乎没有用户类,那么您想用
include keystone::user做什么?此外,如果您正在像这样在 hiera 中定义资源,那么您想在查找时使用create_resources之类的东西。您使用的是 Hiera
标签: puppet openstack keystore hiera openstack-glance