Commit 7029a28d by e0d

Adding functionality to install non standard server cert.

parent 374a2707
......@@ -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
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment