Skip to content

Commit c0caa1a

Browse files
committed
Drop redundant content_only template
1 parent 034e866 commit c0caa1a

File tree

7 files changed

+7
-48
lines changed

7 files changed

+7
-48
lines changed

manifests/config.pp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,13 @@
126126
)
127127

128128
# Join all configuration lines
129-
$content = $config_lines.join("\n")
129+
$content = "# sssd::config\n[sssd]\n${$config_lines.join("\n")}\n"
130130

131131
file { '/etc/sssd/sssd.conf':
132132
owner => 'root',
133133
group => 'root',
134134
mode => '0600',
135-
content => epp("${module_name}/content_only.epp", {
136-
'content' => "# sssd::config\n[sssd]\n${content}",
137-
}),
135+
content => $content,
138136
notify => Class["${module_name}::service"],
139137
}
140138
}

manifests/service/autofs.pp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,7 @@
7575
# Combine all configuration entries in the expected order
7676
$_all_entries = $_base_content + $_description_entries + $_debug_level_entries + $_debug_timestamps_entries + $_debug_microseconds_entries + $_autofs_negative_timeout_entries
7777

78-
$_final_content = "${_all_entries.join("\n")}"
79-
80-
$_content = epp(
81-
"${module_name}/content_only.epp",
82-
{
83-
'content' => $_final_content,
84-
},
85-
)
78+
$_content = "${_all_entries.join("\n")}\n"
8679
}
8780

8881
sssd::config::entry { 'puppet_service_autofs':

manifests/service/ifp.pp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,7 @@
9292
# Combine all configuration entries in the expected order
9393
$_all_entries = $_base_content + $_description_entries + $_debug_level_entries + $_debug_timestamps_entries + $_debug_microseconds_entries + $_allowed_uids_entries + $_user_attributes_entries + $_wildcard_limit_entries
9494

95-
$_final_content = "${_all_entries.join("\n")}"
96-
97-
$_content = epp(
98-
"${module_name}/content_only.epp",
99-
{
100-
'content' => $_final_content,
101-
},
102-
)
95+
$_content = "${_all_entries.join("\n")}\n"
10396
}
10497

10598
sssd::config::entry { 'puppet_service_ifp':

manifests/service/pac.pp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,7 @@
7474
# Combine all configuration entries in the expected order
7575
$_all_entries = $_base_content + $_description_entries + $_debug_level_entries + $_debug_timestamps_entries + $_debug_microseconds_entries + $_allowed_uids_entries
7676

77-
$_final_content = "${_all_entries.join("\n")}"
78-
79-
$_content = epp(
80-
"${module_name}/content_only.epp",
81-
{
82-
'content' => $_final_content,
83-
},
84-
)
77+
$_content = "${_all_entries.join("\n")}\n"
8578
}
8679

8780
sssd::config::entry { 'puppet_service_pac':

manifests/service/ssh.pp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,7 @@
8282
# Combine all configuration entries in the expected order
8383
$_all_entries = $_base_content + $_description_entries + $_debug_level_entries + $_debug_timestamps_entries + $_debug_microseconds_entries + $_ssh_hash_known_hosts_entries + $_ssh_known_hosts_timeout_entries
8484

85-
$_final_content = "${_all_entries.join("\n")}"
86-
87-
$_content = epp(
88-
"${module_name}/content_only.epp",
89-
{
90-
'content' => $_final_content,
91-
},
92-
)
85+
$_content = "${_all_entries.join("\n")}\n"
9386
}
9487

9588
sssd::config::entry { 'puppet_service_ssh':

manifests/service/sudo.pp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,7 @@
7777
# Combine all configuration entries in the expected order
7878
$_all_entries = $_base_content + $_description_entries + $_debug_level_entries + $_debug_timestamps_entries + $_debug_microseconds_entries + $_sudo_timed_entries
7979

80-
$_final_content = "${_all_entries.join("\n")}"
81-
82-
$_content = epp(
83-
"${module_name}/content_only.epp",
84-
{
85-
'content' => $_final_content,
86-
},
87-
)
80+
$_content = "${_all_entries.join("\n")}\n"
8881
}
8982

9083
sssd::config::entry { 'puppet_service_sudo':

templates/content_only.epp

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)