Skip to content

Commit 8ce4391

Browse files
authored
Merge pull request #556 from voxpupuli/modulesync
modulesync 3.0.0 & puppet-lint updates
2 parents 76a971b + 47f5611 commit 8ce4391

18 files changed

Lines changed: 43 additions & 44 deletions

.github/SECURITY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Vox Pupuli Security Policy
2+
3+
Our vulnerabilities reporting process is at https://voxpupuli.org/security/

.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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
os: linux
23
dist: bionic
34
language: ruby
45
cache: bundler
@@ -7,7 +8,7 @@ before_install:
78
- bundle --version
89
script:
910
- 'bundle exec rake $CHECK'
10-
matrix:
11+
jobs:
1112
fast_finish: true
1213
include:
1314
- rvm: 2.4.4
@@ -76,7 +77,7 @@ notifications:
7677
- "chat.freenode.org#voxpupuli-notifications"
7778
deploy:
7879
provider: puppetforge
79-
user: puppet
80+
username: puppet
8081
password:
8182
secure: "bBDDSSz8OQwK0zxJ4EjM01bE4uoNMzTXyxp2lllXdv6PYAJCI4bCCcdRF7OKLAWaRtm6c0HJGnfMXzmwqHF/pJSUZzfTGe4uwZrrmaGvdalP4fXtLWpviAoez8La0Nx7JYqwPPprP7nySBD8M3rUuOZJetXQM6yGgj4YSs2lKMo="
8283
on:

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.0.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

manifests/config.pp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# include python::config
66
#
77
class python::config {
8-
98
Class['python::install'] -> Python::Pip <| |>
109
Class['python::install'] -> Python::Requirements <| |>
1110
Class['python::install'] -> Python::Virtualenv <| |>
@@ -27,5 +26,4 @@
2726
}
2827
}
2928
}
30-
3129
}

manifests/dotfile.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
exec { "create ${title}'s parent dir":
3636
command => "install -o ${owner} -g ${group} -d ${parent_dir}",
37-
path => [ '/usr/bin', '/bin', '/usr/local/bin', ],
37+
path => ['/usr/bin', '/bin', '/usr/local/bin',],
3838
creates => $parent_dir,
3939
}
4040

manifests/gunicorn.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,4 @@
7979
content => template($template),
8080
}
8181
}
82-
8382
}

manifests/init.pp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,32 +49,31 @@
4949
$gunicorn_package_name = $python::params::gunicorn_package_name,
5050
Optional[Enum['pip', 'scl', 'rhscl', 'anaconda', '']] $provider = $python::params::provider,
5151
$valid_versions = $python::params::valid_versions,
52-
Hash $python_pips = { },
53-
Hash $python_virtualenvs = { },
54-
Hash $python_pyvenvs = { },
55-
Hash $python_requirements = { },
56-
Hash $python_dotfiles = { },
52+
Hash $python_pips = {},
53+
Hash $python_virtualenvs = {},
54+
Hash $python_pyvenvs = {},
55+
Hash $python_requirements = {},
56+
Hash $python_dotfiles = {},
5757
Boolean $use_epel = $python::params::use_epel,
5858
$rhscl_use_public_repository = $python::params::rhscl_use_public_repository,
5959
Stdlib::Httpurl $anaconda_installer_url = $python::params::anaconda_installer_url,
6060
Stdlib::Absolutepath $anaconda_install_path = $python::params::anaconda_install_path,
6161
Boolean $manage_scl = $python::params::manage_scl,
6262
Optional[Pattern[/[0-7]{1,4}/]] $umask = undef,
6363
) inherits python::params {
64-
6564
$exec_prefix = $provider ? {
6665
'scl' => "/usr/bin/scl enable ${version} -- ",
6766
'rhscl' => "/usr/bin/scl enable ${version} -- ",
6867
default => '',
6968
}
7069

7170
unless $version =~ Pattern[/\A(python)?[0-9](\.?[0-9])*/,
72-
/\Apypy\Z/, /\Asystem\Z/, /\Arh-python[0-9]{2}(?:-python)?\Z/] {
71+
/\Apypy\Z/, /\Asystem\Z/, /\Arh-python[0-9]{2}(?:-python)?\Z/] {
7372
fail("version needs to be pypy, system or a version string like '36', '3.6' or 'python3.6' )")
7473
}
7574

7675
# Module compatibility check
77-
$compatible = [ 'Debian', 'RedHat', 'Suse', 'Gentoo', 'AIX' ]
76+
$compatible = ['Debian', 'RedHat', 'Suse', 'Gentoo', 'AIX']
7877
if ! ($facts['os']['family'] in $compatible) {
7978
fail("Module is not compatible with ${facts['os']['name']}")
8079
}
@@ -96,5 +95,4 @@
9695
create_resources('python::virtualenv', $python_virtualenvs)
9796
create_resources('python::requirements', $python_requirements)
9897
create_resources('python::dotfile', $python_dotfiles)
99-
10098
}

manifests/install.pp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
# include python::install
66
#
77
class python::install {
8-
98
$python = $python::version ? {
109
'system' => 'python',
1110
'pypy' => 'pypy',
@@ -67,7 +66,6 @@
6766

6867
case $python::provider {
6968
'pip': {
70-
7169
if $python::manage_pip_package {
7270
package { 'pip':
7371
ensure => $pip_ensure,
@@ -208,7 +206,7 @@
208206
'AIX': {
209207
if String($python::version) =~ /^python3/ {
210208
class { 'python::pip::bootstrap':
211-
version => 'pip3',
209+
version => 'pip3',
212210
}
213211
} else {
214212
if $python::manage_pip_package {
@@ -227,7 +225,6 @@
227225
provider => 'yum',
228226
}
229227
}
230-
231228
}
232229
default: {
233230
if $python::manage_pip_package {
@@ -243,7 +240,6 @@
243240
alias => $pythondev,
244241
}
245242
}
246-
247243
}
248244
}
249245

0 commit comments

Comments
 (0)