Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't remove xa datasource and add datasource with the same name #98

Open
itewk opened this issue Jan 4, 2016 · 3 comments
Open

Can't remove xa datasource and add datasource with the same name #98

itewk opened this issue Jan 4, 2016 · 3 comments
Assignees
Labels

Comments

@itewk
Copy link
Contributor

itewk commented Jan 4, 2016

Currently if you try to remove a datasource of xa type and then add a datasource with the same name of not xa type in the same puppet run then Puppet complains about a duplicate jboss_resource.

    # remove none xa datasource of same name
    jboss_admin::resource::data_source { /subsystem=datasources/data-source=DSPOOL:
      ensure => absent,
      server => standalone,
    }   
    ->  
    # create xa datasource
    jboss_admin::resource::xa_data_source { /subsystem=datasources/data-source=DSPOOL:
      ensure                              => present,
      server                              => standalone,
   }
Error: Duplicate declaration: Jboss_resource[/subsystem=datasources/data-source=DSPOOL] is already declared in file /root/modules/jboss_admin/manifests/resource/xa_data_source.pp:406; cannot redeclare at /root/modules/jboss_admin/manifests/resource/data_source.pp:342
@itewk itewk added the bug label Jan 4, 2016
@itewk itewk self-assigned this Jan 4, 2016
@itewk
Copy link
Contributor Author

itewk commented Jan 4, 2016

I think this can only be addressed by fixing #87

@itewk
Copy link
Contributor Author

itewk commented Jul 11, 2016

2016-07-11 16:46:54 - Error: Cannot alias Jboss_resource[Add XA Data Source: /subsystem=datasources/xa-data-source=DSPOOL] to ["/subsystem=datasources/xa-data-source=DSPOOL"] at /root/modules/jboss_admin/manifests/resource/xa_data_source.pp:397; resource ["Jboss_resource", "/subsystem=datasources/xa-data-source=DSPOOL"] already declared at /root/modules/jboss_admin/manifests/resource/data_source.pp:349

@itewk
Copy link
Contributor Author

itewk commented Aug 19, 2016

this maybe inpossible due the aliasing required for the auto dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant