Skip to content

Commit 81edec6

Browse files
committed
Remove atomic-openshift-utils
1 parent 615d71a commit 81edec6

32 files changed

+13
-4646
lines changed

.github/ISSUE_TEMPLATE.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ If you're operating from a **git clone**:
1717

1818
* The output of `git describe`
1919

20-
If you're running from playbooks installed via RPM or
21-
`atomic-openshift-utils`
20+
If you're running from playbooks installed via RPM
2221

23-
* The output of `rpm -q atomic-openshift-utils openshift-ansible`
22+
* The output of `rpm -q openshift-ansible`
2423

2524
Place the output between the code block below:
2625

File renamed without changes.
File renamed without changes.

images/installer/Dockerfile.rhel7

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ MAINTAINER OpenShift Team <[email protected]>
55
USER root
66

77
# Playbooks, roles, and their dependencies are installed from packages.
8-
RUN INSTALL_PKGS="atomic-openshift-utils atomic-openshift-clients python-boto python2-boto3 python2-crypto openssl java-1.8.0-openjdk-headless httpd-tools google-cloud-sdk" \
8+
RUN INSTALL_PKGS="openshift-ansible atomic-openshift-clients python-boto python2-boto3 python2-crypto openssl java-1.8.0-openjdk-headless httpd-tools google-cloud-sdk" \
99
&& yum repolist > /dev/null \
1010
&& yum-config-manager --enable rhel-7-server-ose-3.7-rpms \
1111
&& yum-config-manager --enable rhel-7-server-rh-common-rpms \
@@ -30,7 +30,7 @@ LABEL name="openshift3/ose-ansible" \
3030
ENV USER_UID=1001 \
3131
HOME=/opt/app-root/src \
3232
WORK_DIR=/usr/share/ansible/openshift-ansible \
33-
ANSIBLE_CONFIG=/usr/share/atomic-openshift-utils/ansible.cfg \
33+
ANSIBLE_CONFIG=/usr/share/ansible/openshift-ansible/ansible.cfg \
3434
OPTS="-v"
3535

3636
# Add image scripts and files for running as a system container

images/installer/root/exports/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"VAR_LOG_OPENSHIFT_LOG": "/var/log/ansible.log",
77
"PLAYBOOK_FILE": "/usr/share/ansible/openshift-ansible/playbooks/deploy_cluster.yml",
88
"HOME_ROOT": "/root",
9-
"ANSIBLE_CONFIG": "/usr/share/atomic-openshift-utils/ansible.cfg",
9+
"ANSIBLE_CONFIG": "/usr/share/ansible/openshift-ansible/ansible.cfg",
1010
"INVENTORY_FILE": "/dev/null"
1111
}
1212
}

openshift-ansible.spec

+5-41
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Requires: tar
2424
Requires: %{name}-docs = %{version}-%{release}
2525
Requires: %{name}-playbooks = %{version}-%{release}
2626
Requires: %{name}-roles = %{version}-%{release}
27+
Obsoletes: atomic-openshift-utils <= 3.10
2728
Requires: java-1.8.0-openjdk-headless
2829
Requires: httpd-tools
2930
Requires: libselinux-python
@@ -42,16 +43,13 @@ for Openshift and Atomic Enterprise.
4243

4344
%build
4445

45-
# atomic-openshift-utils install
46-
pushd utils
47-
%{__python} setup.py build
48-
popd
49-
5046
%install
5147
# Base openshift-ansible install
5248
mkdir -p %{buildroot}%{_datadir}/%{name}
5349
mkdir -p %{buildroot}%{_datadir}/ansible/%{name}/inventory
5450
cp -rp inventory/dynamic %{buildroot}%{_datadir}/ansible/%{name}/inventory
51+
cp etc/ansible.cfg %{buildroot}%{_datadir}/ansible/%{name}/ansible.cfg
52+
cp etc/ansible-quiet.cfg %{buildroot}%{_datadir}/ansible/%{name}/ansible-quiet.cfg
5553

5654
# openshift-ansible-bin install
5755
mkdir -p %{buildroot}%{_bindir}
@@ -83,25 +81,15 @@ rm -rf %{buildroot}%{_datadir}/ansible/%{name}/roles/contiv/*
8381
# touch a file in contiv so that it can be added to SCM's
8482
touch %{buildroot}%{_datadir}/ansible/%{name}/roles/contiv/.empty_dir
8583

86-
# atomic-openshift-utils install
87-
pushd utils
88-
%{__python} setup.py install --skip-build --root %{buildroot}
89-
# Remove this line once the name change has happened
90-
mv -f %{buildroot}%{_bindir}/oo-install %{buildroot}%{_bindir}/atomic-openshift-installer
91-
mkdir -p %{buildroot}%{_datadir}/atomic-openshift-utils/
92-
cp etc/ansible.cfg %{buildroot}%{_datadir}/atomic-openshift-utils/ansible.cfg
93-
mkdir -p %{buildroot}%{_mandir}/man1/
94-
cp -v docs/man/man1/atomic-openshift-installer.1 %{buildroot}%{_mandir}/man1/
95-
cp etc/ansible-quiet.cfg %{buildroot}%{_datadir}/atomic-openshift-utils/ansible-quiet.cfg
96-
popd
97-
9884
# Base openshift-ansible files
9985
%files
10086
%doc README*
10187
%license LICENSE
10288
%dir %{_datadir}/ansible/%{name}
10389
%{_datadir}/ansible/%{name}/inventory/dynamic
10490
%ghost %{_datadir}/ansible/%{name}/playbooks/common/openshift-master/library.rpmmoved
91+
%{_datadir}/ansible/%{name}/ansible.cfg
92+
%{_datadir}/ansible/%{name}/ansible-quiet.cfg
10593

10694
# ----------------------------------------------------------------------------------
10795
# openshift-ansible-docs subpackage
@@ -175,30 +163,6 @@ BuildArch: noarch
175163
%files roles
176164
%{_datadir}/ansible/%{name}/roles
177165

178-
# ----------------------------------------------------------------------------------
179-
# atomic-openshift-utils subpackage
180-
# ----------------------------------------------------------------------------------
181-
182-
%package -n atomic-openshift-utils
183-
Summary: Atomic OpenShift Utilities
184-
BuildRequires: python-setuptools
185-
Requires: %{name}-playbooks = %{version}-%{release}
186-
Requires: python-click
187-
Requires: python-setuptools
188-
Requires: PyYAML
189-
BuildArch: noarch
190-
191-
%description -n atomic-openshift-utils
192-
Atomic OpenShift Utilities includes
193-
- atomic-openshift-installer
194-
- other utilities
195-
196-
%files -n atomic-openshift-utils
197-
%{python_sitelib}/ooinstall*
198-
%{_bindir}/atomic-openshift-installer
199-
%{_datadir}/atomic-openshift-utils/ansible.cfg
200-
%{_mandir}/man1/*
201-
%{_datadir}/atomic-openshift-utils/ansible-quiet.cfg
202166

203167

204168
%changelog

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
universal=1
66

77
[yamllint]
8-
excludes=.tox,utils,files
8+
excludes=.tox,files

setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class OpenShiftAnsiblePylint(PylintCommand):
179179
# pylint: disable=no-self-use
180180
def find_all_modules(self):
181181
''' find all python files to test '''
182-
exclude_dirs = ('.tox', 'utils', 'test', 'tests', 'git')
182+
exclude_dirs = ('.tox', 'test', 'tests', 'git')
183183
modules = []
184184
for match in find_files(os.getcwd(), exclude_dirs, None, r'\.py$'):
185185
package = os.path.basename(match).replace('.py', '')
@@ -222,8 +222,7 @@ def run(self):
222222
generate_files = find_files('roles',
223223
['inventory',
224224
'test',
225-
'playbooks',
226-
'utils'],
225+
'playbooks'],
227226
None,
228227
'generate.py$')
229228

utils/.gitignore

-48
This file was deleted.

utils/README.md

-18
This file was deleted.

utils/docs/config.md

-84
This file was deleted.

0 commit comments

Comments
 (0)