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
5eff9294
Commit
5eff9294
authored
Jul 31, 2013
by
e0d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating names to match style guide.
parent
b5c1d5df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
playbooks/roles/common/tasks/create_users.yml
+9
-9
playbooks/roles/common/tasks/edx_logging_base.yml
+5
-5
No files found.
playbooks/roles/common/tasks/create_users.yml
View file @
5eff9294
---
---
-
name
:
Create 'edx' users group
-
name
:
common |
Create 'edx' users group
group
:
name=edx state=present
group
:
name=edx state=present
tags
:
tags
:
-
users
-
users
-
admin_users
-
admin_users
-
update
-
update
-
name
:
Add user 'ubuntu' to 'edx' group
-
name
:
common |
Add user 'ubuntu' to 'edx' group
# This is a temporary measure for initial configuration; after the last
# This is a temporary measure for initial configuration; after the last
# play is run and we've got a good set of users, ubuntu should no longer be used
# play is run and we've got a good set of users, ubuntu should no longer be used
user
:
name=ubuntu append=yes groups="edx"
user
:
name=ubuntu append=yes groups="edx"
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
-
admin_users
-
admin_users
-
update
-
update
-
name
:
Creating admin users
-
name
:
common |
Creating admin users
# Admin users, by definition, should be able to sudo w/ password, and read adm-only files
# Admin users, by definition, should be able to sudo w/ password, and read adm-only files
user
:
name={{ item.user }} append=yes groups={{ "adm,edx,"+",".join(item.groups) }} shell=/bin/bash
user
:
name={{ item.user }} append=yes groups={{ "adm,edx,"+",".join(item.groups) }} shell=/bin/bash
with_items
:
admin_users
with_items
:
admin_users
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
-
admin_users
-
admin_users
-
update
-
update
-
name
:
Copying ssh keys for admin users
-
name
:
common |
Copying ssh keys for admin users
authorized_key
:
user={{item.user}} key="{{ lookup('file', item.path ) }}"
authorized_key
:
user={{item.user}} key="{{ lookup('file', item.path ) }}"
with_items
:
admin_keys
with_items
:
admin_keys
when
:
admin_keys is defined
when
:
admin_keys is defined
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
-
admin_users
-
admin_users
-
update
-
update
-
name
:
Creating env users
-
name
:
common |
Creating env users
user
:
name={{ item.user }} {% if item.groups %}groups={{ ",".join(item.groups) }}{% endif %} shell=/bin/bash
user
:
name={{ item.user }} {% if item.groups %}groups={{ ",".join(item.groups) }}{% endif %} shell=/bin/bash
with_items
:
env_users
with_items
:
env_users
when
:
env_users is defined
when
:
env_users is defined
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
-
users
-
users
-
update
-
update
-
name
:
Copying ssh keys for env users
-
name
:
common |
Copying ssh keys for env users
authorized_key
:
user={{ item.user }} key="{{ lookup('file', item.path ) }}"
authorized_key
:
user={{ item.user }} key="{{ lookup('file', item.path ) }}"
with_items
:
env_keys
with_items
:
env_keys
when
:
env_keys is defined
when
:
env_keys is defined
...
@@ -50,10 +50,9 @@
...
@@ -50,10 +50,9 @@
-
users
-
users
-
update
-
update
-
name
:
Group adm passwordless sudo
-
name
:
common |
Group adm passwordless sudo
copy
:
content="%adm ALL=(ALL) NOPASSWD:ALL" dest=/etc/sudoers.d/adm-group owner=root group=root mode=0440
copy
:
content="%adm ALL=(ALL) NOPASSWD:ALL" dest=/etc/sudoers.d/adm-group owner=root group=root mode=0440
tags
:
tags
:
-
users
-
users
-
admin_users
-
admin_users
-
update
-
update
\ No newline at end of file
playbooks/roles/common/tasks/edx_logging_base.yml
View file @
5eff9294
---
---
-
name
:
Install rsyslog configuration for edX
-
name
:
common |
Install rsyslog configuration for edX
template
:
dest=/etc/rsyslog.d/99-edx.conf src=edx_rsyslog.j2 owner=root group=root mode=644
template
:
dest=/etc/rsyslog.d/99-edx.conf src=edx_rsyslog.j2 owner=root group=root mode=644
notify
:
restart rsyslogd
notify
:
restart rsyslogd
tags
:
tags
:
-
logging
-
logging
-
update
-
update
-
name
:
Install logrotate configuration for edX
-
name
:
common |
Install logrotate configuration for edX
template
:
dest=/etc/logrotate.d/edx-services src=edx_logrotate.j2 owner=root group=root mode=644
template
:
dest=/etc/logrotate.d/edx-services src=edx_logrotate.j2 owner=root group=root mode=644
tags
:
tags
:
-
logging
-
logging
-
update
-
update
-
name
:
Touch tracking file into existence
-
name
:
common |
Touch tracking file into existence
command
:
touch -a {{log_base_dir}}/tracking.log creates={{log_base_dir}}/tracking.log
command
:
touch -a {{log_base_dir}}/tracking.log creates={{log_base_dir}}/tracking.log
tags
:
tags
:
-
logging
-
logging
-
update
-
update
-
name
:
Set permissions on tracking file
-
name
:
common |
Set permissions on tracking file
file
:
path={{log_base_dir}}/tracking.log owner=syslog group=adm mode=640
file
:
path={{log_base_dir}}/tracking.log owner=syslog group=adm mode=640
tags
:
tags
:
-
logging
-
logging
-
update
-
update
-
name
:
Install logrotate configuration for tracking file
-
name
:
common |
Install logrotate configuration for tracking file
template
:
dest=/etc/logrotate.d/tracking.log src=edx_logrotate_tracking_log.j2 owner=root group=root mode=644
template
:
dest=/etc/logrotate.d/tracking.log src=edx_logrotate_tracking_log.j2 owner=root group=root mode=644
tags
:
tags
:
-
logging
-
logging
...
...
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