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
OpenEdx
configuration
Commits
ae6b9b25
Commit
ae6b9b25
authored
Nov 15, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #462 from edx/jarv/gpg-perms
gnupg dir needs to be owned by the web user
parents
cfd5156b
0a11ab74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
playbooks/roles/certs/tasks/main.yml
+3
-12
No files found.
playbooks/roles/certs/tasks/main.yml
View file @
ae6b9b25
...
...
@@ -57,7 +57,7 @@
-
name
:
certs | create certs gpg dir
file
:
>
path="{{ certs_gpg_dir }}" state=directory
owner="{{ c
erts_user }}" group="{{ certs
_user }}"
owner="{{ c
ommon_web
_user }}"
mode=0700
notify
:
certs | restart certs
...
...
@@ -65,7 +65,7 @@
copy
:
>
src={{ CERTS_LOCAL_PRIVATE_KEY }}
dest={{ certs_app_dir }}/{{ CERTS_LOCAL_PRIVATE_KEY|basename }}
owner={{ c
erts
_user }} mode=0600
owner={{ c
ommon_web
_user }} mode=0600
notify
:
certs | restart certs
register
:
certs_gpg_key
...
...
@@ -73,19 +73,10 @@
-
name
:
certs | load the gpg key
shell
:
>
/usr/bin/gpg --homedir {{ certs_gpg_dir }} --import {{ certs_app_dir }}/{{ CERTS_LOCAL_PRIVATE_KEY|basename }}
sudo_user
:
"
{{
c
erts
_user
}}"
sudo_user
:
"
{{
c
ommon_web
_user
}}"
when
:
certs_gpg_key.changed
notify
:
certs | restart certs
-
name
:
certs | set permission to the certs_gpg_dir so that it can be read by the web user
file
:
>
path={{ certs_gpg_dir }}
owner={{ certs_user }}
group={{ common_web_user }}
mode=0640 recurse=yes
state=directory
notify
:
certs | restart certs
-
include
:
deploy.yml
-
name
:
certs | create a symlink for venv python
...
...
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