Skip to content

Commit c45bdb9

Browse files
committed
puppet-lint autofix with voxpupuli-test 5
1 parent 4118be9 commit c45bdb9

File tree

17 files changed

+35
-38
lines changed

17 files changed

+35
-38
lines changed

manifests/agent/config.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Puppet agent configuration
22
# @api private
33
class puppet::agent::config inherits puppet::config {
4-
puppet::config::agent{
4+
puppet::config::agent {
55
'classfile': value => $puppet::classfile;
66
'localconfig': value => '$vardir/localconfig';
77
'default_schedules': value => false;

manifests/agent/install.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Install the puppet agent package
22
# @api private
3-
class puppet::agent::install(
3+
class puppet::agent::install (
44
$manage_packages = $puppet::manage_packages,
55
$package_name = $puppet::client_package,
66
$package_version = $puppet::version,

manifests/agent/service.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Set up the puppet agent as a service
22
# @api private
33
class puppet::agent::service {
4-
54
case $puppet::runmode {
65
'service': {
76
$service_enabled = true
@@ -29,7 +28,7 @@
2928
}
3029

3130
if $puppet::runmode in $puppet::unavailable_runmodes {
32-
fail("Runmode of ${puppet::runmode} not supported on ${::kernel} operating systems!")
31+
fail("Runmode of ${puppet::runmode} not supported on ${facts['kernel']} operating systems!")
3332
}
3433

3534
class { 'puppet::agent::service::daemon':

manifests/agent/service/cron.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
hour => $_hour,
2020
minute => $_minute,
2121
}
22-
} else{
22+
} else {
2323
cron { 'puppet':
2424
ensure => absent,
2525
}

manifests/agent/service/daemon.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
) {
66
unless $puppet::runmode == 'unmanaged' or 'service' in $puppet::unavailable_runmodes {
77
if $enabled {
8-
service {'puppet':
8+
service { 'puppet':
99
ensure => running,
1010
name => $puppet::service_name,
1111
hasstatus => true,
@@ -14,7 +14,7 @@
1414
restart => $puppet::agent_restart_command,
1515
}
1616
} else {
17-
service {'puppet':
17+
service { 'puppet':
1818
ensure => stopped,
1919
name => $puppet::service_name,
2020
hasstatus => true,

manifests/config.pp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Set up the puppet config
22
# @api private
3-
class puppet::config(
3+
class puppet::config (
44
$allow_any_crl_auth = $puppet::allow_any_crl_auth,
55
$auth_allowed = $puppet::auth_allowed,
66
$auth_template = $puppet::auth_template,
@@ -18,7 +18,7 @@
1818
$additional_settings = $puppet::additional_settings,
1919
$client_certname = $puppet::client_certname,
2020
) {
21-
puppet::config::main{
21+
puppet::config::main {
2222
'vardir': value => $puppet::vardir;
2323
'logdir': value => $puppet::logdir;
2424
'rundir': value => $puppet::rundir;
@@ -30,22 +30,22 @@
3030
}
3131

3232
if $module_repository and !empty($module_repository) {
33-
puppet::config::main{'module_repository': value => $module_repository; }
33+
puppet::config::main { 'module_repository': value => $module_repository; }
3434
}
3535
if $ca_server and !empty($ca_server) {
36-
puppet::config::main{'ca_server': value => $ca_server; }
36+
puppet::config::main { 'ca_server': value => $ca_server; }
3737
}
3838
if $ca_port {
39-
puppet::config::main{'ca_port': value => $ca_port; }
39+
puppet::config::main { 'ca_port': value => $ca_port; }
4040
}
4141
if $dns_alt_names and !empty($dns_alt_names) {
42-
puppet::config::main{'dns_alt_names': value => $dns_alt_names; }
42+
puppet::config::main { 'dns_alt_names': value => $dns_alt_names; }
4343
}
4444
if $use_srv_records {
4545
unless $srv_domain {
4646
fail('domain fact found to be undefined and $srv_domain is undefined')
4747
}
48-
puppet::config::main{
48+
puppet::config::main {
4949
'use_srv_records': value => true;
5050
'srv_domain': value => $srv_domain;
5151
}
@@ -55,13 +55,13 @@
5555
}
5656
}
5757
if $pluginsource {
58-
puppet::config::main{'pluginsource': value => $pluginsource; }
58+
puppet::config::main { 'pluginsource': value => $pluginsource; }
5959
}
6060
if $pluginfactsource {
61-
puppet::config::main{'pluginfactsource': value => $pluginfactsource; }
61+
puppet::config::main { 'pluginfactsource': value => $pluginfactsource; }
6262
}
6363
if $syslogfacility and !empty($syslogfacility) {
64-
puppet::config::main{'syslogfacility': value => $syslogfacility; }
64+
puppet::config::main { 'syslogfacility': value => $syslogfacility; }
6565
}
6666
if $client_certname {
6767
puppet::config::main {

manifests/config/agent.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
String $key = $name,
1212
String $joiner = ','
1313
) {
14-
puppet::config::entry{"agent_${name}":
14+
puppet::config::entry { "agent_${name}":
1515
key => $key,
1616
value => $value,
1717
joiner => $joiner,

manifests/config/entry.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141

4242
# this adds the '$key =' for the first value,
4343
# otherwise it just appends it with the joiner to separate it from the previous value.
44-
if (!defined(Concat::Fragment["puppet.conf_${section}_${key}"])){
45-
concat::fragment{"puppet.conf_${section}_${key}":
44+
if (!defined(Concat::Fragment["puppet.conf_${section}_${key}"])) {
45+
concat::fragment { "puppet.conf_${section}_${key}":
4646
target => "${puppet::dir}/puppet.conf",
4747
content => "\n ${key} = ${_value}",
4848
order => "${sectionorder}_${section}_${key} ",
4949
}
5050
} else {
51-
concat::fragment{"puppet.conf_${section}_${key}_${name}":
51+
concat::fragment { "puppet.conf_${section}_${key}_${name}":
5252
target => "${puppet::dir}/puppet.conf",
5353
content => "${joiner}${_value}",
5454
order => "${sectionorder}_${section}_${key}_${name} ",

manifests/config/main.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
String $key = $name,
1212
String $joiner = ','
1313
) {
14-
puppet::config::entry{"main${name}":
14+
puppet::config::entry { "main${name}":
1515
key => $key,
1616
value => $value,
1717
joiner => $joiner,

manifests/config/master.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
String $key = $name,
1212
String $joiner = ','
1313
) {
14-
puppet::config::entry{"master_${name}":
14+
puppet::config::entry { "master_${name}":
1515
key => $key,
1616
value => $value,
1717
joiner => $joiner,

0 commit comments

Comments
 (0)