xebialabs-community / puppet-xldeploy

Puppet module for managing XL Deploy
5 stars 10 forks source link

Duplicate declaration: Xldeploy_check_connection #111

Closed ltutar closed 8 years ago

ltutar commented 8 years ago

When I have the two classes in my node definition xldeploy::client xldeploy::server in order to install xldeploy server and register a target host through yaml in xldeploy registry, I get the following error.

[root@xxragent ~]# puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Xldeploy_check_connection[default] is already declared in file /etc/puppetlabs/code/environments/production/modules/xldeploy/manifests/client/config.pp:32; cannot redeclare at /etc/puppetlabs/code/environments/production/modules/xldeploy/manifests/server/post_config.pp:25 at /etc/puppetlabs/code/environments/production/modules/xldeploy/manifests/server/post_config.pp:25:3 on node xxragent.home
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
[root@xxragent ~]# 

The yaml file:

xldeploy::client::http_server_address: '192.168.234.43'
xldeploy::client::http_port: '4516'
xldeploy::client::http_context_root: '/deployit'
xldeploy::client::rest_user: 'admin'
xldeploy::client::rest_password: 'xebia1'
xldeploy::client::ssl: 'false'

xldeploy::client::cis:
  'Infrastructure/test/wildfly_host':
    'ensure': present
    'type': 'overthere.SshHost'
    'properties':
      'os': 'UNIX'
      'connectionType': 'SUDO'
      'address': '192.168.234.93'
      'port': '22'
      'username': 'vagrant'
      'password': 'vagrant'
      'sudoUsername': 'root'
      'suUsername': 'root'
  'Infrastructure/test/wildfly_host/jboss_server':
    'ensure': present
    'type': 'jbossdm.StandaloneServer'
    'properties':
      'home': '/usr/lib/wildfly-8.2.1.Final'
      'port': '9990'
      'enableDaemon': 'true'
      'commandExecutionMode': 'CLI_COMMANDS'
      'adminHostAddress': 'localhost'
      'username': 'levent'
      'password': 'Amsterdam1!'
      'cliScriptPrefix': 'jboss-cli'
  'Environments/test/test_env':
    'ensure': present
    'type': 'udm.Environment'

xldeploy::client::memberships:
  'test_env':
    'env': 'Environments/test/test_env'
    'members': ['Infrastructure/test/wildfly_host/jboss_server']
    'dictionaries': []