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
47b02a78
Commit
47b02a78
authored
Oct 26, 2016
by
Kevin Falcone
Committed by
GitHub
Oct 26, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3434 from edx/jibsheet/check-configuration-files-in-use
Add a new check which allows checking for extra config
parents
2f57cc49
9211b130
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
playbooks/roles/common/tasks/main.yml
+9
-0
playbooks/roles/common_vars/defaults/main.yml
+12
-0
No files found.
playbooks/roles/common/tasks/main.yml
View file @
47b02a78
---
-
name
:
Check Configuration Sources
fail
:
msg
:
"
Configuration
Sources
Checking
(COMMON_EXTRA_CONFIGURATION_SOURCES_CHECKING)
is
enabled,
you
must
define
{{
item
}}"
when
:
COMMON_EXTRA_CONFIGURATION_SOURCES_CHECKING and ({{ item }} is not defined or {{ item }} != True)
with_items
:
COMMON_EXTRA_CONFIGURATION_SOURCES
tags
:
-
"
install"
-
"
install:configuration"
# ubuntu
-
stat
:
path
:
"
/usr/sbin/update-ca-certificates"
...
...
playbooks/roles/common_vars/defaults/main.yml
View file @
47b02a78
...
...
@@ -191,3 +191,15 @@ common_close_all_caches: |
COMMON_TRACKING_LOG_ROTATION
:
-
size 1M
# If you include configuration from multiple sources and want to ensure that
# all sources are included when running playbooks, this provides a way to check that.
# As an example, if you have a secure configuration repo, you can do
# COMMON_EXTRA_CONFIGURATION_SOURCES_CHECKING: true
# COMMON_EXTRA_CONFIGURATION_SOURCES:
# - COMMON_USING_SECURE_REPO
# The common role will then ensure that COMMON_USING_SECURE_REPO is defined and true.
# This will ensure that you've included a file that sets
# COMMON_USING_SECURE_REPO: true
COMMON_EXTRA_CONFIGURATION_SOURCES_CHECKING
:
false
COMMON_EXTRA_CONFIGURATION_SOURCES
:
[]
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