Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
4ed96e00
Commit
4ed96e00
authored
Sep 15, 2016
by
Saleem Latif
Committed by
GitHub
Sep 15, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3361 from edx/saleem-latif/SOL-2037-ssh-key-leakage
SOL-2037: Make sure ssh private keys are not leaked
parents
818388c0
6a902954
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
playbooks/callback_plugins/hipchat_plugin.py
+1
-1
playbooks/callback_plugins/sqs.py
+1
-1
playbooks/roles/git_clone/tasks/main.yml
+6
-0
No files found.
playbooks/callback_plugins/hipchat_plugin.py
View file @
4ed96e00
...
...
@@ -126,7 +126,7 @@ class CallbackModule(object):
def
runner_on_ok
(
self
,
host
,
res
):
if
self
.
enabled
:
# don't send the setup results
if
res
[
'invocation'
][
'module_name'
]
!=
"setup"
:
if
'invocation'
in
res
and
'module_name'
in
res
[
'invocation'
]
and
res
[
'invocation'
][
'module_name'
]
!=
"setup"
:
self
.
_process_message
(
res
,
'OK'
)
...
...
playbooks/callback_plugins/sqs.py
View file @
4ed96e00
...
...
@@ -93,7 +93,7 @@ class CallbackModule(object):
def
runner_on_ok
(
self
,
host
,
res
):
if
self
.
enable_sqs
:
# don't send the setup results
if
res
[
'invocation'
][
'module_name'
]
!=
"setup"
:
if
'invocation'
in
res
and
'module_name'
in
res
[
'invocation'
]
and
res
[
'invocation'
][
'module_name'
]
!=
"setup"
:
self
.
_send_queue_message
(
res
,
'OK'
)
def
playbook_on_task_start
(
self
,
name
,
is_conditional
):
...
...
playbooks/roles/git_clone/tasks/main.yml
View file @
4ed96e00
...
...
@@ -24,6 +24,7 @@
shell
:
git config --global fetch.prune
true
become_user
:
"
{{
repo_owner
}}"
when
:
GIT_REPOS is defined
no_log
:
true
tags
:
-
install
-
install:code
...
...
@@ -33,6 +34,7 @@
msg
:
'
{{
GIT_REPOS.PROTOCOL
}}
must
be
"https"
or
"ssh"'
when
:
(item.PROTOCOL != "https") and (item.PROTOCOL != "ssh") and GIT_REPOS is defined
with_items
:
GIT_REPOS
no_log
:
true
tags
:
-
install
-
install:code
...
...
@@ -47,6 +49,7 @@
mode
:
"
0600"
when
:
item.PROTOCOL == "ssh" and GIT_REPOS is defined
with_items
:
GIT_REPOS
no_log
:
true
tags
:
-
install
-
install:code
...
...
@@ -62,6 +65,7 @@
register
:
code_checkout
when
:
item.PROTOCOL == "ssh" and GIT_REPOS is defined
with_items
:
GIT_REPOS
no_log
:
true
tags
:
-
install
-
install:code
...
...
@@ -75,6 +79,7 @@
register
:
code_checkout
when
:
item.PROTOCOL == "https" and GIT_REPOS is defined
with_items
:
GIT_REPOS
no_log
:
true
tags
:
-
install
-
install:code
...
...
@@ -85,6 +90,7 @@
state
:
absent
when
:
item.PROTOCOL == "ssh" and GIT_REPOS is defined
with_items
:
GIT_REPOS
no_log
:
true
tags
:
-
install
-
install:code
Write
Preview
Markdown
is supported
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