Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit e8bec53

Browse files
author
Zach Leslie
committed
Merge pull request #97 from danieldreier/lintfix
trivial puppet-lint fixes
2 parents ba60f7a + 8241a94 commit e8bec53

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
At an absolute minimum, you need the following.
1111

1212
``` Puppet
13-
class { "puppet::server":
13+
class { 'puppet::server':
1414
servertype => 'standalone',
1515
manifest => '/etc/puppet/manifests/site.pp',
1616
ca => true,
@@ -26,13 +26,13 @@ something that scales a bit more.
2626
``` Puppet
2727
class service::puppet::master($servertype, $ca = false) {
2828
29-
class { "::puppet::server":
29+
class { '::puppet::server':
3030
modulepath => [
3131
'$confdir/modules/site',
3232
'$confdir/env/$environment/dist',
3333
],
34-
storeconfigs => "puppetdb",
35-
reporturl => "https://my.puppet.dashboard/reports",
34+
storeconfigs => 'puppetdb',
35+
reporturl => 'https://my.puppet.dashboard/reports',
3636
servertype => 'unicorn',
3737
manifest => '$confdir/environments/$environment/site.pp',
3838
ca => $ca,

manifests/dashboard.pp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
$db_host = 'localhost',
2626
$db_name = 'puppet_dashboard',
2727
$manage_db = true,
28-
$site = "dashboard.${domain}",
28+
$site = "dashboard.${::domain}",
2929
$allowip = ''
3030
) {
3131

3232
include ruby::dev
3333

34-
$allow_all_ips = "${allowip},${ipaddress}"
34+
$allow_all_ips = "${allowip},${::ipaddress}"
3535
$approot = '/usr/share/puppet-dashboard'
3636
$dashboard_site = $site
3737

@@ -64,7 +64,7 @@
6464

6565
if $manage_db {
6666
# FIXME THIS IS NOT COMPATIBLE WITH THE NEW MYSQL MODULE
67-
mysql::db { "dashboard_production":
67+
mysql::db { 'dashboard_production':
6868
db_user => $db_user,
6969
db_pw => $db_pw;
7070
}
@@ -97,9 +97,9 @@
9797
"${approot}/public/stylesheets",
9898
"${approot}/public/javascript"
9999
]:
100-
mode => 0755,
101-
owner => 'www-data',
102-
group => 'www-data',
100+
mode => '0755',
101+
owner => 'www-data',
102+
group => 'www-data',
103103
require => Package['puppet-dashboard'],
104104
}
105105
}

manifests/reports.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
class puppet::reports {
2-
$report_dir = $puppet_major_version ? {
2+
$report_dir = $::puppet_major_version ? {
33
'3' => '/usr/lib/ruby/vendor_ruby/puppet/reports',
44
'2' => '/usr/lib/ruby/1.8/puppet/reports',
55
}

0 commit comments

Comments
 (0)