1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00
Commit Graph

445 Commits

Author SHA1 Message Date
Chris Church
60224cdbe4 Update Django to 1.8 and DRF to 3.3, add new Django migrations, update serializers/pagination/metadata, update browsable API styling. 2016-02-02 17:48:04 -05:00
James Laska
cced99f75d Resolve bug when building with /bin/sh on Ubuntu
Ubuntu uses /bin/sh by default.  This change properly compares strings in a
POSIX compliant manner.
2016-02-02 12:45:08 -05:00
Wayne Witzel III
3982f34392 Merge pull request #764 from wwitzel3/docker-refresh
add a docker-refresh make target
2016-02-02 09:39:56 -05:00
Wayne Witzel III
71a1547c3a fixing ad_hoc imports
flake8 fixes

Fix and add awx/api/tests

added fact tests

added proper xml reports for jenkins

added jenkins requirements and adjusted Makefile target
2016-02-01 18:37:56 -05:00
Wayne Witzel III
3d4580611e added pytest to requirements_dev
reworking test strucutre

reworked pytest.ini, removed functional imports, updated req_dev

remove unneeded __init__ files

add testing checker to local_settings examples

adding testing packages to system Python for docker
2016-02-01 18:37:56 -05:00
Wayne Witzel III
5d6ea242c0 reorganzing tests folder
make tests a module

refacotring to local imports for tests

fixing test import of tasks

fixing test import of tasks

more testing fixups
2016-02-01 18:37:56 -05:00
Wayne Witzel III
a4aadc0b86 add a docker-refresh make target 2016-02-01 13:13:03 -05:00
James Laska
305b4fdead Typo's are bad and should be vanquished 2016-01-29 09:54:48 -05:00
James Laska
6b20539e38 Conditionally install 2.6 python requirements 2016-01-29 09:03:03 -05:00
Matthew Jones
87e50734a6 Merge branch 'release_2.4.2' into devel
* release_2.4.2: (23 commits)
  Updating 2.4.2 changelogs
  fix the connection check fix
  more robust check added to mongo db connection
  Adding a body to our OPTIONS requests fixes 415 error responses in IE11 and Edge.
  Don't hard-fail if default isn't defined on survey
  fixed custom login info bug
  Allow an org admin to delete project updates
  Disable elasticache instance gathering for aws
  Fix DEB builds by adding 2.4.2 to reprepro conf
  When the panel lists were consolidated down the list name was changed to 'all_jobs.'  When a job is clicked from the activity stream it should show the job list filtered down by ID.
  Rolled back job url change
  track modules on system tracking page by index
  correct spelling of consisting in help text
  Fixing up flake8
  The "job" href links in the activity stream don't point to the job details page.  This is an update to the jobs href to point to /#/jobs/(job.id).
  Wrapped the SourceChange call in a function so that it can be called without clearing the credential.  This fixes a bug where the credential was not showing up in the initial edit dialog even though the data was sent properly via the API.
  Revert change to Makefile, which was causing old .deb versions to be dropped from the repo
  Refactor scan_packages for os detection
  Remove stray debugging lines
  Add SUSE, OpenSuse and Debian to scan_packages
  ...
2015-12-09 13:06:47 -05:00
John Mitchell
364872a678 fixed typo of cp command 2015-12-09 10:19:34 -05:00
John Mitchell
c9d501c562 updated test-ui make target to be able to only run a single test file 2015-12-08 18:35:00 -05:00
John Mitchell
856e6c5c59 fixed test-ui debug mode not showing source files and phony tasks comment 2015-12-08 16:55:43 -05:00
John Mitchell
0b43398ef6 Rehaul of ui build process
Updated make tasks
Added coverage reports for ui
Added browser-sync support
Updated contribution doc
Updated npm dependencies (Jenkins and dev environment can both use Node 4.2.1)
2015-12-06 16:41:48 -05:00
Graham Mainwaring
54be15a694 Revert change to Makefile, which was causing old .deb versions to be dropped from the repo 2015-11-25 09:47:29 -05:00
James Laska
60a2787468 Use correct aw_repo_url when building packer 2015-11-06 15:19:35 -05:00
James Laska
fc8f8811af Resolve issue on precise keeping old debs around
Upgrades on precise kept installing the oldest 2.4.0 package in the pool.  The
following fix appears to correct that problem.
2015-11-05 12:53:15 -05:00
James Laska
71e9ce61e4 Revert "Add CFLAGS when building rhel6 site-packages"
To make this work, we'll also need:

    CFLAGS=-Qunused-arguments

For now, we'll explore forking dm.xmlsec.bindings.

This reverts commit be83561bfe996d5e5b2e291787f2e863fa5b9203.
2015-11-04 16:13:34 -05:00
James Laska
8a97a26aba Add CFLAGS when building rhel6 site-packages
Attempts to resolves https://trello.com/c/DL7MgYyO
2015-11-04 15:58:10 -05:00
James Laska
3ae78ca6e8 Fix typo in clean target 2015-10-15 20:30:36 -04:00
Matthew Jones
523a96ebce Add mongo shell container entrypoint also 2015-10-09 12:16:49 -04:00
Matthew Jones
531f00b1ac rm the old docker run container after stopping 2015-10-09 12:04:34 -04:00
Matthew Jones
bfc9512dc7 Also remove .deps_built with make clean 2015-10-09 11:58:48 -04:00
jlmitch5
6883d70805 fixed tmp dir deletion in make clean 2015-10-08 10:58:30 -04:00
Matthew Jones
dbd0a01410 Merge branch 'release_2.3.1' into devel
* release_2.3.1:
  Add 2.3.1 to the reprepro distribution manifest
  Update version to 2.3.1 and update changelog
  Remove unused time import
  Fix proot controlpersist cleanup issue
  Propagate necessary build changes from devel
  Update reprepro components
  Reenable the reprepro i386 repository
  Fix supervisor migration
  Fix reprepro/conf path in Makefile
  prefer the first version when packages are ambiguous
  Correct error message
  Fix omission
  Correct conditional stmt
  Improve logging when sourcerpm fails
  Fix typo
  Fix OFFICIAL deb Makefile
2015-10-02 16:37:45 -04:00
James Laska
949f4cb15d Propagate necessary build changes from devel 2015-10-01 12:06:01 -04:00
James Laska
8c5f7cf9b9 Add vmware-iso build target 2015-09-30 12:56:29 -04:00
James Laska
90c3ccfc8c Merge pull request #444 from jlaska/versioned_reprepro
Add support for versioning the reprepro
2015-09-29 13:56:50 -04:00
Chris Meyers
4111056b81 add docker-compose-test directive to Makefile 2015-09-29 10:45:25 -04:00
James Laska
f62814cc90 Add support for versioning the reprepro
This allows customers to install old versions of tower using older setup
tarballs.
2015-09-29 09:12:14 -04:00
James Laska
531fc4d8ed Correct reprepro/conf path in Makefile 2015-09-23 20:33:40 -04:00
James Laska
d7fb9b19b1 Fix reprepro/conf path in Makefile 2015-09-23 20:32:34 -04:00
James Laska
7582458a0a Cleanup merge fallout from release_2.3 2015-09-23 16:10:40 -04:00
James Laska
8358722c10 Fix OFFICIAL deb Makefile 2015-09-22 16:36:45 -04:00
Matthew Jones
256af567de Merge branch 'release_2.3' into devel
* release_2.3: (24 commits)
  Updated package changelogs
  Rephrase task name
  Make purge supervisor.conf conditional on 2.2 el6
  Fix another name typo.
  Update python-ldap license text.
  Add LGPL source directly so it gets shipped.
  Update font-awesome licenses per legal feedback
  Remove bundled_licenses - we are shipping the source for bundled items, and therefore do not need to provide this separately.
  Add more license texts.
  Add full Apache licenses to files, per Pam.
  Attempt to harden mongodb tgz download
  Correct DJRF/DJRF-mongoengine licenses, rename qsstats license to match pkg name.
  Fix some typos in file names, and add licenses for some things we have modified in our own repos.
  Update Ubuntu depends and ppa's
  Include source for bundled packages in bundle.
  Include license information in packaging
  Add READMEs for the license directories.
  vendored python licenses
  Add bundled licenses documentation
  Revert to stock libzmq3 for deb depends
  ...
2015-09-22 15:57:32 -04:00
Matthew Jones
4cf2f32451 Remove the contents of tmp/ on clean 2015-09-22 11:04:40 -04:00
Bill Nottingham
e4795111ef Remove bundled_licenses - we are shipping the source for bundled items, and therefore do not need to provide this separately. 2015-09-21 13:53:49 -04:00
James Laska
e1b6588602 Include license information in packaging 2015-09-18 16:42:03 -04:00
James Laska
07574c9b64 Add bundled licenses documentation
Also includes in the bundled tarball artifact.
2015-09-18 10:04:49 -04:00
James Laska
b57144046b Add support for pbuilder chroot builds
Additional fixes include:
 * Clean and pyc files in debian/rules
 * Reprepro changes
 * Update debian standards version
 * Update OS distro detection
2015-09-16 16:28:05 -04:00
Matthew Jones
519b0e8eef Merge branch 'release_2.3' into devel
* release_2.3: (54 commits)
  Upgrade changelog for 2.3
  Purge superlance
  Purge an old supervisor config
  Require chris-lea libzmq3
  Use the htpasswd command, not the module
  Fix a playbook syntax error for postgres
  Ensure postgres is started earlier in setup role
  Allow customizing npm path
  Include RPM-GPG-KEY-ansible-release for all releases
  Simplify GPG keys
  Correct broken RPM-GPG-KEY
  Use gpg --passphrase for signing CHECKSUM
  Handle rpm --addsign pasphrase prompts
  Adding docker-compose development workflow
  Fix license in spec file.
  Updates to selinux policy for some munin plugins
  ansible 1.8.4 requires sudo:true when using sudo_user
  Fix expect script timeout
  Disable timeout and correct sign.exp error
  Fix expect script hang
  ...
2015-09-11 16:03:52 -04:00
James Laska
32cf468059 Allow customizing npm path
So jenkins can use `npm --no-color`
2015-09-10 19:03:41 -04:00
James Laska
3f9dd3ab22 Simplify GPG keys 2015-09-10 16:26:59 -04:00
James Laska
19c847ae10 Use gpg --passphrase for signing CHECKSUM 2015-09-10 13:40:24 -04:00
jlmitch5
552e12a8eb Merge pull request #392 from jlmitch5/adhoc_2.4
Adhoc 2.4 - Tests and refactor
2015-09-10 10:34:11 -04:00
Matthew Jones
940910b9a3 Adding docker-compose development workflow 2015-09-09 17:17:48 -04:00
Matthew Jones
7263367c6d Adding docker-compose development workflow 2015-09-09 17:16:35 -04:00
John Mitchell
edd7a5bab2 create make target that will run js tests in chrome 2015-09-09 13:08:50 -04:00
James Laska
99444f2737 Fix Makefile tabs/spaces 2015-09-09 10:57:55 -04:00
James Laska
77f4a280e3 Correct bash conditional 2015-09-08 23:14:31 -04:00
James Laska
6fa26bd026 Properly sign DEBs using reprepro 2015-09-08 22:44:29 -04:00
James Laska
d183075519 Revert "Disable gpg tty requirement"
This reverts commit 205210045749de215988a08ebdc57503e6698b04.
2015-09-08 20:05:24 -04:00
James Laska
8abc7b7ae1 Disable gpg tty requirement 2015-09-08 19:57:16 -04:00
James Laska
a38e8ca889 Specify a gpg key for TAR artifacts 2015-09-08 19:51:35 -04:00
James Laska
aa6470b730 Re-enable package signing 2015-09-08 13:35:30 -04:00
James Laska
92d737e721 Fix path bug when creating CHECKSUM file 2015-09-05 08:39:32 -04:00
James Laska
b7a67ca176 Don't include the build path in CHECKSUM 2015-09-04 21:14:01 -04:00
James Laska
4aa6f74437 Only sign the CHECKSUM for OFFICIAL builds 2015-09-04 21:08:49 -04:00
James Laska
8383838296 Fix path in build target 2015-09-04 21:05:59 -04:00
James Laska
cb1d60939b Renamed packaging/offline -> packaging/bundle
Also replaced all instances off `offline` with `bundle`.  Also includes minor
trailing whitespace cleanup.
2015-09-04 14:10:50 -04:00
James Laska
b456f2955e Create CHECKSUM files for tarball targets
* Renames the setup_offline_tarball -> setup_bundle_tarball
* Uses sha256sum and gpg to create a --clearsign CHECKSUM file
2015-09-04 13:53:03 -04:00
James Laska
5e46262546 Remove DIST_FULL from offline-tar-build path
Also provide suitable defaults for RPM_DIST and RPM_ARCH when being run on a
platform that doesn't have the `rpm` command.
2015-09-03 20:42:43 -04:00
Matthew Jones
5727d722b6 Merge remote-tracking branch 'upstream/release_2.3' into devel
* upstream/release_2.3: (91 commits)
  Include python-{paramiko,ecdsa} dependencies
  Remove extra epel testing stanzas
  Unit test for ec2 credentialless inventory
  Fix issue with ec2 iam sync with no credential.
  Use the htpasswd command instead the ansible module
  Pip is no longer needed
  check local user root or not in ./configure
  Remove unneeded when check for super user addition
  Improve distro detection in setup.sh
  Fix superuser check on upgrade
  Minor improvements to setup.sh
  Remove ansible prerequisite check from configure
  Attempt to install ansible within setup.sh
  Allow munin processes to access postgres
  Move up base package dependency install
  fixes jenkins failures
  Proper flake8 fix
  fixes executing processes with correct PYTHONPATH will pickup .pth files
  Show the repo for bundled package file dump
  Proper flake8 fix
  ...
2015-09-03 15:46:10 -04:00
Chris Meyers
9f33127919 fixes jenkins failures
* include requirements.txt in requirements_jenkins.txt
* include requirements.txt in requirements_dev.txt
* alter Makefile to NOT call the requirements rule in the requirements_*
rules. Again, this is now handled by the -r requirements.txt in the
respective _*.txt file.
* install jenkins requirements "globally" (in the virtualenv)
2015-09-02 08:23:11 -04:00
James Laska
3ecfb0ce01 Include DIST_FULL in the offline symlink 2015-08-31 20:43:44 -04:00
James Laska
2b5624daa2 Improve RPM_DIST regular expression 2015-08-31 13:16:59 -04:00
James Laska
797aa9b5d8 Cleanup of Makefile offline-tar-build target 2015-08-31 13:04:11 -04:00
James Laska
597d37dd25 Fix typo in Makefile 2015-08-31 12:52:12 -04:00
James Laska
23b3b3fca6 Attempt to simplify offline Makefile target 2015-08-31 12:01:15 -04:00
James Laska
64b65edf2c Handle /bin/sh as the default shell
Fixes a build issue on Ubuntu where the `source` function isn't available
within `/bin/sh` (ubuntu).
2015-08-27 11:18:38 -04:00
James Laska
265802322d Add a new default build target
Also override dh_auto_clean to avoid removing the awx/ui/dist during DEB
package builds.

Update the `.spec` file to call the same Makefile targets used by in `debian/rules`.
2015-08-26 21:34:15 -04:00
James Laska
32a4a941e0 Gather pip requirements at package build time
Previously, requirements were gathered prior to the `sdist` target, and
included in the sdist tarball.  As some requirements are compiled, this caused
problems where the compiled dependencies were linked against the wrong
libraries.  This pull-request addresses that by moving the requirements
gathering into the `dh_prep` and `%build` steps of the packaging process.
2015-08-26 12:13:59 -04:00
Chris Meyers
30dc5ec434 remove hard coded epel6 build; support epel 7
* corrects epel7 testing .repo
2015-08-24 11:45:38 -04:00
Matthew Jones
1ead738f96 Updates to offline packager docker environment 2015-08-21 16:40:35 -04:00
Chris Meyers
a9e4377683 removed need for DIST and DIST_MAJOR specification 2015-08-20 10:46:04 -04:00
Chris Meyers
59b5722838 init offline installer builder 2015-08-20 10:41:28 -04:00
Chris Meyers
e80dcd9645 reference requirements in requirements_dev 2015-08-18 16:21:24 -04:00
James Laska
2de6be9cfe Simplify Makefile requirements targets 2015-08-17 14:13:44 -04:00
Matthew Jones
35ffb37492 Add cleaning site-packages in the Makefile 2015-08-17 11:33:45 -04:00
Chris Meyers
99fb641b1b all vendor dependencies expressed in requirements.txt 2015-08-17 11:17:53 -04:00
James Laska
719c2cd477 Remove stale comment in Makefile 2015-08-12 09:34:28 -04:00
James Laska
a1cbdebdd3 Simplify Makefile requirements targets 2015-08-12 08:35:42 -04:00
Matthew Jones
e5bd721b4b Add cleaning site-packages in the Makefile 2015-08-10 11:02:51 -04:00
Joe Fiorini
6d03deaf9b Fix testem.yml dependencies 2015-08-07 15:10:12 -04:00
Chris Meyers
fa1643e330 all vendor dependencies expressed in requirements.txt 2015-08-05 08:10:16 -04:00
Chris Church
71c2fd7f8d Add support for honcho as alternative to tmux for running development servers. 2015-08-04 15:26:27 -04:00
Joe Fiorini
b643dae4d5 Move testem.yml to packaging 2015-08-03 15:33:21 -04:00
Joe Fiorini
501612341c Accept mocha flags in node-tests task 2015-07-31 15:55:48 -04:00
Joe Fiorini
5c5e3f75f4 Add UI tasks to .PHONY 2015-07-30 08:47:32 -04:00
Joe Fiorini
2dc08339a8 Clean up UI-related make tasks 2015-07-28 15:55:00 -04:00
Joe Fiorini
a22e2760b9 Fix PATH setting 2015-07-27 10:19:16 -04:00
Joe Fiorini
8a29974a07 Ensure phantomjs is always found for testem 2015-07-27 10:19:16 -04:00
Joe Fiorini
57058493be Rename packaging folder for node stuff 2015-07-27 10:19:15 -04:00
Joe Fiorini
f360a625ea Get tests running again 2015-07-27 10:19:15 -04:00
Joe Fiorini
9cdea13057 Fix watcher to support new test builds 2015-07-27 10:19:15 -04:00
Joe Fiorini
6fec106fd7 Separate debug folder writing and debug mode 2015-07-27 10:19:14 -04:00
Joe Fiorini
b7c136aba7 Separate node test build from browser build 2015-07-27 10:19:14 -04:00
Joe Fiorini
811d0b1403 Build to awx/ui/static instead of dist 2015-07-27 10:19:14 -04:00
Joe Fiorini
79c6859810 Refactor Makefile to accept option overrides 2015-07-27 10:19:05 -04:00
Joe Fiorini
40acbcf256 Massive refactor of Brocfile for clarity 2015-07-21 16:28:12 -04:00
Joe Fiorini
c6549f4aca Allow tests to run in Phantom via testem for CI 2015-07-09 12:56:57 -04:00
Matthew Jones
074e66219d Add a docker development container build make target 2015-06-08 16:00:35 -04:00
James Laska
f02e26a3f7 Correct Makefile spacing 2015-06-08 11:39:01 -04:00
Matthew Jones
db5af80daa Conditionals on official builds for rpm-build 2015-06-01 16:00:11 -04:00
James Laska
3b9db54139 Add RPM-GPG-KEY to tower.repo
Includes supporting tasks in Makefile
2015-06-01 12:30:18 -04:00
James Laska
7064c9bed4 Additional flake8 cleanup
The flake8 command was identifying several warnings and errors. This change
addresses the flake8 warnings and updates the setup.cfg with additional
exclusions. If accepted, jenkins will be updated to use the flake8 command,
rather than using the django_jenkins plugin. This will expedite jenkins
testing.
2015-05-20 20:33:22 -04:00
James Laska
8ce0674f2c First pass at integration package vagrant workflow 2015-05-15 12:08:05 -04:00
Matthew Jones
c45a422590 Update "make server" endpoint and Makefile to include the new fact cache
receiver. Upgrade docker tool to install mongo and pymongo
2015-04-23 13:34:56 -04:00
Joe Fiorini
0535d1c8c9 Exclude sourcemaps from minjs builds 2015-04-22 15:15:44 -04:00
Joe Fiorini
d48fbaa6b4 Support build configuration allowing plato reports to run 2015-03-31 15:01:19 -04:00
Joe Fiorini
09d631c2c1 Support isolated build for documentation examples 2015-03-25 12:18:19 -04:00
Joe Fiorini
7b38bacca0 Uncomment and jshint ignore console statement 2015-03-13 11:50:35 -04:00
James Laska
8e31e88972 [jenkins] Don't install npm deps globally 2015-03-10 12:36:54 -04:00
Joe Fiorini
581f27f8b6 Automate cleanup of old dist directory 2015-03-02 16:58:34 -05:00
Joe Fiorini
f2b4590545 Allow all static files to be loaded from dist 2015-03-02 16:47:42 -05:00
Matthew Jones
c8682b7820 Take out this stupid sync_ui thing from the 'make server' and 'make
servercc' targets
2015-02-16 13:56:46 -05:00
Matthew Jones
0b8b39f951 Refactor logging to work primarily with rotating files instead of syslog 2015-02-13 10:30:01 -05:00
Joe Fiorini
f4dc7a1373 Add sane dependencies to UI-related Makefile targets 2015-02-11 10:16:12 -05:00
Matthew Jones
60ade410c1 Add tmux CC make target for using with the development service (make
servercc instead of make server)
2015-02-10 12:35:21 -05:00
Joe Fiorini
1689f18238 Also add package.json to .PHONY 2015-02-09 15:44:04 -05:00
Joe Fiorini
b2caa587b6 Adding node_modules to .PHONY target
This is a temporary fix until we figure out if we can make
packaging/grunt/package.template a dependency of package.json.
2015-02-09 15:44:04 -05:00
Joe Fiorini
217b237978 Improve output of watcher in tmux 2015-02-09 15:44:03 -05:00
Joe Fiorini
e3f3b4e78c Use custom watcher script for less CPU pegging 2015-02-09 15:44:03 -05:00
Joe Fiorini
fde020e178 Add target for running ui sync watcher 2015-02-09 11:20:48 -05:00
Joe Fiorini
43d6124153 Add target for ci to minify with tests 2015-02-09 09:45:23 -05:00
Joe Fiorini
4134857794 Point Makefile to local broccoli-cli install for jenkins 2015-02-06 16:52:41 -05:00
Joe Fiorini
54b5a89748 Move Brocfile to packaging 2015-02-06 12:49:04 -05:00
Joe Fiorini
81c940e36b Use broccoli for ui make tasks 2015-02-06 12:49:04 -05:00
James Laska
c841f08e5f Update requirements/jenkins.txt
Also, install (not upgrade), jenkins requirements in the Makefile
target.
2015-02-06 09:47:41 -05:00
Matthew Jones
888ae53027 Fix up flake8 runtime configuration, do a bit of flake8 work as it
relates to pyflakes)
2015-02-05 10:40:47 -05:00
Joe Fiorini
98a4f195c2 Add grunt task for running plato reports 2015-01-30 15:42:50 -05:00
Joe Fiorini
1809fec52e Setup testing for ci and development 2015-01-30 15:42:49 -05:00
Matthew Jones
bd542bc336 Update some of the dev requirements stuff 2015-01-30 10:52:35 -05:00
Luke Sneeringer
f890b6daa7 Shift makefile to hostname. 2014-12-02 11:20:03 -06:00
James Laska
4afa7a0d4d Remove AMI vars-aws-keys.json file
When building AMI using packer, the caller is responsible for setting
the required environment variables to make packer and AWS happy.  For
guidance, refer to https://www.packer.io/docs/builders/amazon-ebs.html.
2014-12-02 11:29:49 -05:00
James Laska
d47d2f5700 Add ansible-tower.{default,sysconfig} script
The 'ansible-tower' service script now comes with an additional file:

    /etc/{default,sysconfig}/ansible-tower

This file is used to specify the services managed by the 'ansible-tower'
service script.  The presence of this file allows admins (or the setup
playbook) to customize the services managed.  For example, when using a
remote postgres server, one would remove 'postgresql' from the list of
tower managed services.
2014-11-25 09:22:02 -05:00
James Laska
a40120d1cf Create latest setup symlink 2014-11-18 09:32:05 -05:00
James Laska
a63ec61fef Bind setup playbook with specific tower version
Trello: https://trello.com/c/cdcMpglV
2014-11-17 19:28:30 -05:00
James Laska
83c64dbd38 Fix mock build error
Mock doesn't seem to like a symlink.
2014-11-14 16:12:32 -05:00
Matthew Jones
fa702a7a59 Remove registration of instance from develop makefile target... on new
installations the database isn't available at this point
2014-11-11 15:51:13 -05:00
Luke Sneeringer
1edd8f9c0a Updates to Makefile and CONTRIBUTING
...for the RabbitMQ to Redis changeout.
2014-11-11 14:18:39 -06:00
James Laska
1559ba50bb Be sure to minify before building RPMs
Also, break out individual clean targets that were helpful for testing
specific components.
2014-10-22 16:41:24 -04:00
Luke Sneeringer
ad97ebb09b Fix Makefile 2014-10-22 10:37:42 -05:00
James Laska
d7792413a0 Allow specifying RPM_DIST when running Makefile
Fixes an issue where the system running make isn't the desired %{dist}
target (e.g. building el7 packages on an el6 system).
2014-10-21 15:51:07 -04:00
James Laska
5905459fc6 Python source removal now happens during packaging
The dark arts previously used in the setup.py have now been pushed off
to debian/rules and ansible-tower.spec.
2014-10-20 16:16:57 -04:00
Luke Sneeringer
47cdb6fc57 register_instance in make develop 2014-10-20 14:46:47 -05:00
James Laska
5d4444235a Switch to dh-python2 and remove py files during packaging 2014-10-19 18:27:28 -04:00
James Laska
3512b93c17 Disable pre-byte-compiling .py files for debian builds
Also includes:
* Override pysupport build and install arguments
* Increase verbosity when logging install_lib changes
2014-10-18 14:40:43 -04:00
James Laska
c2c0dee090 Correct variable typo in Makefile 2014-10-18 13:06:15 -04:00
James Laska
8f46719ef3 Add missing mock-rpm prereq
Fixes an issue where rpm-build was not created prior to running
'mock-rpm'.
2014-10-17 15:47:04 -04:00
James Laska
bfce078ce4 Consolidate RPM and DEB build process
* Add reprepro target
* Use debuild for building deb packages
* Use the same setuptools target for RPM and DEB
* Update rpm and deb changelogs for existing releases
2014-10-17 14:54:23 -04:00
James Laska
d12dddebde Handle jenkins requirements properly 2014-10-02 16:16:27 -04:00
James Laska
f9c8e400b1 Update dev_local.txt with django-debug-toolbar-1.1
Correct jenkins requirements install order
2014-10-02 15:46:03 -04:00
James Laska
adda5b90bd More fiddling with jenkins requirements 2014-10-02 14:19:18 -04:00
James Laska
888352270b More updates to support latest django_jenkins 2014-10-02 13:26:32 -04:00
James Laska
2b1b83a8ee Yes, please download jenkins dependencies 2014-10-02 12:05:45 -04:00
James Laska
8a247ae2c4 Add requirements/jenkins.txt
Moves custom test requirements out of jenkins and into the repository.
2014-09-10 15:25:58 -04:00
Luke Sneeringer
59f3321b13 Updating Django to 1.6.7 in revision txts. 2014-09-10 13:36:03 -05:00
Luke Sneeringer
3267a988f8 Shift Django to 1.6.x (>= 1.6.7). 2014-09-10 12:17:35 -05:00
James Laska
41e2cf0a65 Prefix the release with '0.' for unofficial releases 2014-09-03 19:40:10 -04:00
James Laska
116e1db2a8 Remove ngdocs on 'make clean' 2014-08-28 12:12:04 -04:00
James Laska
5fe92d8013 Add ngdocs Makefile target
Also, update jshint target to match grunt command.
2014-08-28 12:01:35 -04:00
James Laska
0615bd5cb9 Correct make target name 2014-07-08 15:59:42 -04:00
James Laska
297f17d849 Adjust node_modules make dependencies 2014-07-08 15:57:21 -04:00
James Laska
1d7e5a646d Move grunt/js packaging files under packaging/grunt/ 2014-07-08 10:25:20 -04:00
James Laska
69165b762a Resolve npm repository warning 2014-07-08 10:25:20 -04:00
James Laska
e8dc57ff36 Move django_jenkins into development.py 2014-06-05 15:00:21 -04:00
James Laska
296917af54 Move test_jenkins configuration into awx/settings/jenkins.py 2014-06-05 14:06:20 -04:00
James Laska
22db69eb70 test_jenkins - minified files are already excluded 2014-06-05 12:24:50 -04:00
James Laska
f0fe6673f2 Add JENKINS_TASKS to django_jenkins
New tasks include run_pylint, run_pep8, run_pyflakes, run_jshint and
run_csslint.
2014-06-05 12:09:54 -04:00
James Laska
54713b1a2e Create aliases for generating RPM and DEB sdist
Adds the following aliases to assist with packaging-specific sdist.
 * dev_deb and release_deb - includes only .pyc files
 * dev_rpm and release_rpm - includes only .py files (later removed by
   install_lib)

The rpm sdist tarball is a traditional source distribution.  During the build
process, RPM will byte-compile and remove the .py source files.  The deb sdist
includes only byte-compiled awx python.
2014-05-22 11:40:47 -04:00
James Laska
f2c1893dac Update package build workflow
* Update RPM BuildRequires
* Modify 'sdist' setuptools cmdclass to include .py files
* Add 'install_lib' setuptools cmdclass to exclude .py files
2014-05-13 15:09:47 -04:00
James Laska
50d7d64d9a Update pep8 path exclusions 2014-05-13 08:53:39 -04:00
James Laska
5df185b7af Add mock makefile targets
Simplifing the RPM build process by moving the jenkins build workflow into the
Makefile.  This starts with mock.  Additional buildrequires changes likely to
follow.
2014-05-09 08:59:02 -04:00
Matthew Jones
21d0b6301e Update server makefile behavior with two mechanisms one of which will
start the development services in tmux but not attach to the session
2014-05-02 15:26:05 -04:00
James Laska
985d68a187 AMI packaging improvements
Several AMI packaging changes, including:

 * Set a default value for OFFICIAL=no
 * Include tower version in ami_description and tag:Name
 * Packer will tag the AMI to help with visually identifying AMIs (tags used
   include Name, aws_instance_count, product_name, product_version)
 * Removed license/* files.  The license instance count is supplied via an
   environment variable AWS_INSTANCE_COUNT
 * Update reset/install_aws.sh to require an instance count parameter (-c)
2014-04-29 11:19:14 -04:00
James Laska
557b92ef05 Don't forget to minify the js during sdist 2014-04-24 13:22:46 -04:00
James Laska
b4d06796a3 Add pep8 and pyflakes Makefile targets 2014-04-23 13:55:23 -04:00
James Laska
02c4a39865 Add SELinux module to allow socket.io
This also makes several smaller style/format changes to the .spec file.
2014-04-23 13:55:23 -04:00
Matthew Jones
7c43dced0f a bit better pane selection when splitting 2014-04-16 15:30:49 -04:00
Matthew Jones
69583a1b07 Import socketio service work and updates to documentation and setup procedures 2014-04-16 15:27:04 -04:00
Chris Church
8901cd31e7 Install setuptools/Django development packages separately before installing the others. 2014-03-31 14:08:14 -04:00
Matthew Jones
c9340cf5f1 Add a new mechanism for automagically creating a tmux session, splitting it into panes, and starting each Tower needed tower service... This is so you don't have to start each one manually 2014-03-19 13:51:55 -04:00
Matthew Jones
bf19b76d5a Merge remote-tracking branch 'origin/task-system-rework'
* origin/task-system-rework: (36 commits)
  Need to grab just the first item for the scm test project update
  Revert a project unit test
  Make sure we are calling signal_start in unit tests
  Make sure we are calling signal_start in unit tests
  Bypass task runner system in normal job start tests... we'll test it another way so assume we want to just start the job right away
  Fixing up unit tests
  Missing line-end comma
  Prevent deadlocks on unit tests in a very specific scenario
  Ignore checking celery task list during some unit tests, triggered by UNIT_TEST_IGNORE_TASK_WAIT
  Missing semicolon
  Remove update on launch, we'll test this another way
  Make sure we ignore the wait update for tasks under dependency situations in the unit tests
  Fix up run task manager script to handle signals, fix up task cancel job, add restart handler for ubuntu
  Fix some bugs found from unit tests
  More unit test rework
  Some job tests can't run in their current state
  Make sure we check arguments passed to signal start before allowing it to proceed.
  No need to replace original build_args
  Unit test updates for task system... remove old monkeypatch procedure for getting job args in favor of using the job info from the database. Can't do this anymore anyway since the job is running in another process
  Changes to tasks unit tests
  ...
2014-03-19 13:14:21 -04:00
James Laska
20aa89e33c Adjust interactive shell test
To improve grunt readability from test automation, disable colorized output
when running a non-interactive shell.
2014-03-19 11:29:02 -04:00
Matthew Jones
06cc5ffb4a Docs and setup details for the task manager 2014-03-12 14:09:00 -04:00
James Laska
414e43c469 Fix conditional for older bash 2014-03-06 15:01:33 -05:00
James Laska
02a4ff1c36 Disable grunt color output when called from a non-interactive shell
The grunt command is still configurable via the GRUNT environment variable.  By
default, we disable colored output when we detect the shell is non-interactive.
This improves reviewing output when run from automation.
2014-03-06 09:39:20 -05:00
James Laska
4dcc6938dd Allow customizing grunt cli options
Automation can now set GRUNT to provide a path to a specific grunt binary, or
to add grunt parameters.  For example, to disable color output during a Jenkins
build:

    GRUNT="grunt --no-color" make lintjs
2014-03-06 08:56:02 -05:00
James Laska
a4257e207c Create package.json during build target
Rather than hard-code the name and version in package.json, generate the file
during the build process.  The strings %NAME% and %VERSION% will be replaced
with appropriate values during a new build target 'package.json'.
2014-02-26 08:39:41 -05:00
Matthew Jones
2a65fbe77c Update contributing documentation and add receiver target to Makefile 2014-02-18 15:16:39 -05:00
James Laska
4df13d7e99 Add 'npm install' task to the make process
Also, clean up node_modules/ and other generated .js and .css files during
'make clean'.
2014-02-17 10:18:33 -05:00
Chris Houseknecht
2fcb5a1ae4 More updates to contributing doc. Added Grunt to Makefile. Use lintjs to inspect .js files for lint and errors. Use minjs to compile and compress the .js and .less files. 2014-02-12 22:19:30 +00:00
Chris Church
32364ad055 AC-990 Add new task for saving all job events from a queue, updated callback plugin to send to queue, work on optimizing SQL that runs when saving a job event. 2014-02-03 17:05:03 -05:00
James Laska
df9be04a20 Require LICENSE_TIER to specify the license filename
Previously, LICENSE_TIER was used to generate the license file by appending
'.json'.
2014-02-03 13:52:00 -05:00
James Laska
ab7c65df1d Add official ansible-tower-1.4.5 AMI license files
Update Makefile syntax to no longer generate the license as a build step.  In
addition, updated ansible-tower.json to provide a more descriptive ami_name and
ami_description.
2014-02-03 13:24:40 -05:00
Chris Church
9790715a25 Update make develop command, version check after package rename. 2014-01-29 13:49:33 -05:00
James Laska
97b776cf23 Fix ansible-tower deb build 2014-01-29 13:10:21 -05:00
Jenkins
9e119fc8a9 Rename package awx to ansible-tower 2014-01-29 12:57:22 -05:00
James Laska
ef52e92c86 Correct incorrect Makefile variable 2014-01-28 10:21:30 -05:00
James Laska
c78728fdf3 Allow customizing packer license tier 2014-01-28 09:59:08 -05:00
Matthew Jones
9bbeeb90a8 Fix AC-955, disable task prefetching by celery. 2014-01-22 16:05:26 -05:00
James Laska
9da579aa32 Add Makefile support for customizing packer command 2014-01-07 14:14:07 -05:00
James Laska
2f2724b866 Correct Makefile syntax for ami target 2014-01-07 12:45:54 -05:00
James Laska
1bae5b7dd5 Create 'ami' target that relies on OFFICIAL variable 2014-01-07 12:04:25 -05:00
Matthew Jones
2935824b7a Add ami packaging support and update Makefile 2014-01-07 11:53:30 -05:00
Chris Houseknecht
d02d2ebf15 Installed FontAwesome 4. Modified form and list generation to force icon selection through a single method so that icons, icon sizes and button colors are all consistent. Everything seems to be working now with the exception of the status bubbles on list pages. Will need to modify ansible-ui.less anc change the unicode strings to new FontAwesome values. 2013-12-20 23:17:02 +00:00
Chris Church
870c36f5bf Remove --autoreload option from celeryd target, doesn't seem to work anyways. 2013-11-20 22:23:47 -05:00
Chris Church
e0a94cbf32 AC-505 Add vendored copies of ec2 and rax inventory scripts from Ansible (for now). Add vendored versions of boto and pyrax and all their dependencies, updated all vendored packages to latest versions. 2013-09-29 20:36:46 -04:00
Chris Church
9fc46e6292 AC-474. Updates to contributing doc, along with related Makefile, testing and settings changes. 2013-09-24 21:41:00 -04:00
James Cammarata
f70dcf8dbb Adding minified js steps to packaging plus other minor fixes
* Added a new make tarket (minjs) to run the compile script
  and modified the sdist target to require it
* Minor fixes to packaging to chown/chmod the SECRET_KEY file
  to the proper user and permissions
2013-07-16 12:19:18 -05:00
James Cammarata
a6fe88cc3c Fixing Makefile for deb builds
* Minor issue due to fixing up the RELEASE variable related to
  the sdist tarball name the "make deb" command expected
2013-07-07 18:35:22 -04:00
James Cammarata
2cf269bd1e Forgot to fix one line in the Makefile for the VERSION|BUILD 2013-06-30 02:10:55 -04:00
Michael DeHaan
5ae1ccfa3b Added code to raise permission denied on exceeded server counts using licensing system.
Some very minor/misc cleanup and minor docs also included.
2013-06-29 14:52:38 -04:00
James Cammarata
c649aedc8b Minor change to fix an issue with official rpm builds 2013-06-26 08:10:17 -04:00
James Cammarata
1a3fbcd796 Change for RPM packaging to allow daily dev builds 2013-06-26 07:33:09 -04:00
Chris Church
bf5a1d1d67 Added modified sdist command to distribute certain files as pyc only. 2013-06-25 19:46:20 -04:00
James Cammarata
a86ebc9221 Fixing release_ball Makefile target 2013-06-25 19:42:41 -04:00
James Cammarata
946492b023 Changes to build process to remove .py files 2013-06-25 14:30:40 -04:00
James Cammarata
cbc9f18366 More debian packaging stuff
* Added ability to do official vs dev builds (need to add to the
  RPM builds now)
* Reverted changes to awx/wsgi.py after talking with Chris C.
  regarding the pathing issues and created config/wsgi.py instead
  that is installed to /var/lib/awx
* Cleaned up package scripts so there's less junk being written to
  the screen during the install/uninstall
2013-06-24 13:06:11 -04:00
James Cammarata
80afb2e08d More work on debian packaging 2013-06-24 01:16:00 -04:00
James Cammarata
c2a0004c6c Initial work for packaging .deb 2013-06-23 15:40:07 -04:00
Chris Church
07657926b9 Rename ansibleworks to awx. 2013-06-23 13:21:02 -04:00
Chris Church
f0a0a69ec7 Makefile updates, updated requirement packages, added requirements files for both local and PyPI installations. 2013-06-20 15:53:20 -04:00
James Cammarata
ca4050aee8 Adding ability to run "make rpm" 2013-06-15 22:02:30 -05:00
Michael DeHaan
6f43190b2b Fixup makefile 2013-06-12 16:13:34 -04:00
Chris Church
cba55a061a Numerous model-related updates and supporing changes, including:
- Add variables field on Host/Group models and remove separate VariableData model.
- Add data migrations for existing variable data.
- Update views, serializers and tests to keep roughly the same API interface for variable data.
- Add has_active_failures properties on Group/Host models to provide indication of last job status.
- Add job_tags field on JobTemplate/Job models to specify tags to ansible-playbook.
- Add host_config_key field to JobTemplate model for use by empheral hosts.
- Add job_args, job_cwd and job_env fields to Job model to capture more info from running the job.
- Add failed flag on JobHostSummary model.
- Add play/task fields on JobEvent model to capture new context variables from callback.
- Add parent field on JobEvent model to capture hierarchy of job events.
- Add hosts field on JobEvent model to capture all hosts associated with the event (especially useful for parent events in the hierarchy).
- Removed existing Tag model, replace with django-taggit instead.
- Removed existing AuditLog model, replacement TBD.
2013-06-10 17:34:37 -04:00
Michael DeHaan
95ce3cddf7 Rename directory structure in release package. 2013-05-26 11:01:00 -04:00
Michael DeHaan
13ccb6fbdf Add makefile target to build release package, assumes ansible-doc checked out at same level. 2013-05-24 19:22:12 -04:00
Chris Church
c71a04dfb0 Minor fix to migration cleanup target. 2013-05-24 18:12:20 -04:00
Chris Church
c0aaff7850 Cleaned up migrations, updated Makefile migrate target to handle this change. 2013-05-24 17:55:03 -04:00
Chris Church
1ef11155da Added new set of playbooks for deploying to a single-server configuration, including Vagrant configuration for testing. 2013-05-23 03:22:26 -04:00
Chris Church
9478d8d532 Updates to setup/requirements, add Makefile target for running tests with coverage. 2013-05-21 19:08:46 -04:00
Chris Church
aeac739735 Major rename of package from lib to ansibleworks. 2013-05-21 18:20:26 -04:00
Chris Church
5133b9a30e Update to production settings to fail if no config found, updates to build script, added Makefile targets for build. 2013-05-21 17:39:40 -04:00
Chris Church
cc25d55121 Work in progress on credential/job updates. 2013-04-24 00:43:36 -04:00
Chris Church
a1fb81c4f4 Added basic celery support and configuration. 2013-03-14 16:11:14 -04:00
Michael DeHaan
273b447250 Change the way we sync, add notes about superuser setup. 2013-03-13 17:20:50 -04:00
Michael DeHaan
9491453887 Working on migrations 2013-03-13 16:29:51 -04:00
Michael DeHaan
b97193e6a0 Pull requirements from pip so we get later things on CentOS 6, etc 2013-03-13 16:06:45 -04:00
Michael DeHaan
2ce1af0325 Reference apps as acom.main 2013-03-13 15:28:30 -04:00
Michael DeHaan
b5a1b2d423 move manage.py up one level 2013-03-13 15:21:06 -04:00
Michael DeHaan
495639611e Flesh out database model. 2013-03-13 15:15:35 -04:00
Michael DeHaan
5f0692e6d0 Init repo 2013-03-13 13:09:36 -04:00
Michael DeHaan
1853d32020 Various Django cleanup 2013-02-28 19:52:14 -05:00