puppet ignora as classes ENC

1

Estou usando um script ruby para recuperar os parâmetros de classe e minha saída YAML é a seguinte:

classes:
  tomcat_install:
    tmp_dir: /tmp
    tomcat_home: /tmp/tomcat6

puppet.conf é como abaixo:

[master]
node_terminus = exec
external_nodes = /etc/puppet/readnodedefinitions.rb

Quando eu dou o comando de teste do agente fantoche, o registro é:

Notice: Ignoring --listen on onetime run
Info: Retrieving plugin
Info: Caching catalog for puppet-agent
Info: Applying configuration version '1367987990'
Notice: Finished catalog run in 0.06 seconds

Mas as classes especificadas no script ruby estão sendo ignoradas. Alguma idéia porque é ignorado?

o modo de depuração deu isto


Debug: Finishing transaction 69977541744660
Debug: Loaded state in 0.00 seconds
Debug: node supports formats: b64_zlib_yaml pson raw yaml; using pson
Debug: Using cached certificate for ca
Debug: Using cached certificate for puppet-agent.cs1cloud.internal
Debug: Using cached certificate_revocation_list for ca
Info: Retrieving plugin
Debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using pson
Debug: Finishing transaction 69977541525360
Debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using pson
Info: Caching catalog for puppet-agent.cs1cloud.internal
Debug: Creating default schedules
Debug: Loaded state in 0.00 seconds
Info: Applying configuration version '1367987990'
Debug: /Schedule[daily]: Skipping device resources because running on a host
Debug: /Schedule[monthly]: Skipping device resources because running on a host
Debug: /Schedule[hourly]: Skipping device resources because running on a host
Debug: /Schedule[never]: Skipping device resources because running on a host
Debug: /Schedule[weekly]: Skipping device resources because running on a host
Debug: /Schedule[puppet]: Skipping device resources because running on a host
Debug: Finishing transaction 69977541711700
Debug: Storing state
Debug: Stored state in 0.03 seconds
Notice: Finished catalog run in 0.07 seconds
Debug: Value of 'preferred_serialization_format' (pson) is invalid for report, u                                                                                        sing default (b64_zlib_yaml)
Debug: report supports formats: b64_zlib_yaml raw yaml; using b64_zlib_yaml
    
por user172857 08.05.2013 / 06:53

1 resposta

0

Parece que sua saída YAML perdeu alguns - e o Puppet não consegue reconhecê-la como um arquivo YAML. Talvez devesse gostar disso?

---
classes:
  puppet-agent.cs1cloud.internal:
    tmp_dir: /tmp
    tomcat_home: /tmp/tomcat6
    
por 09.05.2013 / 05:17

Tags