Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
secure_afs_request
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
secure_afs_request
Commits
e28846c8
Commit
e28846c8
authored
4 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
first commit
parents
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/init.pp
+20
-0
20 additions, 0 deletions
manifests/init.pp
templates/etc/apache2/sites-available/secure-afs-request.conf.erb
+21
-0
21 additions, 0 deletions
...s/etc/apache2/sites-available/secure-afs-request.conf.erb
with
41 additions
and
0 deletions
manifests/init.pp
0 → 100644
+
20
−
0
View file @
e28846c8
class
secure_afs_request
(
Enum
[
'present'
,
'absent'
]
$ensure
=
'present'
,
String
$vhost
=
'secure-afs-request.example.com'
,
)
{
# Install the
file
{
"/etc/apache2/sites-enabled/secure-afs-request.conf"
:
ensure
=>
$ensure
,
content
=>
template
(
'secure_afs_request/etc/apache2/sites-available/secure-afs-request.conf.erb'
),
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0755'
,
}
# Install the key-pair
su_apache::cert::incommon
{
$vhost
:
ensure
=>
$ensure
,
}
}
This diff is collapsed.
Click to expand it.
templates/etc/apache2/sites-available/secure-afs-request.conf.erb
0 → 100644
+
21
−
0
View file @
e28846c8
<VirtualHost
*:80
>
ServerAdmin adamhl@.stanford.edu
ServerName
<%=
@vhost
%>
# Redirect _all_ port 80 traffic to the secure side
Redirect / https://
<%=
@vhost
%>
/
</VirtualHost>
<VirtualHost
*:443
>
ServerAdmin adamhl@.stanford.edu
ServerName
<%=
@vhost
%>
DocumentRoot /srv/www/integration-test2
TraceEnable off
SSLEngine On
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:!MEDIUM:!LOW:!SSLv2:!EXP
SSLCertificateFile /etc/ssl/certs/integration-test2.pem
SSLCertificateKeyFile /etc/ssl/private/integration-test2.key
</VirtualHost>
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