我想在使用Puppet的流浪盒上安装postgresql9.4的一个实例。到目前为止,我不喜欢我的傀儡时间和其网站上的文档。到目前为止,我正在尝试从不同的教程和Postgresql Puppet Forge官方文档中进行修补。找不到声明的类postgresql :: server Puppet
我所做的:
puppet module install puppetlabs-postgresql
我已经创建了一个
/etc/puppet/modules/postgresql/manifests/init.pp
文件我已经把这个代码在
init.pp
文件:class { 'postgresql::server': ip_mask_deny_postgres_user => '0.0.0.0/32', ip_mask_allow_all_users => '0.0.0.0/0', listen_addresses => '*', ipv4acls => ['hostssl all johndoe 192.168.0.0/24 cert'], postgres_password => 'TPSrep0rt!', }
我收到的错误是这样的:
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class postgresql::server at /etc/puppet/modules/postgresql/manifests/init.pp:7 on node vagrant-ubuntu-trusty-64.bbf.local
Wrapped exception:
Could not find declared class postgresql::server
Error: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class postgresql::server at /etc/puppet/modules/postgresql/manifests/init.pp:7 on node vagrant-ubuntu-trusty-64.bbf.local
我变得非常沮丧木偶,我想用“部署Rails的和官方伪造现场跟着一起得到这个工作,但无济于事。
我对木偶感到沮丧的是,该网站没有指定放置什么东西。从教程中,我已将傀儡代码放在init.pp
中,但postgresql有repo.pp, server.pp
等等,它不会告诉你在哪里放置傀儡代码。有人可以帮助我吗?
作为一个侧面说明,如果你是刚刚进入Linux的自动化,业务流程,配置管理,部署等,然后木偶真的不是一个很好的起点。它是相关软件工具中最先进和最复杂的。老实说,你可能想要和Ansible稍微玩一下,然后带着更多的经验回到Puppet。作为一个直接的说明,你为什么试图在Vagrant的主/客户端范例中使用Puppet?使用Vagrant Puppet配置器插件可以让您更容易。 –