Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. class profile::base {
  2. ...
  3. $agent_zbx_templates = ['OS Linux']
  4. ...
  5. include profile::zabbix::agent
  6. }
  7.  
  8. classes:
  9. - profile::haproxy
  10.  
  11. class profile::haproxy {
  12. $local_agent_zbx_templates = $profile::base::agent_zbx_templates + ['APP HAProxy']
  13. class {'profile::base':
  14. agent_zbx_templates => $local_agent_zbx_templates
  15. }
  16. }
  17.  
  18. [root@stress1 ~]# puppet agent -t
  19. Info: Using configured environment 'production'
  20. Info: Retrieving pluginfacts
  21. Info: Retrieving plugin
  22. Info: Loading facts
  23. Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Profile::Base] is already declared; cannot redeclare at /etc/puppetlabs/code/environments/production/modules/profile/manifests/haproxy.pp:48 at /etc/puppetlabs/code/environments/production/modules/profile/manifests/haproxy.pp:48:3 on node stress1.lb.dc2
  24. Warning: Not using cache on failed catalog
  25. Error: Could not retrieve catalog; skipping run
  26.  
  27. :hierarchy:
  28. - "node/%{::fqdn}"
  29. - "environment/%{::environment}"
  30. - ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement