mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
Rename package awx to ansible-tower
This commit is contained in:
parent
c18cb5a622
commit
fd8e7fe6cb
30
Makefile
30
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 ""
|
||||
|
@ -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.
|
||||
|
||||
|
8
setup.py
8
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',
|
||||
|
Loading…
Reference in New Issue
Block a user