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
d71991c9
Commit
d71991c9
authored
Sep 27, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #293 from edx/feanil/xqueue_user
Ensure the xqueue user and home directories exist.
parents
e2fe6746
63e66986
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletions
+30
-1
playbooks/roles/xqueue/defaults/main.yml
+1
-0
playbooks/roles/xqueue/tasks/deploy.yml
+1
-1
playbooks/roles/xqueue/tasks/main.yml
+28
-0
No files found.
playbooks/roles/xqueue/defaults/main.yml
View file @
d71991c9
...
...
@@ -57,6 +57,7 @@ xqueue_auth_config:
'
REQUESTS_BASIC_AUTH'
:
$XQUEUE_BASIC_AUTH
'
USERS'
:
{
'
{{XQUEUE_DJANGO_USER}}'
:
$XQUEUE_DJANGO_PASSWORD
}
'
DATABASES'
:
default
:
'
NAME'
:
$XQUEUE_MYSQL_DB_NAME
'
USER'
:
$XQUEUE_MYSQL_USER
'
PASSWORD'
:
$XQUEUE_MYSQL_PASSWORD
...
...
playbooks/roles/xqueue/tasks/deploy.yml
View file @
d71991c9
...
...
@@ -12,7 +12,7 @@
-
deploy
# Do A Checkout
-
name
:
xqueue | git checkout xqueue repo into
$app_base_dir
-
name
:
xqueue | git checkout xqueue repo into
{{app_base_dir}}
git
:
dest={{xqueue_code_dir}} repo={{xqueue_source_repo}} version={{xqueue_version}}
tags
:
-
xqueue
...
...
playbooks/roles/xqueue/tasks/main.yml
View file @
d71991c9
...
...
@@ -17,6 +17,34 @@
tags
:
-
xqueue
-
name
:
xqueue | create {{ xqueue_user_home }}
# workaround for the case where the parent
# directory doesn't exist
file
:
>
path={{ xqueue_user_home }}
state=directory
-
name
:
xqueue | create xqueue user {{ xqueue_user }}
user
:
>
name={{ xqueue_user }}
state=present
shell=/bin/bash
home={{ xqueue_user_home }}
createhome=yes
tags
:
-
forum
-
update
-
name
:
xqueue | ensure homedir permissions {{ xqueue_user_home }}
# workaround for the case where the parent
# directory doesn't exist
file
:
>
path={{ xqueue_user_home }}
owner={{ xqueue_user }}
group={{ xqueue_user }}
state=directory
recurse=yes
-
name
:
xqueue | create xqueue db
mysql_db
:
>
name={{xqueue_auth_config.DATABASES.default.NAME}}
...
...
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