mirror of
https://github.com/ansible/awx.git
synced 2026-03-16 00:17:29 -02:30
Pull requirements from pip so we get later things on CentOS 6, etc
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
lib/settings.py
|
lib/settings.py
|
||||||
|
env/*
|
||||||
*.py[c,o]
|
*.py[c,o]
|
||||||
*.swp
|
*.swp
|
||||||
|
|||||||
9
Makefile
9
Makefile
@@ -4,10 +4,15 @@ clean:
|
|||||||
rebase:
|
rebase:
|
||||||
git pull --rebase origin master
|
git pull --rebase origin master
|
||||||
|
|
||||||
|
push:
|
||||||
|
git push
|
||||||
|
|
||||||
zero:
|
zero:
|
||||||
|
# go back to original database state, be careful!
|
||||||
python manage.py migrate main zero
|
python manage.py migrate main zero
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
|
# use ansible to ansible ansible commander locally
|
||||||
ansible-playbook app_setup/setup.yml --verbose -i "127.0.0.1," -c local -e working_dir=`pwd`
|
ansible-playbook app_setup/setup.yml --verbose -i "127.0.0.1," -c local -e working_dir=`pwd`
|
||||||
|
|
||||||
syncdb:
|
syncdb:
|
||||||
@@ -20,8 +25,8 @@ runserver:
|
|||||||
|
|
||||||
# already done and should not have to happen again:
|
# already done and should not have to happen again:
|
||||||
#
|
#
|
||||||
south_init:
|
#south_init:
|
||||||
python manage.py schemamigration main --initial
|
# python manage.py schemamigration main --initial
|
||||||
|
|
||||||
dbchange:
|
dbchange:
|
||||||
# run this each time we make changes to the model
|
# run this each time we make changes to the model
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# TODO: setup celery and any worker processes/requirements
|
# TODO: setup celery and any worker processes/requirements
|
||||||
|
|
||||||
- hosts: 127.0.0.1
|
- hosts: 127.0.0.1
|
||||||
gather_facts: True
|
gather_facts: False
|
||||||
user: root
|
user: root
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/vars.yml
|
- vars/vars.yml
|
||||||
@@ -15,16 +15,13 @@
|
|||||||
|
|
||||||
- name: install packages
|
- name: install packages
|
||||||
action: yum name=$item state=installed
|
action: yum name=$item state=installed
|
||||||
with_items:
|
with_name:
|
||||||
- postgresql # database client
|
- postgresql # database client
|
||||||
- postgresql-server # database server
|
- postgresql-server # database server
|
||||||
- Django # web stack
|
- python-psycopg2 # database library
|
||||||
- Django-south # migration support
|
|
||||||
- python-django-tastypie # rest support
|
|
||||||
- python-psycopg2
|
|
||||||
|
|
||||||
# the following could probably be included, though ident identification is fiddly
|
- name: install python modules
|
||||||
# so we won't use it to create the database and database user
|
pip: requirements=${working_dir}/requirements.txt
|
||||||
|
|
||||||
- name: configure the database authentication more or less open for setup
|
- name: configure the database authentication more or less open for setup
|
||||||
template: src=templates/pg_hba_low.j2 dest=/var/lib/pgsql/data/pg_hba.conf
|
template: src=templates/pg_hba_low.j2 dest=/var/lib/pgsql/data/pg_hba.conf
|
||||||
@@ -52,9 +49,6 @@
|
|||||||
- name: configure python settings (with database password)
|
- name: configure python settings (with database password)
|
||||||
template: src=templates/settings.py.j2 dest=${working_dir}/lib/settings.py
|
template: src=templates/settings.py.j2 dest=${working_dir}/lib/settings.py
|
||||||
|
|
||||||
#- name: sync Django database
|
|
||||||
# shell: python ${working_dir}/manage.py syncdb
|
|
||||||
|
|
||||||
- name: sync django database
|
- name: sync django database
|
||||||
django_manage: >
|
django_manage: >
|
||||||
command=syncdb
|
command=syncdb
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ from django.db import models
|
|||||||
# TODO: audit cascade behavior and defaults
|
# TODO: audit cascade behavior and defaults
|
||||||
# TODO: set related names
|
# TODO: set related names
|
||||||
|
|
||||||
# SET_NULL = models.SET_NULL
|
SET_NULL = models.SET_NULL
|
||||||
# PROTECT = models.PROTECT
|
PROTECT = models.PROTECT
|
||||||
|
|
||||||
class CommonModel(models.Model):
|
class CommonModel(models.Model):
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user