Skip to content

Commit

Permalink
Random incremental fixes
Browse files Browse the repository at this point in the history
* Enable npm role
* Minor edits to debian dependency list
* Change treatment of a few files and directories
  • Loading branch information
jrbl committed May 8, 2013
1 parent d0eec73 commit dee8862
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 14 deletions.
3 changes: 3 additions & 0 deletions playbooks/edxapp_custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
roles:
- common
- nginx
- gunicorn
- lms
- ruby
- npm
1 change: 1 addition & 0 deletions playbooks/edxapp_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
- gunicorn
- lms
- ruby
- npm
1 change: 1 addition & 0 deletions playbooks/edxapp_stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
- gunicorn
- lms
- ruby
- npm
8 changes: 8 additions & 0 deletions playbooks/roles/cms/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@
template: src=env.json.j2 dest=$app_base_dir/cms.env.json
sudo: True
tags:
- cms-env
- cms

- name: create cms auth file
template: src=auth.json.j2 dest=$app_base_dir/cms.auth.json
sudo: True
tags:
- cms-env
- cms

- include: ../../nginx/tasks/nginx_site.yml state=link site_name=cms
tags:
- cms
- cms-env
- include: ../../nginx/tasks/nginx_site.yml state=link site_name=cms-backend
tags:
- cms
-cms-env
1 change: 1 addition & 0 deletions playbooks/roles/cms/templates/auth.json.j2
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
{# {% do auth_config.update( { < override some hash keys > } ) %} #}
{{ auth_config | to_nice_json }}
17 changes: 15 additions & 2 deletions playbooks/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
---
- include: create_users.yml
- name: Create application root
file: path=$app_base_dir state=directory owner=root group=root
# In the future consider making group edx r/t adm
file: path=$app_base_dir state=directory owner=root group=adm mode=2775
sudo: True
tags:
- pre_install
- name: Create log directory
file: path=/mnt/logs state=directory
file: path=/mnt/logs state=directory mode=2770 group=adm owner=root
sudo: True
tags:
- pre_install
- name: Create aliases to the log directory
file: state=link src=/mnt/logs path=$app_base_dir/log
tags:
- pre_install
- name: Touch the edx log file into place
command: touch -a /mnt/logs/edx.log
tags:
- pre_install
- name: Update apt cache
apt: update_cache=yes
sudo: True
Expand Down
6 changes: 0 additions & 6 deletions playbooks/roles/lms/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@
- cms

# Check out mitx repo to $app_base_dir
- name: set permissions on $app_base_dir sgid for adm
file: path=$app_base_dir owner=root group=adm mode=2775 state=directory
sudo: True
tags:
- lms
- cms
- name: install git and its recommends
apt: pkg=git state=present install_recommends=yes
sudo: True
Expand Down
8 changes: 2 additions & 6 deletions playbooks/roles/lms/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ lms_debian_pkgs:
- libxml2-dev
- libxml2-utils
- libxslt1-dev
# convenience
- lynx-cur
- maven2
- mongodb
- mongodb-clients
Expand All @@ -97,11 +99,6 @@ lms_debian_pkgs:
- perl
- pkg-config
- postfix
#- puppet
#- puppet-common
#- puppet-lint
#- puppetmaster
#- puppetmaster-common
- pylint
- python-boto
- python-coverage-test-runner
Expand All @@ -119,7 +116,6 @@ lms_debian_pkgs:
- sqlite3
- super
- vagrant
- vim-puppet
- yui-compressor
- zip
- zlib1g-dev

0 comments on commit dee8862

Please sign in to comment.