Skip to content

Commit c66298d

Browse files
ekohlehelms
authored andcommitted
puppet-lint autofix with voxpupuli-test 5
1 parent b7b5f1d commit c66298d

File tree

17 files changed

+18
-28
lines changed

17 files changed

+18
-28
lines changed

manifests/config.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# @summary Configure the foreman proxy
22
# @api private
33
class foreman_proxy::config {
4-
54
# Ensure SSL certs from the puppetmaster are available
65
# Relationship is duplicated there as defined() is parse-order dependent
76
if $foreman_proxy::ssl and defined(Class['puppet::server::config']) {
@@ -110,7 +109,7 @@
110109

111110
if $foreman_proxy::use_sudoersd {
112111
if $uses_sudo and $foreman_proxy::manage_sudoersd {
113-
ensure_resource('file', "${foreman_proxy::sudoers}.d", {'ensure' => 'directory'})
112+
ensure_resource('file', "${foreman_proxy::sudoers}.d", { 'ensure' => 'directory' })
114113
}
115114

116115
file { "${foreman_proxy::sudoers}.d/foreman-proxy":

manifests/install.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# @summary Install the foreman proxy
22
# @api private
33
class foreman_proxy::install {
4-
package {'foreman-proxy':
4+
package { 'foreman-proxy':
55
ensure => $foreman_proxy::version,
66
}
77

manifests/plugin.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# @param package
77
# The package to install. Underscores are replaced with dashes on Debian
88
#
9-
define foreman_proxy::plugin(
9+
define foreman_proxy::plugin (
1010
$version = $foreman_proxy::params::plugin_version,
1111
$package = "${foreman_proxy::params::plugin_prefix}${title}",
1212
) {

manifests/plugin/ansible.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
$foreman_ssl_ca = pick($foreman_proxy::foreman_ssl_ca, $foreman_proxy::ssl_ca)
6363
$proxy_url = $foreman_proxy::real_registered_proxy_url
6464

65-
file {"${foreman_proxy::config_dir}/ansible.cfg":
65+
file { "${foreman_proxy::config_dir}/ansible.cfg":
6666
ensure => file,
6767
content => template('foreman_proxy/plugin/ansible.cfg.erb'),
6868
owner => 'root',

manifests/plugin/ansible/runner.pp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
#
55
# $package_name:: Name of the package to install to provide 'ansible-runner' command
66
#
7-
class foreman_proxy::plugin::ansible::runner(
7+
class foreman_proxy::plugin::ansible::runner (
88
Boolean $manage_runner_repo = $foreman_proxy::plugin::ansible::manage_runner_repo,
99
String $package_name = $foreman_proxy::plugin::ansible::runner_package_name,
1010
) {
11-
1211
if $manage_runner_repo {
1312
case $facts['os']['family'] {
1413
'Debian': {
@@ -36,5 +35,4 @@
3635
package { $package_name:
3736
ensure => 'installed',
3837
}
39-
4038
}

manifests/plugin/discovery.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
Stdlib::HTTPUrl $source_url = $foreman_proxy::plugin::discovery::params::source_url,
2121
String $image_name = $foreman_proxy::plugin::discovery::params::image_name,
2222
) inherits foreman_proxy::plugin::discovery::params {
23-
foreman_proxy::plugin {'discovery':
23+
foreman_proxy::plugin { 'discovery':
2424
}
2525

2626
foreman_proxy::feature { 'Discovery': }
2727

2828
if $install_images {
2929
$tftp_root_clean = regsubst($tftp_root, '/$', '')
3030

31-
foreman_proxy::remote_file {"${tftp_root_clean}/boot/${image_name}":
31+
foreman_proxy::remote_file { "${tftp_root_clean}/boot/${image_name}":
3232
remote_location => "${source_url}${image_name}",
3333
mode => '0644',
3434
} ~> exec { "untar ${image_name}":

manifests/plugin/pulp.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
Array[String[1], 1] $client_authentication = ['client_certificate'],
3333
Stdlib::HTTPUrl $rhsm_url = $foreman_proxy::plugin::pulp::params::rhsm_url,
3434
) inherits foreman_proxy::plugin::pulp::params {
35-
36-
foreman_proxy::plugin {'pulp':
35+
foreman_proxy::plugin { 'pulp':
3736
version => $version,
3837
}
3938
-> [

manifests/plugin/remote_execution/script.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,4 @@
7979
}
8080

8181
Class['foreman_proxy::config'] ~> Class['foreman_proxy::plugin::remote_execution::mosquitto']
82-
8382
}

manifests/plugin/remote_execution/ssh_user.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
Enum['sudo', 'su'] $effective_user_method = $foreman_proxy::plugin::remote_execution::ssh_user::params::effective_user_method,
1717
Array[String[1]] $ssh_keys = $foreman_proxy::plugin::remote_execution::ssh_user::params::ssh_keys,
1818
) inherits foreman_proxy::plugin::remote_execution::ssh_user::params {
19-
2019
# Manage the user
21-
if $manage_user and $ssh_user != 'root'{
20+
if $manage_user and $ssh_user != 'root' {
2221
user { $ssh_user:
2322
ensure => present,
2423
home => "/home/${ssh_user}",

manifests/plugin/remote_execution/ssh_user/params.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Remote Execution SSH user default parameters
22
# @api private
33
class foreman_proxy::plugin::remote_execution::ssh_user::params {
4-
54
# `getvar()` is used because the top scope variables being accessed here are *not* facts.
65
# They come from the ENC, (foreman), and are not present in `$facts`.
76
# `$::var` can't safely be used either as catalog compilation will fail if `strict_variables = true`

0 commit comments

Comments
 (0)