Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Puppet Modules
webhosting
Commits
472ce443
Commit
472ce443
authored
Nov 21, 2019
by
mh
Browse files
make the mapping port different so selinux works, but the interrior port adjustable
parent
cc42ec52
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/container.pp
View file @
472ce443
...
...
@@ -10,6 +10,7 @@
# - semianonym: Don't log ips for CustomLog, log normal ErrorLog
define
webhosting::container
(
String
$image
,
Integer
[
1
,
65535
]
$port
,
$ensure
=
present
,
$configuration
=
{},
$uid
=
'absent'
,
...
...
@@ -96,7 +97,7 @@ define webhosting::container(
container_name
=>
'con'
,
manage_user
=>
false
,
image
=>
$image
,
publish
=>
[
"
8080:80
"
],
publish
=>
[
"
12342:
${port}
"
],
run_flags
=>
{
userns
=>
'keep-id'
,
user
=>
"
${real_uid}
:
${real_gid}
"
,
...
...
@@ -124,7 +125,7 @@ define webhosting::container(
vhost_source
=>
$vhost_source
,
vhost_destination
=>
$vhost_destination
,
htpasswd_file
=>
$htpasswd_file
,
options
=>
"http://127.0.0.1:
8080
"
,
options
=>
"http://127.0.0.1:
12342
"
,
}
if
$template_partial
!=
'absent'
{
Apache
::
Vhost
::
Static
[
$name
]{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment