Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix lint warnings

  • Loading branch information...
commit b670071d9fe9eeca7db3e167a9f26fc871336e27 1 parent 0e4de09
Erik Dalén dalen authored
4 manifests/init.pp
View
@@ -17,8 +17,8 @@
) inherits mysql::params {
package { 'mysql_client':
- name => $package_name,
- ensure => $package_ensure,
+ ensure => $package_ensure,
+ name => $package_name,
}
}
2  manifests/params.pp
View
@@ -18,7 +18,7 @@
$ssl = false
case $::operatingsystem {
- "Ubuntu": {
+ 'Ubuntu': {
$service_provider = upstart
}
default: {
2  manifests/python.pp
View
@@ -19,8 +19,8 @@
) inherits mysql::params {
package { 'python-mysqldb':
- name => $package_name,
ensure => $package_ensure,
+ name => $package_name,
}
}
2  manifests/ruby.pp
View
@@ -20,8 +20,8 @@
) inherits mysql::params {
package{ 'ruby_mysql':
- name => $package_name,
ensure => $package_ensure,
+ name => $package_name,
provider => $package_provider,
}
4 manifests/server.pp
View
@@ -31,8 +31,8 @@
create_resources( 'class', $config_class )
package { 'mysql-server':
- name => $package_name,
ensure => $package_ensure,
+ name => $package_name,
}
if $enabled {
@@ -42,8 +42,8 @@
}
service { 'mysqld':
- name => $service_name,
ensure => $service_ensure,
+ name => $service_name,
enable => $enabled,
require => Package['mysql-server'],
provider => $service_provider,
3  manifests/server/config.pp
View
@@ -87,8 +87,7 @@
) {
include mysql::config
- # XXX would be nicer to use the is_hash function from stdlib
- if inline_template('<%= settings.is_a?(Hash) ? "true" : "false" %>') == 'true' {
+ if is_hash($settings) {
$content = template('mysql/my.conf.cnf.erb')
} else {
$content = $settings
2  manifests/server/monitor.pp
View
@@ -7,8 +7,8 @@
Class['mysql::server'] -> Class['mysql::server::monitor']
database_user{ "${mysql_monitor_username}@${mysql_monitor_hostname}":
- password_hash => mysql_password($mysql_monitor_password),
ensure => present,
+ password_hash => mysql_password($mysql_monitor_password),
}
database_grant { "${mysql_monitor_username}@${mysql_monitor_hostname}":
2  tests/server/config.pp
View
@@ -2,7 +2,7 @@
settings => {
'mysqld' => {
'bind-address' => '0.0.0.0',
- 'read-only' => true,
+ 'read-only' => true,
},
'client' => {
'port' => '3306'
Please sign in to comment.
Something went wrong with that request. Please try again.