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
7029a28d
Commit
7029a28d
authored
Jul 31, 2013
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding functionality to install non standard server cert.
parent
374a2707
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
2 deletions
+48
-2
playbooks/roles/notifier/tasks/main.yml
+43
-0
playbooks/roles/notifier/templates/notifier_env.j2
+5
-2
No files found.
playbooks/roles/notifier/tasks/main.yml
View file @
7029a28d
...
...
@@ -24,6 +24,42 @@
-
install
-
update
-
name
:
common | create incommon ca directory
file
:
path="/usr/share/ca-certificates/incommon" mode=2775 state=directory
tags
:
-
notifier
-
install
-
update
-
ubuntu
-
name
:
common | retrieve incommon server CA
shell
:
curl https://www.incommon.org/cert/repository/InCommonServerCA.txt -o /usr/share/ca-certificates/incommon/InCommonServerCA.crt
tags
:
-
notifier
-
install
-
update
-
ubuntu
-
name
:
common | add InCommon ca cert
lineinfile
:
dest=/etc/ca-certificates.conf
regexp='incommon/InCommonServerCA.crt'
line='incommon/InCommonServerCA.crt'
tags
:
-
notifier
-
install
-
update
-
ubuntu
-
name
:
common | update ca certs globally
shell
:
update-ca-certificates
tags
:
-
notifier
-
install
-
update
-
ubuntu
-
name
:
notifier | create notifier user {{ notifier_user }}
user
:
name={{ notifier_user }} state=present shell=/bin/bash
...
...
@@ -42,6 +78,13 @@
-
install
-
update
-
name
:
notifier | drop a bash_profile
copy
:
>
src=../../common/files/bash_profile
dest={{ notifier_home }}/.bash_profile
owner={{ notifier_user }}
group={{ notifier_user }}
-
name
:
notifier | ensure .bashrc exists
shell
:
touch {{ notifier_home }}/.bashrc
sudo
:
true
...
...
playbooks/roles/notifier/templates/notifier_env.j2
View file @
7029a28d
...
...
@@ -21,4 +21,7 @@ export US_URL_BASE="{{ notifier_user_service_base }}"
export US_API_KEY="{{ notifier_user_service_api_key }}"
# celery
export BROKER_URL="{{ notifier_celery_broker_url }}"
\ No newline at end of file
export BROKER_URL="{{ notifier_celery_broker_url }}"
# have requests use the OS ca certs
export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
\ No newline at end of file
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