From 9e119fc8a935b73939e0fd1f94b4455f1f5a1d25 Mon Sep 17 00:00:00 2001 From: Jenkins Date: Wed, 29 Jan 2014 17:30:12 +0000 Subject: [PATCH] Rename package awx to ansible-tower --- Makefile | 30 +++++++++++++++--------------- docs/build_system.md | 2 +- setup.py | 8 ++++---- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Makefile b/Makefile index 6b127cfb41..c1d2ab09a1 100644 --- a/Makefile +++ b/Makefile @@ -15,20 +15,20 @@ PACKER_LICENSE_FILE ?= test.json ifneq ($(OFFICIAL),yes) BUILD=dev$(DATE) -SDIST_TAR_FILE=awx-$(VERSION)-$(BUILD).tar.gz -SETUP_TAR_NAME=awx-setup-$(VERSION)-$(BUILD) +SDIST_TAR_FILE=ansible-tower-$(VERSION)-$(BUILD).tar.gz +SETUP_TAR_NAME=ansible-tower-setup-$(VERSION)-$(BUILD) RPM_PKG_RELEASE=$(BUILD) -DEB_BUILD_DIR=deb-build/awx-$(VERSION)-$(BUILD) +DEB_BUILD_DIR=deb-build/ansible-tower-$(VERSION)-$(BUILD) DEB_PKG_RELEASE=$(VERSION)-$(BUILD) -PACKER_BUILD_OPTS=-var-file=vars-awxkeys.json -var-file=vars-nightly.json +PACKER_BUILD_OPTS=-var-file=vars-aws-keys.json -var-file=vars-nightly.json else BUILD= -SDIST_TAR_FILE=awx-$(VERSION).tar.gz -SETUP_TAR_NAME=awx-setup-$(VERSION) +SDIST_TAR_FILE=ansible-tower-$(VERSION).tar.gz +SETUP_TAR_NAME=ansible-tower-setup-$(VERSION) RPM_PKG_RELEASE=$(RELEASE) -DEB_BUILD_DIR=deb-build/awx-$(VERSION) +DEB_BUILD_DIR=deb-build/ansible-tower-$(VERSION) DEB_PKG_RELEASE=$(VERSION)-$(RELEASE) -PACKER_BUILD_OPTS=-var-file=vars-awxkeys.json -var-file=vars-release.json +PACKER_BUILD_OPTS=-var-file=vars-aws-keys.json -var-file=vars-release.json endif .PHONY: clean rebase push requirements requirements_pypi develop refresh \ @@ -168,13 +168,13 @@ sdist: clean minjs rpmtar: sdist if [ "$(OFFICIAL)" != "yes" ] ; then \ (cd dist/ && tar zxf $(SDIST_TAR_FILE)) ; \ - (cd dist/ && mv awx-$(VERSION)-$(BUILD) awx-$(VERSION)) ; \ - (cd dist/ && tar czf awx-$(VERSION).tar.gz awx-$(VERSION)) ; \ + (cd dist/ && mv ansible-tower-$(VERSION)-$(BUILD) ansible-tower-$(VERSION)) ; \ + (cd dist/ && tar czf ansible-tower-$(VERSION).tar.gz ansible-tower-$(VERSION)) ; \ fi rpm: rpmtar @mkdir -p rpm-build - @cp dist/awx-$(VERSION).tar.gz rpm-build/ + @cp dist/ansible-tower-$(VERSION).tar.gz rpm-build/ @rpmbuild --define "_topdir %(pwd)/rpm-build" \ --define "_builddir %{_topdir}" \ --define "_rpmdir %{_topdir}" \ @@ -183,23 +183,23 @@ rpm: rpmtar --define '_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' \ --define "_sourcedir %{_topdir}" \ --define "_pkgrelease $(RPM_PKG_RELEASE)" \ - -ba packaging/rpm/awx.spec + -ba packaging/rpm/ansible-tower.spec deb: sdist @mkdir -p deb-build @cp dist/$(SDIST_TAR_FILE) deb-build/ (cd deb-build && tar zxf $(SDIST_TAR_FILE)) - (cd $(DEB_BUILD_DIR) && dh_make --indep --yes -f ../$(SDIST_TAR_FILE) -p awx-$(VERSION)) + (cd $(DEB_BUILD_DIR) && dh_make --indep --yes -f ../$(SDIST_TAR_FILE) -p ansible-tower-$(VERSION)) @rm -rf $(DEB_BUILD_DIR)/debian @cp -a packaging/debian $(DEB_BUILD_DIR)/ - @echo "awx_$(DEB_PKG_RELEASE).deb admin optional" > $(DEB_BUILD_DIR)/debian/realfiles + @echo "ansible-tower_$(DEB_PKG_RELEASE).deb admin optional" > $(DEB_BUILD_DIR)/debian/realfiles (cd $(DEB_BUILD_DIR) && PKG_RELEASE=$(DEB_PKG_RELEASE) dpkg-buildpackage -nc -us -uc -b --changes-option="-fdebian/realfiles") packer_license: @python -c "import json; fp = open('packaging/ami/license/$(PACKER_LICENSE_FILE)', 'w+'); json.dump(dict(instance_count=$(LICENSE_TIER)), fp); fp.close();" ami: packer_license - (cd packaging/ami && $(PACKER) build $(PACKER_BUILD_OPTS) -var "aws_license=$(PACKER_LICENSE_FILE)" awx.json) + (cd packaging/ami && $(PACKER) build $(PACKER_BUILD_OPTS) -var "aws_license=$(PACKER_LICENSE_FILE)" ansible-tower.json) install: $(PYTHON) setup.py install egg_info -b "" diff --git a/docs/build_system.md b/docs/build_system.md index 4c961b3926..d1a80d30f9 100644 --- a/docs/build_system.md +++ b/docs/build_system.md @@ -267,7 +267,7 @@ These nightly repositories can be used by the AWX setup playbook by running the As noted above, `OFFICIAL` builds are copied out to the production server, and can be found at the following location: - http://releases.ansible.com/awx/ + http://releases.ansible.com/ansible-tower/ The AWX setup playbook will use this repo location by default. diff --git a/setup.py b/setup.py index 3d089aa5e6..7e3284d4e2 100755 --- a/setup.py +++ b/setup.py @@ -105,11 +105,11 @@ class sdist_awx(_sdist, object): super(sdist_awx, self).make_distribution() setup( - name='awx', + name='ansible-tower', version=__version__.split("-")[0], # FIXME: Should keep full version here? - author='AnsibleWorks, Inc.', - author_email='support@ansibleworks.com', - description='AWX: API, UI and Task Engine for Ansible', + author='Ansible, Inc.', + author_email='support@ansible.com', + description='ansible-tower: API, UI and Task Engine for Ansible', long_description='AWX provides a web-based user interface, REST API and ' 'task engine built on top of Ansible', license='Proprietary',