Skip to content

Commit 5768660

Browse files
belphegor666gatblau
authored andcommitted
Centos 7 6 refresh (#8)
* initial OS and package updates Committer: belphegor666 <[email protected]> On branch centos_7-6_refresh Changes to be committed: modified: Vagrantfile modified: build/fetch.sh modified: build/http/ks.cfg modified: build/roles/cntlm/tasks/main.yml modified: build/roles/desktop-background/files/europa.jpg modified: build/roles/docker-compose/tasks/main.yml modified: build/roles/eclipse/vars/main.yml new file: build/roles/ffmpeg/tasks/main.yml new file: build/roles/firefox/tasks/main.yml modified: build/roles/forge/vars/main.yml modified: build/roles/git/tasks/main.yml modified: build/roles/git/vars/main.yml modified: build/roles/groovy/vars/main.yml modified: build/roles/intellij/tasks/main.yml new file: build/roles/intellij/vars/main.yml deleted: build/roles/jdk-8/vars/main.yml modified: build/roles/maven/vars/main.yml modified: build/roles/mysql-workbench/tasks/main.yml new file: build/roles/open-jdk-12/tasks/main.yml new file: build/roles/open-jdk-12/vars/main.yml renamed: build/roles/jdk-8/tasks/main.yml -> build/roles/oracle-jdk-12/tasks/main.yml new file: build/roles/oracle-jdk-12/vars/main.yml modified: build/roles/origin-client/tasks/main.yml modified: build/roles/origin-client/vars/main.yml modified: build/roles/pip/tasks/main.yml modified: build/roles/post-build/tasks/main.yml new file: build/roles/pre-build/files/version modified: build/roles/pre-build/tasks/main.yml modified: build/roles/pre-build/vars/main.yml new file: build/roles/python/tasks/main.yml modified: build/roles/sbt/vars/main.yml modified: build/roles/scalaide/tasks/main.yml modified: build/roles/scalaide/vars/main.yml modified: build/roles/vs-code/vars/main.yml modified: build/site.yml modified: build/tool.yml modified: europa.vbox.json * refactor to remove symlink cross-system compatibility * Updated readme.md
1 parent 4d4f888 commit 5768660

File tree

39 files changed

+287
-98
lines changed

39 files changed

+287
-98
lines changed

Vagrantfile

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ chmod 0440 /etc/sudoers.d/europa
1111
SCRIPT
1212

1313
Vagrant.configure(2) do |config|
14-
config.vm.box = "bento/centos-7.3"
14+
config.vm.box = "bento/centos-7.6"
15+
config.vm.box_version = "201812.27.0"
1516
config.ssh.insert_key = false
1617
config.vm.provider "virtualbox" do |vbox|
1718
vbox.memory = 4096
@@ -23,15 +24,18 @@ Vagrant.configure(2) do |config|
2324
config.vm.hostname = "europa"
2425
config.vm.define :europa do |europa| end
2526
config.vm.provision "shell", inline: $script
26-
config.vm.provision "ansible" do |ansible|
27+
28+
config.vm.synced_folder "./cache", "/vagrant/build/cache"
29+
30+
config.vm.provision "ansible_local" do |ansible|
2731
ansible.playbook = "build/site.yml"
28-
ansible.inventory_path = "build/inv-remote.txt"
29-
ansible.sudo = true
32+
# ansible.inventory_path = "build/inv-remote.txt"
33+
ansible.become = true
3034
ansible.verbose = "vv"
3135
ansible.skip_tags = "gnome"
32-
ansible.extra_vars = {
33-
ansible_ssh_user: 'vagrant',
34-
ansible_ssh_private_key_file: "~/.vagrant.d/insecure_private_key"
35-
}
36+
# ansible.extra_vars = {
37+
# ansible_ssh_user: 'vagrant',
38+
# ansible_ssh_private_key_file: "~/.vagrant.d/insecure_private_key"
39+
# }
3640
end
37-
end
41+
end

build/cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/fetch.sh

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fi
3535

3636
# removes all files with zero length size which were the result of previous failed downloads
3737
remove_empty_files() {
38-
find $ROOT. -size 0c -delete
38+
find $ROOT. -size 0c -type f -delete
3939
}
4040

4141
download() {
@@ -72,25 +72,28 @@ remove_empty_files
7272

7373
# download the following files to the root folder if they do not exist
7474
download "https://dl.fedoraproject.org/pub/epel/" "epel-release-latest-7.noarch.rpm"
75-
download "http://mirror.centos.org/centos/7/os/x86_64/Packages/" "unzip-6.0-16.el7.x86_64.rpm"
76-
download "http://mirror.centos.org/centos/7/os/x86_64/Packages/" "system-config-language-1.4.0-7.el7.noarch.rpm"
77-
download "http://download.oracle.com/otn-pub/java/jdk/8u144-b01/" "jdk-8u144-linux-x64.rpm" "Cookie: oraclelicense=accept-securebackup-cookie"
75+
#download "http://mirror.centos.org/centos/7/os/x86_64/Packages/" "unzip-6.0-19.el7.x86_64.rpm"
76+
download "http://mirror.centos.org/centos/7/os/x86_64/Packages/" "system-config-language-1.4.0-9.el7.noarch.rpm"
77+
downloadTo "https://download.oracle.com/otn-pub/java/jdk/12.0.1+12/69cfe15208a647278a19ef0990eea691/jdk-12.0.1_linux-x64_bin.rpm?AuthParam=1556778291_d3af0749ba8b1728edb4afae9bfebec2" "jdk-12.0.1_linux-x64_bin.rpm"
78+
download "https://download.oracle.com/java/GA/jdk12.0.1/69cfe15208a647278a19ef0990eea691/12/GPL/" "openjdk-12.0.1_linux-x64_bin.tar.gz"
79+
# for future reference, alternate provider of 'free' OpenJDK
80+
#download "https://github.com/AdoptOpenJDK/openjdk12-binaries/releases/download/jdk-12.0.1%2B12/" "OpenJDK12U-jdk_x64_linux_hotspot_12.0.1_12.tar.gz"
7881
download "https://dl.google.com/linux/direct/" "google-chrome-stable_current_x86_64.rpm"
79-
downloadTo "https://cocl.us/sbt01316zip" "sbt-0.13.16.zip"
82+
downloadTo "https://piccolo.link/sbt-1.2.8.zip" "sbt-1.2.8.zip"
8083
download "https://services.gradle.org/distributions/" "gradle-4.0.2-bin.zip"
81-
download "http://www-eu.apache.org/dist/maven/maven-3/3.5.0/binaries/" "apache-maven-3.5.0-bin.zip"
84+
download "http://www-eu.apache.org/dist/maven/maven-3/3.6.1/binaries/" "apache-maven-3.6.1-bin.zip"
8285
download "http://opensource.wandisco.com/centos/7/git/x86_64/" "wandisco-git-release-7-2.noarch.rpm"
83-
download "http://opensource.wandisco.com/centos/7/git/x86_64/" "git-2.8.0-1.WANdisco.308.x86_64.rpm"
84-
download "http://opensource.wandisco.com/centos/7/git/x86_64/" "perl-Git-2.8.0-1.WANdisco.308.noarch.rpm"
85-
download "http://dl.bintray.com/groovy/maven/" "apache-groovy-binary-2.4.12.zip"
86-
download "https://download-cf.jetbrains.com/idea/" "ideaIC-2017.2.2.tar.gz"
87-
download "http://downloads.typesafe.com/scalaide-pack/4.6.1-vfinal-neon-212-20170609/" "scala-SDK-4.6.1-vfinal-2.12-linux.gtk.x86_64.tar.gz"
88-
download "http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/R/" "eclipse-jee-oxygen-R-linux-gtk-x86_64.tar.gz"
89-
download "http://cdn.mysql.com//Downloads/MySQLGUITools/" "mysql-workbench-community-6.3.9-1.el7.x86_64.rpm"
90-
download "https://github.com/atom/atom/releases/download/v1.18.0/" "atom.x86_64.rpm"
86+
download "http://opensource.wandisco.com/centos/7/git/x86_64/" "git-2.18.0-1.WANdisco.402.x86_64.rpm"
87+
download "http://opensource.wandisco.com/centos/7/git/x86_64/" "perl-Git-2.18.0-1.WANdisco.402.noarch.rpm"
88+
download "http://dl.bintray.com/groovy/maven/" "apache-groovy-binary-2.5.6.zip"
89+
download "https://download-cf.jetbrains.com/idea/" "ideaIC-2019.1.1-jbr11.tar.gz"
90+
download "http://downloads.typesafe.com/scalaide-pack/4.7.0-vfinal-oxygen-212-20170929/" "scala-SDK-4.7.0-vfinal-2.12-linux.gtk.x86_64.tar.gz"
91+
download "http://ftp.halifax.rwth-aachen.de/eclipse//technology/epp/downloads/release/2019-03/R/" "eclipse-jee-2019-03-R-linux-gtk-x86_64.tar.gz"
92+
download "https://cdn.mysql.com//Downloads/MySQLGUITools/" "mysql-workbench-community-8.0.16-1.el7.x86_64.rpm"
93+
download "https://github.com/atom/atom/releases/download/v1.36.1/" "atom.x86_64.rpm"
9194
# download "https://github.com/openshift/origin/releases/download/v3.6.0/" "openshift-origin-server-v3.6.0-c4dd4cf-linux-64bit.tar.gz"
92-
download "https://github.com/openshift/origin/releases/download/v3.6.0/" "openshift-origin-client-tools-v3.6.0-c4dd4cf-linux-64bit.tar.gz"
93-
download "https://az764295.vo.msecnd.net/stable/cb82febafda0c8c199b9201ad274e25d9a76874e/" "code-1.14.2-1500507068.el7.x86_64.rpm"
94-
downloadTo "https://sourceforge.net/projects/cntlm/files/cntlm/cntlm%200.92.3/cntlm-0.92.3-1.x86_64.rpm/download" "cntlm-0.92.3-1.x86_64.rpm"
95-
download "http://downloads.jboss.org/forge/releases/3.7.2.Final/" "forge-distribution-3.7.2.Final-offline.zip"
96-
downloadTo "https://github.com/fabric8io/gofabric8/releases/download/v0.4.146/gofabric8-linux-amd64" "gofabric8"
95+
download "https://github.com/openshift/origin/releases/download/v3.11.0/" "openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz"
96+
download "https://az764295.vo.msecnd.net/stable/51b0b28134d51361cf996d2f0a1c698247aeabd8/" "code-1.33.1-1554971173.el7.x86_64.rpm"
97+
#downloadTo "https://sourceforge.net/projects/cntlm/files/cntlm/cntlm%200.92.3/cntlm-0.92.3-1.x86_64.rpm/download" "cntlm-0.92.3-1.x86_64.rpm"
98+
download "http://downloads.jboss.org/forge/releases/3.9.2.Final/" "forge-distribution-3.9.2.Final-offline.zip"
99+
downloadTo "https://github.com/fabric8io/gofabric8/releases/download/v0.4.176/gofabric8-linux-amd64" "gofabric8"

build/http/ks.cfg

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,17 @@ eula --agreed
6868
reboot
6969

7070
# Define online repositories for packages to install
71-
url --url http://mirror.centos.org/centos/7.3.1611/os/x86_64/
71+
url --url http://mirror.centos.org/centos/7.6.1810/os/x86_64/
7272
repo --name=epel --baseurl=http://dl.fedoraproject.org/pub/epel/7/x86_64/
73-
repo --name=updates --baseurl=http://mirror.centos.org/centos/7.3.1611/updates/x86_64/
73+
repo --name=updates --baseurl=http://mirror.centos.org/centos/7.6.1810/updates/x86_64/
7474

7575
# Define the manifest of rpm packages to install
76-
%packages --nobase
77-
@core
76+
# %packages --nobase
77+
%packages
78+
@ Core #@core
79+
@ Base #@base
80+
@ X Window System #@x11
81+
@ GNOME #@gnome-desktop - A GNOME desktop
7882
# Required by Virtual Box Guest Additions
7983
kernel-devel
8084
kernel-headers
@@ -83,12 +87,23 @@ repo --name=updates --baseurl=http://mirror.centos.org/centos/7.3.1611/updates/x
8387
bzip2
8488
wget
8589
openssh-clients
86-
nano
87-
htop
90+
# nano
91+
# htop
8892
%end
8993

9094
%post
9195
exec < /dev/console > /dev/console
96+
# exec < /dev/tty3 > /dev/tty3
97+
98+
echo "\n"
99+
echo "################################"
100+
echo "# Running Post Configuration #"
101+
echo "################################"
102+
echo "\n"
103+
104+
echo "\nUpdating packages...\n"
105+
yum -y upgrade
106+
92107
echo "\nTurning off unneeded services...\n"
93108
chkconfig sendmail off
94109
chkconfig vbox-add-x11 off
@@ -106,9 +121,15 @@ repo --name=updates --baseurl=http://mirror.centos.org/centos/7.3.1611/updates/x
106121
printf "\nDisabling TTY so that sudo can be called without users being logged in a text only console...\n"
107122
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
108123

109-
printf "\nInstalling the GNOME Desktop...\n"
110-
yum -y groupinstall "gnome-desktop" "graphical-admin-tools"
124+
#printf "\nInstalling the GNOME Desktop...\n"
125+
#yum -y groupinstall "gnome-desktop" "graphical-admin-tools"
126+
127+
printf "\nDONE Sleeping for 10 seconds...\n"
128+
sleep 10
111129

112-
printf "\nEnabling the GUI on system start...\n"
130+
# Use graphical interface
131+
xconfig --defaultdesktop=GNOME --startxonboot
132+
133+
# printf "\nEnabling the GUI on system start...\n"
113134
systemctl set-default graphical.target
114135
%end

build/roles/cntlm/tasks/main.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
---
2-
- include: "rpm.yml"
3-
vars:
4-
description: "CNTLM"
5-
rpmfile: "cntlm-0.92.3-1.x86_64.rpm"
2+
#- include: "rpm.yml"
3+
# vars:
4+
# description: "CNTLM"
5+
# rpmfile: "cntlm-0.92.3-1.x86_64.rpm"
6+
- name: Installing cntlm
7+
yum:
8+
name: cntlm
9+
state: latest
10+
11+
- name: Configure init.d file if not exists
12+
copy:
13+
content: "#!/bin/sh"
14+
dest: /etc/init.d/cntlmd
15+
force: no
16+
group: root
17+
owner: root
18+
mode: 0555
19+
become: yes
620

721
- name: Fixing init.d file
822
lineinfile:
2.42 MB
Loading

build/roles/docker-compose/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
pip:
44
name: "docker-compose"
55

6-
- command: "pip install --upgrade docker-compose"
6+
#- command: "pip install --upgrade docker-compose"
7+
#- command: "sudo pip install docker-compose"

build/roles/eclipse/vars/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
zip_filename: "eclipse-jee-oxygen-R-linux-gtk-x86_64.tar.gz"
2+
zip_filename: "eclipse-jee-2019-03-R-linux-gtk-x86_64.tar.gz"

build/roles/ffmpeg/tasks/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
- name: Downloading Nux repo key
3+
shell: "rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro"
4+
become: yes
5+
6+
- name: Downloading Nux repo
7+
shell: "rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm"
8+
become: yes
9+
10+
- name: Installing ffmpeg
11+
yum:
12+
name: ffmpeg, ffmpeg-devel
13+
state: latest

build/roles/firefox/tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
- name: Installing Firefox Browser
3+
yum:
4+
name: "firefox"
5+
state: "latest"

0 commit comments

Comments
 (0)