Documentum 16.4 Server with Repository on Centos 7.5 / 7.6.
Please note while this project could be taken and used by anyone, I am using it for my own learning of Ansible. Feel free to take what you want but be sure to understand and test before using anything in production.
Please be warned, I know there are bugs in this project. However it the effort to fix, would not add increase my Ansible education!!
See my project packer-centos-vagrant for how the CentOS 7 vagrant box is created and what software is installed by default. For the most part I try to pre install as much as possible.
C:\Windows\System32\cmd.exe /K "cd /d f:\PublicGitHub\documentum164"
rmdir /s /q credentials
rmdir /s /q roles\tmp
rmdir /s /q .vagrant
vagrant up
-
Now done by Vagrant Shell provisioner
sudo -i
sed -i '1d' /etc/hosts cat /etc/hosts exit
and setup SSH
ssh-keygen -q -t ecdsa -b 521 -f ~/.ssh/id_ecdsa -N ""
ssh-copy-id -i ~/.ssh/id_ecdsa vagrant@database
ssh-copy-id -i ~/.ssh/id_ecdsa vagrant@documentum
ssh-copy-id -i ~/.ssh/id_ecdsa vagrant@applications
ssh-copy-id -i ~/.ssh/id_ecdsa vagrant@ansible
ssh 'vagrant@database'
ssh 'vagrant@documentum'
ssh 'vagrant@applications'
ssh 'vagrant@ansible'
export ANSIBLE_CONFIG=/vagrant/ansible.cfg
echo $ANSIBLE_CONFIG
cd /vagrant
ansible-playbook doItAllPlay.yml
Nice thing about Ansible, it is easy to extract sections into smaller pieces
cd /vagrant
ansible-playbook doOracleDatabasePlay.yml
cd /vagrant
ansible-playbook doDocumentumPlay.yml
cd /vagrant
ansible-playbook playbook.yml --tags "patch"
cd /vagrant
ansible-playbook 010RebootAll.yml
C:\Windows\System32\cmd.exe /K "cd /d f:\PublicGitHub\documentum164"
vagrant destroy -f
Credit where due, using the solutions and hard work of other folks. Hopefully my contribution will be some Documentum specific install examples
- https://docs.ansible.com/ansible/latest/scenario_guides/guide_vagrant.html
- https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html
- https://docs.ansible.com/ansible/latest/user_guide/playbooks_tags.html
- https://docs.ansible.com/ansible/latest/user_guide/playbooks_environment.html
- https://docs.ansible.com/ansible/latest/reference_appendices/common_return_values.html
- https://github.com/geerlingguy/packer-centos-7
- https://www.vagrantup.com/docs/provisioning/ansible_local.html
- https://www.vagrantup.com/docs/provisioning/ansible.html
- https://www.vagrantup.com/docs/provisioning/ansible_intro.html
- https://everythingshouldbevirtual.com/automation/ansible-using-set_facts-module/
- https://serverfault.com/questions/831880/are-ansible-handlers-defined-in-roles-ran-after-the-entire-playbook-or-the-role
- https://wherenow.org/ansible-handlers
- https://www.youtube.com/watch?v=icR-df2Olm8&t=482s
- https://www.ssh.com/ssh/keygen/
- https://www.ssh.com/ssh/copy-id
- https://github.com/scottishgovernment/mygovscot-puppet-blogpost
- https://github.com/lastnitescurry/rpm-maven-plugin-apache-tomcat-packaging/blob/master/servers.yaml
- https://blog.scottlowe.org/2016/01/14/improved-way-yaml-vagrant/
- https://github.com/scottslowe/learning-tools/blob/master/vagrant/complex-yaml/Vagrantfile
- https://github.com/scottslowe/learning-tools/blob/master/vagrant/complex-yaml/machines.yml
- hashicorp/vagrant#7263
- https://stackoverflow.com/questions/60904/how-can-i-open-a-cmd-window-in-a-specific-location
file system... follow well proven standards
- https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
- https://linoxide.com/how-tos/change-linux-shell-prompt-with-different-colors/
- https://github.com/cvezalis/oracledb-ansible
- https://www.nodalpoint.com/devops-ansible-oracle-database-oraclelinux-7-vagrant/
- https://stackoverflow.com/questions/17472379/showing-progress-in-oracle-db-silent-installation-with-response-file
- https://valehagayev.wordpress.com/2016/09/08/oracle-12-1-0-2-silent-install-and-de-installation-on-oel