Skip to content

Instantly share code, notes, and snippets.

@big-samantha
Created July 19, 2016 20:54
Show Gist options
  • Save big-samantha/9efcae0a51f15148e3c1ad47ffc621bb to your computer and use it in GitHub Desktop.
Save big-samantha/9efcae0a51f15148e3c1ad47ffc621bb to your computer and use it in GitHub Desktop.
dbadmins.pp
class system::dbadmins {
require mysql::server
mysql_user { 'zack@localhost':
ensure => present,
max_queries_per_hour => 1200,
}
mysql_user { 'monica@localhost':
ensure => present,
max_queries_per_hour => 600,
}
mysql_user { 'ralph@localhost':
ensure => absent,
}
mysql_user { 'brad@localhost':
ensure => present,
max_queries_per_hour => 600,
}
mysql_user { 'luke@localhost':
ensure => present,
max_queries_per_hour => 600,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment