Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
puppetpublic
base
Commits
a8a3004b
Commit
a8a3004b
authored
8 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
more instance variable cleanup
parent
d6d037da
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NEWS
+16
-1
16 additions, 1 deletion
NEWS
templates/ssh/sshd_config.erb
+4
-4
4 additions, 4 deletions
templates/ssh/sshd_config.erb
templates/syslog/rsyslog.conf.erb
+1
-1
1 addition, 1 deletion
templates/syslog/rsyslog.conf.erb
templates/xinetd/config.erb
+33
-32
33 additions, 32 deletions
templates/xinetd/config.erb
with
54 additions
and
38 deletions
NEWS
+
16
−
1
View file @
a8a3004b
release/005.001 (2016-12-07)
Add "path" attributes to several exec resources. This will be required
in the next version of Puppet [adamhl].
in the next version of Puppet. [adamhl]
[puppetclient] Replace "local" variables with what is really intended:
instance variables defined in the calling manifest (or defiend as a
Puppet fact). While not strictly necessary right now, in a future
version of Puppet will stop interpreting ERB local variables as
instance variables so we might as well fix them now. [adamhl]
[puppetclient] Remove some conditional code that made sense when we
used very old versions of Puppet. [adamhl]
[ssh] More of the instance variable cleanup. [adamhl]
[syslog] More of the instance variable cleanup. [adamhl]
[xinetd] More of the instance variable cleanup. [adamhl]
release/005.000 (2016-11-21)
...
...
This diff is collapsed.
Click to expand it.
templates/ssh/sshd_config.erb
+
4
−
4
View file @
a8a3004b
...
...
@@ -43,7 +43,7 @@ HostKey /etc/ssh/ssh_host_ed25519_key
LoginGraceTime 300
# Prevent attackers from running long password guessing attacks.
MaxAuthTries
<%=
max_tries
%>
MaxAuthTries
<%=
@
max_tries
%>
<%
if
@osfamily
==
'RedHat'
then
-%>
# Some Red Hat systems are old enough that this has to be explicitly enabled.
...
...
@@ -54,9 +54,9 @@ UsePrivilegeSeparation yes
# since we use GSS-API (or passwords).
IgnoreRhosts yes
RSAAuthentication no
PubkeyAuthentication
<%=
pubkey
?
'yes'
:
'no'
%>
PubkeyAuthentication
<%=
@
pubkey
?
'yes'
:
'no'
%>
RhostsRSAAuthentication no
HostbasedAuthentication
<%=
hostbased
?
'yes'
:
'no'
%>
HostbasedAuthentication
<%=
@
hostbased
?
'yes'
:
'no'
%>
# Allow password authentication via PAM, but not empty passwords.
ChallengeResponseAuthentication yes
...
...
@@ -115,7 +115,7 @@ Subsystem sftp /usr/libexec/openssh/sftp-server
<%
else
-%>
Subsystem sftp /usr/lib/openssh/sftp-server
<%
end
-%>
<%
if
gitolite
then
-%>
<%
if
@
gitolite
then
-%>
# gitolite user should run through a wrapper to map it to actual user.
Match User gitolite
...
...
This diff is collapsed.
Click to expand it.
templates/syslog/rsyslog.conf.erb
+
1
−
1
View file @
a8a3004b
...
...
@@ -42,7 +42,7 @@ $KLogPermitNonKernelFacility on
$SystemLogRateLimitInterval 0
<%
end
-%>
<%
unless
use_syslog_conf
==
'false'
||
!
use_syslog_conf
-%>
<%
unless
@
use_syslog_conf
==
'false'
||
!
@
use_syslog_conf
-%>
# Include the syslog rules first so they can be overriden by rsyslog.d.
$IncludeConfig /etc/syslog.conf
...
...
This diff is collapsed.
Click to expand it.
templates/xinetd/config.erb
+
33
−
32
View file @
a8a3004b
# Managed by Puppet via xinetd::config class
# default: on
# description:
<%=
description
%>
service
<%=
service
%>
# description:
<%=
@
description
%>
service
<%=
@
service
%>
{
disable = no
<%
if
name
!=
service
then
-%>
id =
<%=
name
%>
<%
if
@
name
!=
@
service
then
-%>
id =
<%=
@
name
%>
<%
end
-%>
<%
if
server_type
!=
''
then
-%>
type =
<%=
server_type
%>
<%
if
@
server_type
!=
''
then
-%>
type =
<%=
@
server_type
%>
<%
end
-%>
<%
if
protocol
!=
''
then
-%>
protocol =
<%=
protocol
%>
<%
if
@
protocol
!=
''
then
-%>
protocol =
<%=
@
protocol
%>
<%
end
-%>
<%
if
port
!=
''
then
-%>
port =
<%=
port
%>
<%
if
@
port
!=
''
then
-%>
port =
<%=
@
port
%>
<%
end
-%>
<%
if
protocol
==
'udp'
then
-%>
<%
if
@
protocol
==
'udp'
then
-%>
socket_type = dgram
wait = yes
<%
else
-%>
socket_type = stream
wait = no
<%
end
-%>
<%
if
flags
!=
''
then
-%>
flags =
<%=
flags
%>
<%
if
@
flags
!=
''
then
-%>
flags =
<%=
@
flags
%>
<%
end
-%>
user =
<%=
user
%>
group =
<%=
group
%>
<%
if
server_type
!~
/INTERNAL/
then
-%>
server =
<%=
server
%>
<%
if
server_args
!=
''
then
-%>
server_args =
<%=
server_args
%>
user =
<%=
@
user
%>
group =
<%=
@
group
%>
<%
if
@
server_type
!~
/INTERNAL/
then
-%>
server =
<%=
@
server
%>
<%
if
@
server_args
!=
''
then
-%>
server_args =
<%=
@
server_args
%>
<%
end
-%>
libwrap =
<%=
server
[
/[^\/]+$/
]
%>
<%-
libwrap
=
@server
[
/[^\/]+$/
]
-%>
libwrap =
<%=
libwrap
%>
<%
end
-%>
<%
if
cps
!=
''
then
-%>
cps =
<%=
cps
%>
<%
if
@
cps
!=
''
then
-%>
cps =
<%=
@
cps
%>
<%
end
-%>
<%
if
per_source
!=
''
then
-%>
per_source =
<%=
per_source
%>
<%
if
@
per_source
!=
''
then
-%>
per_source =
<%=
@
per_source
%>
<%
end
-%>
<%
if
instances
!=
''
then
-%>
instances =
<%=
instances
%>
<%
if
@
instances
!=
''
then
-%>
instances =
<%=
@
instances
%>
<%
end
-%>
<%
if
env
!=
''
then
-%>
env =
<%=
env
%>
<%
if
@
env
!=
''
then
-%>
env =
<%=
@
env
%>
<%
end
-%>
<%
if
log_type
!=
'NONE'
then
if
(
server_type
!~
/INTERNAL/
)
and
(
protocol
!=
'udp'
)
then
if
log_type
!=
''
then
-%>
log_type = SYSLOG
<%=
log_type
%>
<%
if
@
log_type
!=
'NONE'
then
if
(
@
server_type
!~
/INTERNAL/
)
and
(
@
protocol
!=
'udp'
)
then
if
@
log_type
!=
''
then
-%>
log_type = SYSLOG
<%=
@
log_type
%>
<%
else
-%>
log_type = SYSLOG daemon
<%
end
-%>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment