Skip to content

Commit

Permalink
Merge pull request #66 from bastelfreak/linter
Browse files Browse the repository at this point in the history
purge legacy puppet-lint checks
  • Loading branch information
bastelfreak committed Feb 28, 2018
2 parents 20a465b + c1746d2 commit e9a6b2f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ group :development, :unit_tests do
gem 'puppet-lint-unquoted_string-check', :require => false
gem 'puppet-lint-empty_string-check', :require => false
gem 'puppet-lint-spaceship_operator_without_tag-check', :require => false
gem 'puppet-lint-absolute_classname-check', :require => false
gem 'puppet-lint-undef_in_function-check', :require => false
gem 'puppet-lint-leading_zero-check', :require => false
gem 'puppet-lint-trailing_comma-check', :require => false
Expand Down
2 changes: 1 addition & 1 deletion manifests/dropin_file.pp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
Optional[String] $source = undef,
Optional[Stdlib::Absolutepath] $target = undef,
) {
include ::systemd
include systemd

if $target {
$_ensure = 'link'
Expand Down
8 changes: 4 additions & 4 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@
Optional[Variant[Array,String]] $fallback_ntp_server = undef,
){

contain ::systemd::systemctl::daemon_reload
contain systemd::systemctl::daemon_reload

create_resources('systemd::service_limits', $service_limits)

if $manage_resolved and $facts['systemd_internal_services'] and $facts['systemd_internal_services']['systemd-resolved.service'] {
contain ::systemd::resolved
contain systemd::resolved
}

if $manage_networkd and $facts['systemd_internal_services'] and $facts['systemd_internal_services']['systemd-networkd.service'] {
contain ::systemd::networkd
contain systemd::networkd
}

if $manage_timesyncd and $facts['systemd_internal_services'] and $facts['systemd_internal_services']['systemd-timesyncd.service'] {
contain ::systemd::timesyncd
contain systemd::timesyncd
}
}
2 changes: 1 addition & 1 deletion manifests/network.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Boolean $restart_service = true,
){

include ::systemd
include systemd

if $restart_service and $systemd::manage_networkd {
$notify = Service['systemd-networkd']
Expand Down
2 changes: 1 addition & 1 deletion manifests/service_limits.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Boolean $restart_service = true
) {

include ::systemd
include systemd

if $name !~ Pattern['^.+\.(service|socket|mount|swap)$'] {
fail('$name must match Pattern["^.+\.(service|socket|mount|swap)$"]')
Expand Down
2 changes: 1 addition & 1 deletion manifests/tmpfile.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
Optional[String] $content = undef,
Optional[String] $source = undef,
) {
include ::systemd::tmpfiles
include systemd::tmpfiles

if $name =~ Pattern['/'] {
fail('$name may not contain a forward slash "(/)"')
Expand Down
2 changes: 1 addition & 1 deletion manifests/unit_file.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Optional[String] $source = undef,
Optional[Stdlib::Absolutepath] $target = undef,
) {
include ::systemd
include systemd

assert_type(Systemd::Unit, $name)

Expand Down

0 comments on commit e9a6b2f

Please sign in to comment.