1
0
mirror of https://github.com/openshift/openshift-ansible.git synced 2026-02-05 06:46:04 +01:00

47 Commits

Author SHA1 Message Date
Brent Barbachem
a6bd99588c Ansible core must be less than 2.17 for rhel 8 2024-07-09 20:09:27 -04:00
Brent Barbachem
ca88683e7e ** Update Doc reference to centos9 and ubi9 2024-07-01 10:35:43 -04:00
Brent Barbachem
e4c1cd53ef OCPBUGS-35209: Update Dockerfile to centos9 stream.
** Centos8 is End of Life as of May 31, 2024
2024-06-10 08:55:49 -04:00
Brent Barbachem
d61540b5d1 Ensure that pip3 is available.
** python3.11 is installed, but it was not referenced or linked. Add a symlink so that
the executable pip3 are available.
2024-02-16 09:19:30 -05:00
Brent Barbachem
bd075dac31 Dockerfile: Update versions
** Update dockerfile versions. Specifically trying to erase python version errors.
2024-02-06 15:47:23 -05:00
Patrick Dillon
50266317a7 Dockerfile: install dnf-command(config-manager)
It seems that the config-manager command is no longer installed by
default in the latest centos8 image, which results in this failure:

No such command: config-manager. Please use /usr/bin/yum --help
It could be a YUM plugin command, try: "yum install 'dnf-command(config-manager)'"

We use the config-manager command to inject the openshift-ansible rpm
into the ci image. For more details, see:
https://github.com/openshift/openshift-ansible/pull/10960
2023-04-05 10:24:45 -04:00
Pratik Raj
faefd2084c feat : use --no-cache-dir flag to pip in dockerfiles to save space
using the "--no-cache-dir" flag in pip install, make sure downloaded packages by pip don't cache on the system. This is a best practice that makes sure to fetch from a repo instead of using a local cached one. Further, in the case of Docker Containers, by restricting caching, we can reduce image size. In terms of stats, it depends upon the number of python packages multiplied by their respective size. e.g for heavy packages with a lot of dependencies it reduces a lot by don't cache pip packages.

Further, more detailed information can be found at

https://medium.com/sciforce/strategies-of-docker-images-optimization-2ca9cc5719b6

Signed-off-by: Pratik Raj <rajpratik71@gmail.com>
2022-10-18 22:02:25 +05:30
OpenShift Merge Robot
b1c268c8a1 Merge pull request #12411 from yselkowitz/ansible-rhel8
Remove unused origin repo
2022-07-22 00:35:00 +02:00
Yaakov Selkowitz
eeb1d8cf7a Remove unused origin repo from CI image 2022-07-19 23:52:39 -04:00
Yaakov Selkowitz
64643d3591 Port to ansible-core 2022-07-19 23:48:01 -04:00
Yaakov Selkowitz
2f025b7da3 Migrate CI to CentOS Stream 8 2022-06-24 12:24:22 -04:00
Russell Teague
886d967e61 Update specfile requirements
openshift-ansible package
* Add openshift-clients
* Remove unnecessary dependencies

openshift-ansible-test package
- Move python2-openshift to -test (not required by main package)
- Remove unnecessary dependencies

Updated images/installer/Dockerfile to remove openshift-clients
installation.
2019-05-09 09:41:00 -04:00
Russell Teague
cfddc272bb Use openshift-clients package name 2019-03-11 13:07:22 -04:00
Vadim Rutkovsky
b57953db88 openshift-ansible.spec: remove unnecessary deps
Require openssh-clients in spec for -tests
2019-03-07 10:46:06 +01:00
Vadim Rutkovsky
0410309335 Dockerfile: build using RPM packages
This should significantly improve build time and decrease image size
2019-03-07 10:45:50 +01:00
Russell Teague
f2ed434a71 Replace oc_* module usage with upstream k8s module 2019-03-06 13:11:28 -05:00
Vadim Rutkovsky
242a672182 Dockerfile: install ansible 2.7.8 2019-03-01 15:55:22 +01:00
Russell Teague
c184770f5a Require Ansible 2.7.7 2019-02-26 16:48:15 -05:00
Vadim Rutkovsky
a038d7de91 Use ansible 2.7.4 2018-12-13 08:57:23 +01:00
Vadim Rutkovsky
31e34b2aac Install boto3 from pip
Due to https://bugs.centos.org/view.php?id=15516 we can't use
python2-boto3
2018-12-05 23:31:51 +01:00
Vadim Rutkovsky
ab0e91ed85 Rework playbooks to setup 4.0 on GCP 2018-12-05 23:31:51 +01:00
Mangirdas
09eac92f0d rollback azure cli version and sas image config path 2018-10-29 16:57:23 +00:00
charlesakalugwu
2c5ece7865 pin azure cli to version 2.0.47 and fix start copy playbook task 2018-10-16 10:32:51 +02:00
Vadim Rutkovsky
91de02aae6 Dockerfile: install ansible 2.6 and remove epel-testing 2018-10-11 16:10:25 +02:00
Vadim Rutkovsky
0d7dceb60d Dockerfile: install ansible 2.6
ansible 2.7 has landed in EPEL Testing and broke additional repo setup 
among other things
2018-10-11 13:31:28 +02:00
Vadim Rutkovsky
95c564a82d python-scandir was renamed in EPEL
Use python2-scandir as a new name
2018-08-22 16:01:05 +02:00
Scott Dodson
0ff444237a google-cloud-sdk is x86_64 only 2018-07-05 16:03:39 -04:00
Scott Dodson
d9f294f56d Don't verify java-1.8.0-openjdk
This package fails RPM verification because of this bug
https://bugzilla.redhat.com/show_bug.cgi?id=1579446
2018-06-05 08:36:11 -04:00
Scott Dodson
0dad0f8e70 Add patch to installer image
We should really find a way to just install openshift-ansible via RPM
inside the container so we don't have to keep chasing dependencies in
two places
2018-05-17 14:03:32 -04:00
Kenny Woodson
300917e342 Azure: add playbook 2018-05-08 09:30:21 -04:00
Scott Dodson
b38ebe8ef7 fix 2018-05-07 16:43:19 -04:00
Russell Teague
926ec40fbb [1558689] Add iproute to origin-ansible image 2018-04-03 16:01:43 -04:00
Scott Dodson
1911249ca3 Enable epel-testing repo for ansible-2.4.3 until it goes live 2018-03-12 11:44:13 -04:00
Clayton Coleman
ba3c07e179 Temporarily fix Dockerfile until we can find a replacement package
EPEL reverted to an older apache-libcloud package, we need 2.2.1 for use
with GCP volumes.
2018-03-01 22:40:10 -05:00
Clayton Coleman
0bd289e824 Add python2-crypto package 2018-02-01 12:58:53 -05:00
Clayton Coleman
949f4eacd2 Move origin-gce roles and playbooks into openshift-ansible
This moves all core functionality into the openshift-ansible repo, adds
the necessary equivalent entrypoint to the openshift-ansible installer
image, and ensures the dynamic inventory mechanisms in openshift-ansible
continue to work.

Notable changes from origin-gce:

* playbook extensions changed to .yml
* dynamic inventory subdirectory created to prevent accidental use
* use the custom entrypoint entrypoint-gcp for this image
* move tasks into openshift_gcp role
2018-01-23 10:52:07 -05:00
Clayton Coleman
91c78123ab Directly select the ansible version
Also add libcloud (required for dynamic GCE lookup) and which (relied on
by gcloud).
2018-01-23 10:52:00 -05:00
Joel Diaz
f790cbb89a add python2-boto3 package for centos-based origin-ansible container image
There are modules in openshift-ansible that depend on boto3 (I see lib_utils/library/oo_iam_kms and lib_utils/library/oo_ec2_group). Add the dependency so that the origin-ansible container can succesfully run these modules.
2018-01-02 15:29:31 -05:00
Clayton Coleman
0d79c52823 Must directly specify google-cloud-sdk version
The upstream forces versions on packages, and rpm -V fails when it does
not match. Also add which, used by gcloud.
2017-12-21 11:18:10 -05:00
Clayton Coleman
79db104b17 Add gcloud to the installer image
The installer image will become our default cloud operations image for
tasks that overlap with ansible, and will also be the image for
provioning. We will eventually add others like awscli for support roles.
2017-12-19 14:32:32 -05:00
Luke Meyer
be63235aa9 Origin image build: add oc client
The oc client was left out with the move away from playbook2image.
However it is needed in the image for the `oc cluster up` use case for
installing logging or metrics.

This change adds oc via the latest signed and released client RPM,
which requires adding the centos-openshift-origin repo to the image.
2017-08-04 10:53:00 -04:00
juanvallejo
5497673a7b image builds: remove dependency on playbook2image
We do not need the builder functionality from playbook2image and the
resulting image was overly complicated, so this simply builds on
Centos/RHEL.
2017-07-18 14:02:10 -04:00
OpenShift Bot
51a4f39bf0 Merge pull request #4330 from codificat/20170531-image-rename
Merged by openshift-bot
2017-06-08 14:23:58 -04:00
Jeff Cantrill
c3312c7d01 fix up openshift-ansible for use with 'oc cluster up' 2017-06-06 13:33:23 -04:00
Pep Turró Mauri
32b7b0aba7 Rename container image to origin-ansible / ose-ansible
As discussed in #4279 the container image is being renamed to
openshift/origin-ansible (upstream) and openshift3/ose-ansible (downstream) for
the "oc cluster up" use case, and more generally to make it fit the
imageConfig.format configuration option.

This updates references to the image name accordingly.

Also updating references to playbook2image to account for recent moves of the
repo/image.
2017-06-02 12:31:50 +02:00
Pep Turró Mauri
4f95f55b60 Fix container image build references
Updating some files to account for recent changes:
  - Commit fbadeb4 moved the location of the Dockerfiles
  - playbook2image is now available from the openshift org
  - downstream image is building with boto 2.34

Adjusting image build scripts and documentation to match these changes.
2017-05-12 19:03:59 +02:00
jupierce
fbadeb45ce Moving Dockerfile content to images dir 2017-05-08 10:26:09 -04:00