Skip to content

Commit

Permalink
Changes to make this run on @jbau 's machine
Browse files Browse the repository at this point in the history
* remove capa from requirements, bump versions of dogapi and simplejson
* comment out stuff done to /etc/facter
* comment out pkg_version() b/c it needs  '../version-script/version.py'
  • Loading branch information
jbau committed May 16, 2013
1 parent 9390ee2 commit d52fde1
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.swp
*.pyc
30 changes: 15 additions & 15 deletions fabfile/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,21 +258,21 @@ def deploy(auto_migrate=False):
_install_gemfile(pkg)
_install_npm_package(pkg)

with dog_stats_api.timer(metric_name, tags=repo_tags + ['step:fact']):
# drop a file for puppet so it knows that
# code is installed for the service
with cd('/etc/facter/facts.d'):
pkg_config = PackageInfo()
if pkg.repo_name in pkg_config.service_repos:
# facts can't have dashes so they are converted
# to underscores
noopable(sudo)(
'echo "{0}_installed=true" > {0}_installed.txt'.format(
pkg.repo_name.replace("-", "_")))

with dog_stats_api.timer(metric_name, tags=package_tags +
['step:pkg_version']):
pkg_version()
# with dog_stats_api.timer(metric_name, tags=repo_tags + ['step:fact']):
# # drop a file for puppet so it knows that
# # code is installed for the service
# with cd('/etc/facter/facts.d'):
# pkg_config = PackageInfo()
# if pkg.repo_name in pkg_config.service_repos:
# # facts can't have dashes so they are converted
# # to underscores
# noopable(sudo)(
# 'echo "{0}_installed=true" > {0}_installed.txt'.format(
# pkg.repo_name.replace("-", "_")))

# with dog_stats_api.timer(metric_name, tags=package_tags +
# ['step:pkg_version']):
# pkg_version()

with dog_stats_api.timer(metric_name, tags=package_tags +
['step:post_commands']):
Expand Down
6 changes: 3 additions & 3 deletions fabric-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ WebOb==1.2.3
argparse==1.2.1
beautifulsoup4==4.1.3
boto==2.7.0
capa==0.1
#capa==0.1
cloudformation==0.0.0
decorator==3.4.0
distribute==0.6.30
docopt==0.6.1
dogapi==1.1.2
dogapi==1.2.3
ipython==0.13.1
jenkinsapi==0.1.11
lxml==3.1beta1
Expand All @@ -24,7 +24,7 @@ pyrelic==0.2.0
python-dateutil==2.1
requests==1.1.0
schema==0.1.1
simplejson==3.0.7
simplejson==3.3.0
simples3==1.0-alpha
six==1.2.0
-e git+https://github.com/bos/statprof.py.git@a17f7923b102c9039763583be9e377e8422e8f5f#egg=statprof-dev
Expand Down
10 changes: 8 additions & 2 deletions playbooks/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

- name: Create application root
# In the future consider making group edx r/t adm
file: path=$app_base_dir state=directory owner=root group=adm mode=2775
file: path={{ app_base_dir}} state=directory owner=root group=adm mode=2775
tags:
- pre_install
- update

- name: Create upload directory
file: path=$app_base_dir/uploads mode=2775 state=directory owner=root group=adm
file: path={{ app_base_dir }}/uploads mode=2775 state=directory owner=root group=adm
tags:
- pre_install
- update
Expand All @@ -20,6 +20,12 @@
- pre_install
- update

- name: Create staticfiles dir
file: path={{ app_base_dir}}/staticfiles state=directory owner=root group=adm mode=2775
tags:
- pre_install
- update

- name: Install role-independent useful system packages
# do this before log dir setup; rsyslog package guarantees syslog user present
apt: pkg={{item}} install_recommends=yes state=present update_cache=yes
Expand Down
9 changes: 9 additions & 0 deletions playbooks/roles/lms/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@
- lms-env
- update

- name: Change owner on staticfiles
file: path={{ app_base_dir }}/staticfiles state=directory owner=www-data group=www-data
tags:
- cms
- lms
- lms-env
- update


- name: Create lms log target directory
file: path={{log_base_dir}}/lms state=directory owner=syslog group=adm mode=2770
tags:
Expand Down

0 comments on commit d52fde1

Please sign in to comment.