|
25 | 25 | } |
26 | 26 | } |
27 | 27 |
|
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", |
30 | 30 | destination => "/usr/local/src/apache-activemq-${version}-bin.tar.gz", |
31 | | - require => [User[$user],Group[$group]], |
| 31 | + require => [User[$user],Group[$group]], |
32 | 32 | } -> |
33 | | - exec { "activemq_untar": |
| 33 | + exec { 'activemq_untar': |
34 | 34 | command => "tar xf /usr/local/src/apache-activemq-${version}-bin.tar.gz && chown -R ${user}:${group} ${home}/apache-activemq-${version}", |
35 | 35 | cwd => $home, |
36 | 36 | creates => "${home}/apache-activemq-${activemq::version}", |
37 | | - path => ["/bin"], |
| 37 | + path => ['/bin'], |
38 | 38 | before => File["${home}/activemq"], |
39 | 39 | } |
40 | 40 |
|
41 | 41 | 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'], |
46 | 46 | } -> |
47 | | - file { "/etc/activemq": |
| 47 | + file { '/etc/activemq': |
48 | 48 | ensure => "${home}/activemq/conf", |
49 | 49 | require => File["${home}/activemq"], |
50 | 50 | } -> |
51 | | - file { "/var/log/activemq": |
| 51 | + file { '/var/log/activemq': |
52 | 52 | ensure => "${home}/activemq/data", |
53 | 53 | require => File["${home}/activemq"], |
54 | 54 | } -> |
55 | 55 | file { "${home}/activemq/bin/linux": |
56 | 56 | ensure => "${home}/activemq/bin/linux-x86-64", |
57 | 57 | require => File["${home}/activemq"], |
58 | 58 | } -> |
59 | | - file { "/var/run/activemq": |
| 59 | + file { '/var/run/activemq': |
60 | 60 | ensure => directory, |
61 | 61 | owner => $user, |
62 | 62 | group => $group, |
63 | | - mode => 755, |
| 63 | + mode => '0755', |
64 | 64 | } -> |
65 | | - file { "/etc/init.d/activemq": |
| 65 | + file { '/etc/init.d/activemq': |
66 | 66 | owner => root, |
67 | 67 | group => root, |
68 | | - mode => 755, |
69 | | - content => template("activemq/activemq-init.d.erb"), |
| 68 | + mode => '0755', |
| 69 | + content => template('activemq/activemq-init.d.erb'), |
70 | 70 | } |
71 | 71 |
|
72 | | - file { "wrapper.conf": |
| 72 | + file { 'wrapper.conf': |
73 | 73 | path => $activemq::wrapper, |
74 | 74 | owner => $user, |
75 | 75 | 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']], |
79 | 79 | notify => Service['activemq'], |
80 | 80 | } |
81 | 81 | } |
0 commit comments