Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit d5cd756

Browse files
author
Matthias Baur
committed
Fix puppet-lint issues
1 parent 2ec39ec commit d5cd756

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
augeas { 'activemq-maxmemory':
6565
changes => [ "set wrapper.java.maxmemory ${max_memory}" ],
6666
incl => $wrapper,
67-
lens => "Properties.lns",
67+
lens => 'Properties.lns',
6868
require => Anchor['activemq::package::end'],
6969
notify => Service['activemq'],
7070
}

manifests/package/tarball.pp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,57 +25,57 @@
2525
}
2626
}
2727

28-
wget::fetch { "activemq_download":
29-
source => "${activemq::apache_mirror}/activemq/apache-activemq/${version}/apache-activemq-${version}-bin.tar.gz",
28+
wget::fetch { 'activemq_download':
29+
source => "${activemq::apache_mirror}/activemq/apache-activemq/${version}/apache-activemq-${version}-bin.tar.gz",
3030
destination => "/usr/local/src/apache-activemq-${version}-bin.tar.gz",
31-
require => [User[$user],Group[$group]],
31+
require => [User[$user],Group[$group]],
3232
} ->
33-
exec { "activemq_untar":
33+
exec { 'activemq_untar':
3434
command => "tar xf /usr/local/src/apache-activemq-${version}-bin.tar.gz && chown -R ${user}:${group} ${home}/apache-activemq-${version}",
3535
cwd => $home,
3636
creates => "${home}/apache-activemq-${activemq::version}",
37-
path => ["/bin"],
37+
path => ['/bin'],
3838
before => File["${home}/activemq"],
3939
}
4040

4141
file { "${home}/activemq":
42-
owner => $user,
43-
group => $group,
44-
ensure => "$home/apache-activemq-$version",
45-
require => Exec["activemq_untar"],
42+
ensure => "${home}/apache-activemq-${version}",
43+
owner => $user,
44+
group => $group,
45+
require => Exec['activemq_untar'],
4646
} ->
47-
file { "/etc/activemq":
47+
file { '/etc/activemq':
4848
ensure => "${home}/activemq/conf",
4949
require => File["${home}/activemq"],
5050
} ->
51-
file { "/var/log/activemq":
51+
file { '/var/log/activemq':
5252
ensure => "${home}/activemq/data",
5353
require => File["${home}/activemq"],
5454
} ->
5555
file { "${home}/activemq/bin/linux":
5656
ensure => "${home}/activemq/bin/linux-x86-64",
5757
require => File["${home}/activemq"],
5858
} ->
59-
file { "/var/run/activemq":
59+
file { '/var/run/activemq':
6060
ensure => directory,
6161
owner => $user,
6262
group => $group,
63-
mode => 755,
63+
mode => '0755',
6464
} ->
65-
file { "/etc/init.d/activemq":
65+
file { '/etc/init.d/activemq':
6666
owner => root,
6767
group => root,
68-
mode => 755,
69-
content => template("activemq/activemq-init.d.erb"),
68+
mode => '0755',
69+
content => template('activemq/activemq-init.d.erb'),
7070
}
7171

72-
file { "wrapper.conf":
72+
file { 'wrapper.conf':
7373
path => $activemq::wrapper,
7474
owner => $user,
7575
group => $group,
76-
mode => 644,
77-
content => template("activemq/wrapper.conf.erb"),
78-
require => [File["${home}/activemq"],File["/etc/init.d/activemq"]],
76+
mode => '0644',
77+
content => template('activemq/wrapper.conf.erb'),
78+
require => [File["${home}/activemq"],File['/etc/init.d/activemq']],
7979
notify => Service['activemq'],
8080
}
8181
}

manifests/params.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
) {
1111

1212
# path flag for the activemq init script template
13-
case $architecture {
13+
case $::architecture {
1414
'x86_64','amd64': {
1515
$architecture_flag = '64'
1616
}
1717
'i386': {
1818
$architecture_flag = '32'
1919
}
20-
default: { fail("Unsupported architecture ${architecture}") }
20+
default: { fail("Unsupported architecture ${::architecture}") }
2121
}
2222
}

manifests/service.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
) inherits activemq::params {
33

44
service { 'activemq':
5-
name => 'activemq',
65
ensure => running,
6+
name => 'activemq',
77
hasrestart => true,
88
hasstatus => false,
99
enable => true,

0 commit comments

Comments
 (0)