我依靠Librarian-puppet將rabbitmq安裝在一個流浪盒子裏。非法rabbitmq羣集節點與Puppet
木偶版本是3.4.0
我Puppetfile
包含
forge "http://forge.puppetlabs.com"
[...]
mod 'rabbitmq', :git => 'git://github.com/puppetlabs/puppetlabs-rabbitmq'
通過下面的文檔,我打算安裝的RabbitMQ服務器下一條指令:
class { '::rabbitmq':
service_manage => false,
port => '5672',
delete_guest_user => true,
}
這樣,我遇到了以下錯誤消息:
Error: Illegal name. The given name _cluster_nodes does not conform to the naming rule
\A((::)?[a-z0-9]w*)(::[a-z0-9]w*)*\z at
/etc/puppet/modules/rabbitmq/manifests/config.pp:45:5
Error: Illegal name. The given name _cluster_nodes does not conform to the naming rule
\A((::)?[a-z0-9]w*)(::[a-z0-9]w*)*\z at
/etc/puppet/modules/rabbitmq/manifests/config.pp:47:5
實際config.pp文件包含下面的代碼塊:
# Handle deprecated option.
if $cluster_disk_nodes != [] {
notify { 'cluster_disk_nodes':
message => 'WARNING: The cluster_disk_nodes is deprecated.
Use cluster_nodes instead.',
}
$_cluster_nodes = $cluster_disk_nodes # line 45
} else {
$_cluster_nodes = $cluster_nodes # line 47
}
誰能給我提供集羣節點名稱的有效實例? 顯然用於驗證的正則表達式對我來說看起來有點神祕。
我也想知道_cluster_nodes
值是如何驗證的......用於驗證的正則表達式來自哪裏?
木偶的版本,你這全光照G? –
正則表達式來自傀儡詞法分析器 –
我使用的是木偶3.4.0 –