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

(MODULES-3355) Fix Role Name Collisions #167

Merged
merged 1 commit into from May 16, 2016
Merged

(MODULES-3355) Fix Role Name Collisions #167

merged 1 commit into from May 16, 2016

Conversation

jpogran
Copy link
Contributor

@jpogran jpogran commented May 11, 2016

If sqlserver::role is specified more than one for the same role
non-unique titles will be generated for the sqlserver_tsql that
will handle the operations. This is likely to happen if setting
up heira configs like this:

'sqlserver::role':
‘User_1’:
role: db_owner
database: FooBar
instance: MSSQLSERVER
members:
- ‘User_1’
type: 'DATABASE'
‘User_2’:
role: db_owner
database: Wakka
instance: MSSQLSERVER
members:
- ‘User_2’
type: 'DATABASE'

@jpogran jpogran changed the title Ticket/master/modules 3355 fix role name collisions (WIP)(MODULES-3355) Fix Role Name Collisions May 11, 2016
If sqlserver::role is specified more than one for the same role
non-unique titles will be generated for the sqlserver_tsql that
will handle the operations. This is likely to happen if setting
up heira configs like this:

'sqlserver::role':
  ‘User_1’:
    role: db_owner
    database: FooBar
    instance: MSSQLSERVER
    members:
      - ‘User_1’
    type: 'DATABASE'
  ‘User_2’:
    role: db_owner
    database: Wakka
    instance: MSSQLSERVER
    members:
      - ‘User_2’
    type: 'DATABASE'

This fix introduces the database name into the title created for
the sqlserver_tsql statements so that it is unique.
@jpogran jpogran changed the title (WIP)(MODULES-3355) Fix Role Name Collisions (MODULES-3355) Fix Role Name Collisions May 12, 2016
@ferventcoder
Copy link
Contributor

👍

@ferventcoder ferventcoder merged commit 2f18a68 into puppetlabs:master May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants