Puppet Error - Deve passar o puppet_server para a classe [Puppet :: Agent]

2

Estou recebendo o seguinte erro usando um módulo puppet no meu mestre de marionetes para gerenciar o mestre (Apache / Passenger) e o agente

[ashinn@puppet1 ~]$ sudo puppet agent --test
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/os_maj_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Must pass puppet_server to Class[Puppet::Agent] at /etc/puppet/environments/production/modules/puppet/manifests/init.pp:181 on node puppet1.mydomain.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

A definição do nó para puppet1.mydomain.com é bem simples:

node 'puppet1.mydomain.com' {
  include motd
  include ntp

  class { 'puppet' :
    puppet_server    => 'puppet.mydomain.com',
    version          => 'latest',
    master           => true,
    agent            => true,
    autosign         => '$confdir/autosign.conf',
    manifest         => '$confdir/environments/$environment/manifests/site.pp',
    modulepath       => '$confdir/environments/$environment/modules',
    puppet_passenger => true,
  }
}

O módulo específico e init.pp estão no link . A linha 181 contém o fechamento } para a instrução 'class {puppet :: master:'.

Eu posso ver que init.pp não passa puppet_server para a classe puppet::agent :

  if $agent {
    class {'puppet::agent':
      version                   => $version,
      puppet_defaults           => $puppet_defaults,
      puppet_agent_service      => $puppet_agent_service,
      puppet_server             => $puppet_server,
      environment               => $environment,
      puppet_conf               => $puppet_conf,
      puppet_agent_name         => $puppet_agent_name,
      package_provider          => $package_provider,
      reporting                 => $reporting,
      user_id                   => $user_id,
      group_id                  => $group_id,  
    }
  }

O que pode estar errado? Estou faltando algo óbvio aqui?

    
por Andy Shinn 09.05.2013 / 23:16

0 respostas