diff --git a/book-config-oel-6-7.sublime-project b/book-config-oel-6-7.sublime-project deleted file mode 100644 index e5303ed..0000000 --- a/book-config-oel-6-7.sublime-project +++ /dev/null @@ -1,11 +0,0 @@ -{ - "folders": - [ - { - "path": "." - }, - { - "path": "/media/merlin/windows/Users/youmghar/Documents/3_Scripts/preparation/preparation_20190131" - } - ] -} diff --git a/configure-host-oel7/files/bash_aliases b/configure-host-oel7/files/bash_aliases index 3253ec2..18d2168 100644 --- a/configure-host-oel7/files/bash_aliases +++ b/configure-host-oel7/files/bash_aliases @@ -1,3 +1,20 @@ -# bash_aliases +# aliases bash +alias egrep='egrep --color=auto' +alias fgrep='fgrep --color=auto' +alias grep='grep --color=auto' + +alias l.='ls -d .* --color=auto' +alias la='ls -latra' +alias ll='ls -l --color=auto' +alias ls='ls --color=auto' + +alias tailf='tail -100f' + +# alias oracle +alias sqlplus='rlwrap sqlplus' +alias rman='rlwrap rman' +alias adrci='rlwrap adrci' +alias asmcmd='rlwrap asmcmd' +alias dgmgrl='rlwrap dgmgrl' alias tns='cd $ORACLE_HOME/network/admin' alias oh='cd $ORACLE_HOME' \ No newline at end of file diff --git a/configure-host-oel7/files/epel.repo b/configure-host-oel7/files/epel.repo deleted file mode 100755 index 2b61395..0000000 --- a/configure-host-oel7/files/epel.repo +++ /dev/null @@ -1,26 +0,0 @@ -[epel] -name=Extra Packages for Enterprise Linux 6 - $basearch -#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch -mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch -failovermethod=priority -enabled=1 -gpgcheck=1 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 - -[epel-debuginfo] -name=Extra Packages for Enterprise Linux 6 - $basearch - Debug -#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug -mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch -failovermethod=priority -enabled=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 -gpgcheck=1 - -[epel-source] -name=Extra Packages for Enterprise Linux 6 - $basearch - Source -#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS -mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch -failovermethod=priority -enabled=0 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 -gpgcheck=1 diff --git a/configure-host-oel7/files/libselinux-2.0.94-5.8.el6.x86_64.rpm b/configure-host-oel7/files/libselinux-2.0.94-5.8.el6.x86_64.rpm deleted file mode 100755 index e69de29..0000000 diff --git a/configure-host-oel7/files/libselinux-python-2.0.94-5.8.el6.x86_64.rpm b/configure-host-oel7/files/libselinux-python-2.0.94-5.8.el6.x86_64.rpm deleted file mode 100755 index df90aba..0000000 Binary files a/configure-host-oel7/files/libselinux-python-2.0.94-5.8.el6.x86_64.rpm and /dev/null differ diff --git a/configure-host-oel7/files/public-yum-ol6.repo b/configure-host-oel7/files/public-yum-ol6.repo deleted file mode 100755 index d003ace..0000000 --- a/configure-host-oel7/files/public-yum-ol6.repo +++ /dev/null @@ -1,69 +0,0 @@ -[public_ol6_latest] -name=Oracle Linux $releasever Latest ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/ -gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -gpgcheck=1 -enabled=1 - -[public_ol6_ga_base] -name=Oracle Linux $releasever GA installation media copy ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/ -gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -gpgcheck=1 -enabled=0 - -[public_ol6_u1_base] -name=Oracle Linux $releasever Update 1 installation media copy ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/ -gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -gpgcheck=1 -enabled=0 - -[public_ol6_u2_base] -name=Oracle Linux $releasever Update 2 installation media copy ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/2/base/$basearch/ -gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -gpgcheck=1 -enabled=0 - -[public_ol6_u3_base] -name=Oracle Linux $releasever Update 3 installation media copy ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/3/base/$basearch/ -gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -gpgcheck=1 -enabled=0 - -[public_ol6_u4_base] -name=Oracle Linux $releasever Update 4 installation media copy ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/4/base/$basearch/ -gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -gpgcheck=1 -enabled=0 - -[public_ol6_u5_base] -name=Oracle Linux $releasever Update 5 installation media copy ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/5/base/$basearch/ -gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -gpgcheck=1 -enabled=0 - -[public_ol6_UEK_latest] -name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/$basearch/ -gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -gpgcheck=1 -enabled=$uek - -[public_ol6_UEKR3_latest] -name=Unbreakable Enterprise Kernel Release 3 for Oracle Linux $releasever ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEKR3/latest/$basearch/ -gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -gpgcheck=1 -enabled=$uekr3 - -[public_ol6_UEK_base] -name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/$basearch/ -gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -gpgcheck=1 -enabled=0 diff --git a/configure-host-oel7/files/public-yum-ol7.repo b/configure-host-oel7/files/public-yum-ol7.repo deleted file mode 100755 index 2a2da48..0000000 --- a/configure-host-oel7/files/public-yum-ol7.repo +++ /dev/null @@ -1,72 +0,0 @@ -[ol7_latest] -name=Oracle Linux $releasever Latest ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/latest/$basearch/ -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle -gpgcheck=1 -enabled=1 - -[ol7_u0_base] -name=Oracle Linux $releasever GA installation media copy ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/0/base/$basearch/ -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle -gpgcheck=1 -enabled=0 - -[ol7_u1_base] -name=Oracle Linux $releasever Update 1 installation media copy ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/1/base/$basearch/ -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle -gpgcheck=1 -enabled=0 - -[ol7_UEKR3] -name=Latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux $releasever ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR3/$basearch/ -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle -gpgcheck=1 -enabled=1 - -[ol7_optional_latest] -name=Oracle Linux $releasever Optional Latest ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/optional/latest/$basearch/ -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle -gpgcheck=1 -enabled=0 - -[ol7_addons] -name=Oracle Linux $releasever Add ons ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/addons/$basearch/ -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle -gpgcheck=1 -enabled=0 - -[ol7_UEKR3_OFED20] -name=OFED supporting tool packages for Unbreakable Enterprise Kernel on Oracle Linux 7 ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/UEKR3_OFED20/$basearch/ -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle -gpgcheck=1 -enabled=0 -priority=20 - -[ol7_MySQL56] -name=MySQL 5.6 for Oracle Linux 7 ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/MySQL56/$basearch/ -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle -gpgcheck=1 -enabled=0 - -[ol7_MySQL55] -name=MySQL 5.5 for Oracle Linux 7 ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/MySQL55/$basearch/ -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle -gpgcheck=1 -enabled=0 - - -[ol7_spacewalk22_client] -name=Spacewalk Client 2.2 for Oracle Linux 7 ($basearch) -baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/spacewalk22/client/$basearch/ -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle -gpgcheck=1 -enabled=0 - diff --git a/configure-host-oel7/files/rlwrap-0.44-1.el8.x86_64.rpm b/configure-host-oel7/files/rlwrap-0.44-1.el8.x86_64.rpm new file mode 100644 index 0000000..fa4d77b Binary files /dev/null and b/configure-host-oel7/files/rlwrap-0.44-1.el8.x86_64.rpm differ diff --git a/configure-host-oel7/tasks/creation_repertoire.yml b/configure-host-oel7/tasks/creation_repertoire.yml index 1cfd690..5dfb99d 100755 --- a/configure-host-oel7/tasks/creation_repertoire.yml +++ b/configure-host-oel7/tasks/creation_repertoire.yml @@ -1,6 +1,18 @@ --- # création des répertoires Oracle # +# mkdir -p /u01/app/oracle +# mkdir -p /u01/app/oraInventory +# chown -R oracle:oinstall /u01/app/oracle +# chown -R oracle:oinstall /u01/app/oraInventory +# chmod -R 775 /u01/app + +# su - oracle +# mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1 +# cd /u01/app/oracle/product/19.0.0/dbhome_1 +# unzip -q /tmp/db_home.zip +# cd /u01/app/oracle/product/19.0.0/dbhome_1 +# ./runInstaller - name: Création du répertoire oracle file: dest={{ directoriesdb }} mode=775 owner={{ oracle_user }} group={{ oracle_group }} state=directory diff --git a/configure-host-oel7/tasks/main.yml b/configure-host-oel7/tasks/main.yml index e2184e2..51c9139 100755 --- a/configure-host-oel7/tasks/main.yml +++ b/configure-host-oel7/tasks/main.yml @@ -35,7 +35,12 @@ # --------------------------------------------------- - name: Ajout du fichier z_oracle dans /etc/profile.d copy: src=z_oracle.sh dest=/etc/profile.d/z_oracle.sh owner=root mode=644 - tags: z_oracle + + # --------------------------------------------------- + # configuration Linux : aliases bash & oracle + # --------------------------------------------------- + - name: Ajout du fichier z_oracle dans /etc/profile.d + copy: src=bash_aliases dest=/etc/profile.d/bash_aliases.sh owner=root mode=644 # --------------------------------------------------- # configuration Linux : Sécurisation @@ -47,14 +52,10 @@ # --------------------------------------------------- - name: Installation des packages pour Oracleeee yum: name={{ packages }} state=installed skip_broken=true -# with_items: vars: packages: - bc - binutils -# - compat-libcap1 -# - compat-libstdc++-33 -# - compat-libstdc++-33*i686 - elfutils-libelf-devel - gcc - gcc-c++ @@ -95,7 +96,6 @@ - sysstat - unixODBC tags: os_packages -# when: install_os_packages and internet_connection # --------------------------------------------------- # configuration Linux : Création des répertoires Oracle diff --git a/configure-host-oel7/tasks/rlwrap.yml b/configure-host-oel7/tasks/rlwrap.yml new file mode 100644 index 0000000..ea155c8 --- /dev/null +++ b/configure-host-oel7/tasks/rlwrap.yml @@ -0,0 +1,7 @@ +--- +# installation de l'utilitaire rlwrap pour oracle + +- name: Install nginx rpm from a local file + yum: + name: rlwrap-0.44-1.el8.x86_64.rpm + state: present \ No newline at end of file diff --git a/configure-host-oel7/vars/main.yml b/configure-host-oel7/vars/main.yml index 68cfe04..10d804e 100755 --- a/configure-host-oel7/vars/main.yml +++ b/configure-host-oel7/vars/main.yml @@ -123,9 +123,6 @@ - binutils - btrfs-progs - cloog-ppl -# - compat-libcap1 -# - compat-libstdc++*i686 -# - compat-libstdc++-33 - cpp - ethtool - gcc @@ -186,31 +183,4 @@ - xorg-x11-xinit - xsetroot - xterm -# - binutils -# - compat-libcap1 -# - gcc -# - gcc-c++ -# - glibc -# - glibc-devel -# - libaio -# - libaio-devel -# - libgcc -# - libstdc++ -# - libstdc++-devel -# - libXi -# - libXtst -# - make -# - sysstat -# - ksh -# - libXi*i686 -# - libXtst*i686 -# - libstdc++-devel*i686 -# - libaio-devel*i686 -# - libstdc++*i686 -# - libgcc -# - libgcc*i686 -# - libaio*i686 -# - glibc-devel*i686 -# - glibc*i686 -# - unixODBC