Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
typo3_site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Chef Cookbooks
typo3_site
Commits
f534b438
Commit
f534b438
authored
6 years ago
by
Paul Ilea
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Add recipe code explanations and relevant variable name
parent
f2d0cc4e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
recipes/default.rb
+6
-5
6 additions, 5 deletions
recipes/default.rb
with
6 additions
and
5 deletions
recipes/default.rb
+
6
−
5
View file @
f534b438
...
@@ -275,24 +275,25 @@ end
...
@@ -275,24 +275,25 @@ end
# source 'rootCA.srl'
# source 'rootCA.srl'
# end
# end
additional_aliases
=
''
# concatenate the additional optional domains in order to avoid missing index exceptions
additional_domains
=
''
if
node
.
include?
(
'xhprof'
)
&&
node
[
'xhprof'
].
include?
(
'hostname'
)
if
node
.
include?
(
'xhprof'
)
&&
node
[
'xhprof'
].
include?
(
'hostname'
)
additional_
aliase
s
=
additional_
aliase
s
+
' '
+
node
[
'xhprof'
][
'hostname'
]
additional_
domain
s
=
additional_
domain
s
+
' '
+
node
[
'xhprof'
][
'hostname'
]
end
end
if
node
.
include?
(
'webgrind'
)
&&
node
[
'webgrind'
].
include?
(
'hostname'
)
if
node
.
include?
(
'webgrind'
)
&&
node
[
'webgrind'
].
include?
(
'hostname'
)
additional_
aliase
s
=
additional_
aliase
s
+
' '
+
node
[
'webgrind'
][
'hostname'
]
additional_
domain
s
=
additional_
domain
s
+
' '
+
node
[
'webgrind'
][
'hostname'
]
end
end
if
node
.
include?
(
'mailhog'
)
&&
node
[
'mailhog'
].
include?
(
'hostname'
)
if
node
.
include?
(
'mailhog'
)
&&
node
[
'mailhog'
].
include?
(
'hostname'
)
additional_
aliase
s
=
additional_
aliase
s
+
' '
+
node
[
'mailhog'
][
'hostname'
]
additional_
domain
s
=
additional_
domain
s
+
' '
+
node
[
'mailhog'
][
'hostname'
]
end
end
bash
'Create Certificate'
do
bash
'Create Certificate'
do
cwd
'/etc/apache2/ssl/'
cwd
'/etc/apache2/ssl/'
code
<<-
EOF
code
<<-
EOF
chmod 755 create_certificate_for_domain.sh
chmod 755 create_certificate_for_domain.sh
./create_certificate_for_domain.sh
#{
node
[
'typo3_site'
][
'hostname'
]
}
#{
node
[
'typo3_site'
][
'server_aliases'
]
}#{
additional_
aliase
s
}
./create_certificate_for_domain.sh
#{
node
[
'typo3_site'
][
'hostname'
]
}
#{
node
[
'typo3_site'
][
'server_aliases'
]
}#{
additional_
domain
s
}
EOF
EOF
action
:run
action
:run
end
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