Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix lint warnings

  • Loading branch information...
commit b670071d9fe9eeca7db3e167a9f26fc871336e27 1 parent 0e4de09
Erik Dalén dalen authored
4 manifests/init.pp
@@ -17,8 +17,8 @@
17 17 ) inherits mysql::params {
18 18
19 19 package { 'mysql_client':
20   - name => $package_name,
21   - ensure => $package_ensure,
  20 + ensure => $package_ensure,
  21 + name => $package_name,
22 22 }
23 23
24 24 }
2  manifests/params.pp
@@ -18,7 +18,7 @@
18 18 $ssl = false
19 19
20 20 case $::operatingsystem {
21   - "Ubuntu": {
  21 + 'Ubuntu': {
22 22 $service_provider = upstart
23 23 }
24 24 default: {
2  manifests/python.pp
@@ -19,8 +19,8 @@
19 19 ) inherits mysql::params {
20 20
21 21 package { 'python-mysqldb':
22   - name => $package_name,
23 22 ensure => $package_ensure,
  23 + name => $package_name,
24 24 }
25 25
26 26 }
2  manifests/ruby.pp
@@ -20,8 +20,8 @@
20 20 ) inherits mysql::params {
21 21
22 22 package{ 'ruby_mysql':
23   - name => $package_name,
24 23 ensure => $package_ensure,
  24 + name => $package_name,
25 25 provider => $package_provider,
26 26 }
27 27
4 manifests/server.pp
@@ -31,8 +31,8 @@
31 31 create_resources( 'class', $config_class )
32 32
33 33 package { 'mysql-server':
34   - name => $package_name,
35 34 ensure => $package_ensure,
  35 + name => $package_name,
36 36 }
37 37
38 38 if $enabled {
@@ -42,8 +42,8 @@
42 42 }
43 43
44 44 service { 'mysqld':
45   - name => $service_name,
46 45 ensure => $service_ensure,
  46 + name => $service_name,
47 47 enable => $enabled,
48 48 require => Package['mysql-server'],
49 49 provider => $service_provider,
3  manifests/server/config.pp
@@ -87,8 +87,7 @@
87 87 ) {
88 88 include mysql::config
89 89
90   - # XXX would be nicer to use the is_hash function from stdlib
91   - if inline_template('<%= settings.is_a?(Hash) ? "true" : "false" %>') == 'true' {
  90 + if is_hash($settings) {
92 91 $content = template('mysql/my.conf.cnf.erb')
93 92 } else {
94 93 $content = $settings
2  manifests/server/monitor.pp
@@ -7,8 +7,8 @@
7 7 Class['mysql::server'] -> Class['mysql::server::monitor']
8 8
9 9 database_user{ "${mysql_monitor_username}@${mysql_monitor_hostname}":
10   - password_hash => mysql_password($mysql_monitor_password),
11 10 ensure => present,
  11 + password_hash => mysql_password($mysql_monitor_password),
12 12 }
13 13
14 14 database_grant { "${mysql_monitor_username}@${mysql_monitor_hostname}":
2  tests/server/config.pp
@@ -2,7 +2,7 @@
2 2 settings => {
3 3 'mysqld' => {
4 4 'bind-address' => '0.0.0.0',
5   - 'read-only' => true,
  5 + 'read-only' => true,
6 6 },
7 7 'client' => {
8 8 'port' => '3306'

0 comments on commit b670071

Please sign in to comment.
Something went wrong with that request. Please try again.