Skip to content

(docs) MODULES-2325 update readme to reflect permissions #128

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

Merged
merged 1 commit into from
Aug 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* [Create a new database](#create-a-new-database-on-an-instance-of-sql-server)
* [Set up a new login](#set-up-a-new-login)
* [Create a new login and a user](#create-a-new-login-and-a-user-for-a-given-database)
* [Manage the user's permission](#manage-the-above-users-permission)
* [Manage the user's permissions](#manage-the-above-users-permissions)
* [Run custom TSQL statements](#run-custom-tsql-statements)
5. [Reference - An under-the-hood peek at what the module is doing and how](#reference)
6. [Limitations - OS compatibility, etc.](#limitations)
Expand Down Expand Up @@ -110,20 +110,20 @@ sqlserver::user{'rp_logging-loggingUser':
}
~~~

###Manage the above user's permission
###Manage the above user's permissions

~~~puppet
sqlserver::user::permission{'INSERT-loggingUser-On-rp_logging':
sqlserver::user::permissions{'INSERT-loggingUser-On-rp_logging':
user => 'loggingUser',
database => 'rp_logging',
permission => 'INSERT',
permissions => 'INSERT',
require => Sqlserver::User['rp_logging-loggingUser'],
}

sqlserver::user::permission{'Deny the Update as we should only insert':
sqlserver::user::permissions{'Deny the Update as we should only insert':
user => 'loggingUser',
database => 'rp_logging',
permission => 'UPDATE',
permissions => 'UPDATE',
state => 'DENY',
require => Sqlserver::User['rp_logging-loggingUser'],
}
Expand Down Expand Up @@ -363,15 +363,15 @@ Requires the `sqlserver::config` define.
* [Create Login](http://technet.microsoft.com/en-us/library/ms189751.aspx)
* [Alter Login](http://technet.microsoft.com/en-us/library/ms189828.aspx)

#### `sqlserver::login::permission`
#### `sqlserver::login::permissions`

Configures the permissions associated with a given login account.

* `instance`: *Optional.* Specifies a SQL Server instance on which to manage the permissions. Valid options: a string containing the name of an existing instance. Default: 'MSSQLSERVER'.

* `login`: *Required.* Specifies a SQL or Windows login to manage. Valid options: a string containing an existing login.

* `permission`: *Required.* Specifies one or more permissions to manage. Valid options: a string or an array of strings, where each string contains a [SQL Server permission](https://technet.microsoft.com/en-us/library/ms191291%28v=sql.105%29.aspx) (e.g., 'SELECT', 'INSERT', 'UPDATE', or 'DELETE').
* `permissions`: *Required.* Specifies one or more permissions to manage. Valid options: a string or an array of strings, where each string contains a [SQL Server permissions](https://technet.microsoft.com/en-us/library/ms191291%28v=sql.105%29.aspx) (e.g., 'SELECT', 'INSERT', 'UPDATE', or 'DELETE').

* `state`: *Optional.* Determines the state of the specified permissions. Valid options: 'GRANT', 'DENY', and 'REVOKE'. If set to 'REVOKE', Puppet removes any explicit statements of these permissions and falls back on inherited levels. Default: 'GRANT'.

Expand All @@ -397,7 +397,7 @@ Requires the `sqlserver::config` define for access to the parent instance.

* `user`: *Required.* Specifies a user to manage. Valid options: a string containing a username. Default: the title of your declared resource.

#### `sqlserver::user::permission`
#### `sqlserver::user::permissions`

Configures the permissions associated with a user account within a given database.

Expand Down Expand Up @@ -517,4 +517,4 @@ This module was built by Puppet Labs specifically for use with Puppet Enterprise

If you run into an issue with this module, or if you would like to request a feature, please [file a ticket](https://tickets.puppetlabs.com/browse/MODULES/).

If you are having problems getting this module up and running, please [contact Support](http://puppetlabs.com/services/customer-support).
If you are having problems getting this module up and running, please [contact Support](http://puppetlabs.com/services/customer-support).