Skip to content

Commit a7bd419

Browse files
authored
Merge pull request #327 from voxpupuli/modulesync
modulesync 3.0.0
2 parents 34c98f2 + 3449594 commit a7bd419

24 files changed

Lines changed: 30 additions & 255 deletions

.github/CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ By participating in this project you agree to abide by its terms.
3333

3434
Please be prepared to repeat some of these steps as our contributors review your code.
3535

36+
Also consider sending in your profile code that calls this component module as an acceptance test or provide it via an issue. This helps reviewers a lot to test your use case and prevents future regressions!
37+
3638
## Writing proper commits - short version
3739

3840
* Make commits of logical units.

.msync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
modulesync_config_version: '2.12.0'
1+
modulesync_config_version: '3.0.0'

.rubocop.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Style/Attr:
152152
Enabled: True
153153

154154
Style/BracesAroundHashParameters:
155-
Enabled: True
155+
Enabled: False
156156

157157
Style/CaseEquality:
158158
Enabled: True
@@ -528,6 +528,9 @@ RSpec/RepeatedDescription:
528528
RSpec/NestedGroups:
529529
Enabled: False
530530

531+
RSpec/MultipleExpectations:
532+
Enabled: false
533+
531534
# this is broken on ruby1.9
532535
Layout/IndentHeredoc:
533536
Enabled: False

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ def location_for(place, fake_version = nil)
1111
end
1212

1313
group :test do
14-
gem 'voxpupuli-test', '>= 1.4.0', :require => false
15-
gem 'coveralls', :require => false
16-
gem 'simplecov-console', :require => false
14+
gem 'voxpupuli-test', '~> 2.0', :require => false
15+
gem 'coveralls', :require => false
16+
gem 'simplecov-console', :require => false
1717
end
1818

1919
group :development do

examples/jira_mysql_install.pp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node default {
2-
32
class { 'mysql::server':
43
root_password => 'strongpassword',
54
}
@@ -20,5 +19,4 @@
2019
}
2120

2221
include jira::facts
23-
2422
}

examples/jira_mysql_nativessl_install.pp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node default {
2-
32
$cert = hiera('cert')
43
$key = hiera('key')
54

@@ -57,5 +56,4 @@
5756
}
5857

5958
include jira::facts
60-
6159
}

examples/jira_postgres_install.pp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node default {
2-
32
class { 'postgresql::globals':
43
manage_package_repo => true,
54
version => '9.3',
@@ -17,5 +16,4 @@
1716
}
1817

1918
include jira::facts
20-
2119
}

examples/jira_postgres_nginx_install.pp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node default {
2-
32
class { 'nginx': }
43

54
-> class { 'postgresql::globals':
@@ -27,12 +26,12 @@
2726

2827
nginx::resource::upstream { 'jira':
2928
ensure => present,
30-
members => [ 'localhost:8080' ],
29+
members => ['localhost:8080'],
3130
}
3231

3332
nginx::resource::vhost { 'jira_vhost':
3433
ensure => present,
35-
server_name => [ $facts['networking']['ip'], $facts['networking']['fqdn'], $facts['networking']['hostname'] ],
34+
server_name => [$facts['networking']['ip'], $facts['networking']['fqdn'], $facts['networking']['hostname']],
3635
listen_port => '80',
3736
proxy => 'http://jira',
3837
proxy_read_timeout => '300',
@@ -44,5 +43,4 @@
4443
'proxy_redirect' => 'off',
4544
},
4645
}
47-
4846
}

examples/jira_postgres_nginx_ssl_install.pp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node default {
2-
32
class { 'nginx': }
43

54
-> class { 'postgresql::globals':
@@ -27,12 +26,12 @@
2726

2827
nginx::resource::upstream { 'jira':
2928
ensure => present,
30-
members => [ 'localhost:8080' ],
29+
members => ['localhost:8080'],
3130
}
3231

3332
nginx::resource::vhost { 'jira_vhost':
3433
ensure => present,
35-
server_name => [ $facts['networking']['ip'], $facts['networking']['fqdn'], $facts['networking']['hostname'] ],
34+
server_name => [$facts['networking']['ip'], $facts['networking']['fqdn'], $facts['networking']['hostname']],
3635
proxy => 'http://jira',
3736
proxy_read_timeout => '300',
3837
rewrite_to_https => true,
@@ -47,5 +46,4 @@
4746
'proxy_redirect' => 'off',
4847
},
4948
}
50-
5149
}

manifests/config.pp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515
# -----------------------------------------------------------------------------
1616
class jira::config inherits jira {
17-
1817
File {
1918
owner => $jira::user,
2019
group => $jira::group,
@@ -59,7 +58,7 @@
5958
-> file { "${jira::homedir}/dbconfig.xml":
6059
content => template("jira/dbconfig.${jira::db}.xml.erb"),
6160
mode => '0600',
62-
require => [ Class['jira::install'],File[$jira::homedir] ],
61+
require => [Class['jira::install'],File[$jira::homedir]],
6362
notify => Class['jira::service'],
6463
}
6564

@@ -91,17 +90,16 @@
9190
file { "${jira::homedir}/jira-config.properties":
9291
content => template('jira/jira-config.properties.erb'),
9392
mode => '0600',
94-
require => [ Class['jira::install'],File[$jira::homedir] ],
93+
require => [Class['jira::install'],File[$jira::homedir]],
9594
notify => Class['jira::service'],
9695
}
9796

9897
if $jira::datacenter {
9998
file { "${jira::homedir}/cluster.properties":
10099
content => template('jira/cluster.properties.erb'),
101100
mode => '0600',
102-
require => [ Class['jira::install'],File[$jira::homedir] ],
101+
require => [Class['jira::install'],File[$jira::homedir]],
103102
notify => Class['jira::service'],
104103
}
105104
}
106-
107105
}

0 commit comments

Comments
 (0)