我的Vagrant VM可以在没有Puppet master的情况下使用storeconfigs进行清单吗?

Phi*_*bin 17 puppet vagrant openstack

我正在尝试建立一个多VM Vagrant环境,它可以旋转OpenStack控制器和一些OpenStack计算节点,然后在计算节点上配置一两个VM.

是的,我在谈论在VM上运行的虚拟机.这听起来有点疯狂,但这个多虚拟机Vagrant环境已经在https://github.com/lorin/openstack-ansible上创建了,它完美无缺,正如我在http://wiki.greptilian.com/上所描述的那样OpenStack的

然而,我只能从GitHub回购及其相应的技术讲座中汲取灵感,因为它使用Ansible作为Vagrant供应商,而我需要使用Puppet.

我想在https://github.com/puppetlabs/puppetlabs-openstack上使用OpenStack的官方Puppet Labs模块但是它使用了storeconfigs,所以我得到这样的错误,因为我的Vagrantfile没有包含一个VM作为一个木偶大师:

warning: You cannot collect exported resources without storeconfigs being set; the collection will be ignored on line 142 in file /tmp/vagrant-puppet/modules-0/nova/manifests/init.pp

Resource type anchor doesn't exist at /tmp/vagrant-puppet/modules-0/nova/manifests/db/mysql.pp:18 on node controller.example.com.

我想我可以调整我的Vagrantfile以与OpenStack主机一起启动Puppet master,但我不确定我是如何做到这一点的,它似乎在Vagrant环境中引入了额外的复杂性.

我想知道是否可以用"无主"Puppet来做到这一点.http://semicomplete.com/presentations/puppet-at-loggly/puppet-at-loggly.pdf.html上的一篇文章表明,它可能会说," puppet –environment prerun manifests/prerun.pp...使存储配置工作puppet –storeconfigs manifests/site.pp......这就是主要木偶运行"但我对实施细节感到困惑.

任何人都可以指向一个Vagrant仓库,运行"无主"Puppet但使用storeconfigs?

小智 1

您需要使用所有流浪虚拟机都可以访问的数据库来配置您的 storeconfigs。Loggly 使用 AmazonRDS,但您可以使用其他数据库,如puppet 文档所示。假设您有一个所有虚拟机都可以访问的数据库,并且您使用 storeconfigs 选项运行 puppet,并且您在 puppet 中配置了正确的数据库连接信息,那么您应该没问题。