Add CentOS (#12)

* Add CentOS 7

* Fix rawhide boot

* Test locale versions
This commit is contained in:
Greg Hellings
2022-06-22 10:00:04 -05:00
committed by GitHub
parent 291ebbf82c
commit 0a3832d2c4
34 changed files with 255 additions and 24 deletions
@@ -0,0 +1,5 @@
driver:
name: containers
platforms:
- name: test-centos7-locale
image: centos:7
@@ -0,0 +1,5 @@
driver:
name: containers
platforms:
- name: test-centos8-locale
image: quay.io/centos/centos:stream8
@@ -0,0 +1,9 @@
- hosts: all
pre_tasks:
- name: Install necessary packge
become: true
package:
name: glibc-common
state: present
roles:
- locale
+1 -1
View File
@@ -2,7 +2,7 @@
become: true
ansible.builtin.shell: |-
set -e
yum --enablerepo=epel clean all
yum clean all
yum history new
truncate -c -s 0 /var/log/yum.log
changed_when: false
-8
View File
@@ -1,8 +0,0 @@
- name: remove unnecessesary packages
become: true
ansible.builtin.package:
name:
- perl
- gcc
- kernel-devel
state: absent
+2 -1
View File
@@ -6,6 +6,7 @@
- perl
- gcc
- kernel-devel
- net-tools
- kernel-headers
- bzip2
- epel-release
state: absent
@@ -0,0 +1,5 @@
driver:
name: containers
platforms:
- name: test-centos7-locale
image: centos:7
@@ -0,0 +1,5 @@
driver:
name: containers
platforms:
- name: test-centos8-locale
image: quay.io/centos/centos:stream8
@@ -0,0 +1,5 @@
driver:
name: containers
platforms:
- name: test-centos9-locale
image: quay.io/centos/centos:stream9
@@ -0,0 +1,9 @@
- hosts: all
pre_tasks:
- name: Install necessary packge
become: true
package:
name: glibc-common
state: present
roles:
- locale
+5 -3
View File
@@ -1,9 +1,11 @@
- name: update locale info
become: true
ansible.builtin.shell: |
set -eo pipefail
localedef --list-archive | grep -a -v en_US.utf8 | xargs sudo localedef --delete-from-archive
set -exo pipefail
localedef --list-archive | ( grep -a -v en_US.utf8 || printf '' ) | xargs -r sudo localedef --delete-from-archive
cp /usr/lib/locale/locale-archive{,.tmpl}
build-locale-archive
when: >
ansible_facts['distribution'] in ['CentOS']
( ansible_facts['distribution'] in ['CentOS'] ) and
( ansible_facts['distribution_major_version'] is version('8', '<') )
changed_when: false
+2
View File
@@ -2,8 +2,10 @@ virtualbox_packages:
- bzip2
- dkms
- kernel-devel
- kernel-headers
- make
- perl
- gcc
virtualbox_services:
- dkms
virtualbox_from_iso: true
-1
View File
@@ -2,4 +2,3 @@ virtualbox_packages:
- linux-image-amd64
virtualbox_services: []
virtualbox_from_iso: false
virtualbox_iso_location: "{{ ansible_user_dir }}/VBoxGuestAdditions.iso"
@@ -5,4 +5,3 @@ virtualbox_packages:
- make
virtualbox_services: []
virtualbox_from_iso: true
virtualbox_iso_location: "{{ ansible_user_dir }}/VBoxGuestAdditions.iso"
@@ -5,4 +5,3 @@ virtualbox_packages:
- make
virtualbox_services: []
virtualbox_from_iso: true
virtualbox_iso_location: "{{ ansible_user_dir }}/VBoxGuestAdditions.iso"
-1
View File
@@ -11,6 +11,5 @@ virtualbox_packages:
- dkms
virtualbox_services:
- dkms
virtualbox_iso_location: "{{ ansible_user_dir }}/VBoxGuestAdditions.iso"
virtualbox_from_iso: true
virtualbox_pre_commands: []
+1
View File
@@ -0,0 +1 @@
virtualbox_iso_location: "{{ ansible_user_dir }}/VBoxGuestAdditions.iso"