I used ‘s blog to see if I could reproduce, and it works well on the mac OS.  Here is the link to his blog – https://oravirt.wordpress.com/2014/12/23/racattack-meet-ansible-oracle/.

 

Setup

Requirements:

╰─$ git clone –recursive https://github.com/racattack/racattack-ansible-oracle 129 ↵
Cloning into ‘racattack-ansible-oracle’…
remote: Counting objects: 308, done.
remote: Total 308 (delta 0), reused 0 (delta 0), pack-reused 308
Receiving objects: 100% (308/308), 49.02 KiB | 0 bytes/s, done.
Resolving deltas: 100% (203/203), done.
Checking connectivity… done.
Submodule ‘stagefiles/ansible-oracle’ (https://github.com/oravirt/ansible-oracle) registered for path ‘stagefiles/ansible-oracle’
Cloning into ‘stagefiles/ansible-oracle’…
remote: Counting objects: 1604, done.
remote: Total 1604 (delta 0), reused 0 (delta 0), pack-reused 1604
Receiving objects: 100% (1604/1604), 419.20 KiB | 0 bytes/s, done.
Resolving deltas: 100% (723/723), done.
Checking connectivity… done.
Submodule path ‘stagefiles/ansible-oracle’: checked out ‘00651e0caf9a876fcefe51d21e44a6e78c313e76’
╭─alinafe.matenda@MBP ~
╰─$ ls
…..
racattack-ansible-oracle

╭─alinafe.matenda@MBP ~

Test your Vagrant Install

─$ vagrant init hashicorp/precise64 1 ↵
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Box ‘hashicorp/precise64’ could not be found. Attempting to find and install…
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box ‘hashicorp/precise64’
default: URL: https://atlas.hashicorp.com/hashicorp/precise64
==> default: Adding box ‘hashicorp/precise64’ (v1.1.0) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/hashicorp/boxes/precise64/versions/1.1.0/providers/virtualbox.box
==> default: Successfully added box ‘hashicorp/precise64’ (v1.1.0) for ‘virtualbox’!
==> default: Importing base box ‘hashicorp/precise64’…
==> default: Matching MAC address for NAT networking…
==> default: Checking if box ‘hashicorp/precise64’ is up to date…
==> default: Setting the name of the VM: alinafematenda_default_1467856906532_97312
==> default: Clearing any previously set network interfaces…
==> default: Preparing network interfaces based on configuration…
default: Adapter 1: nat
==> default: Forwarding ports…
default: 22 => 2222 (adapter 1)
==> default: Booting VM…
==> default: Waiting for machine to boot. This may take a few minutes…
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest…
default: Removing insecure key from the guest if it’s present…
default: Key inserted! Disconnecting and reconnecting using new SSH key…
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM…
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.2.0
default: VirtualBox Version: 5.0
==> default: Mounting shared folders…
default: /vagrant => /Users/alinafe.matenda
╭─alinafe.matenda@MBP~

Destroy the default base box

╰─$ vagrant destroy
default: Are you sure you want to destroy the ‘default’ VM? [y/N] y
==> default: Forcing shutdown of VM…
==> default: Destroying VM and associated drives…

Download the Oracle binaries (GI & DB) for any of the versions you’re interested in (11.2.0.4, 12.1.0.1, 12.1.0.2). They should all be placed in ~/racattack-ansible-oracle/12cR1
ls
─alinafe.matenda@MBP ~/racattack-ansible-oracle/12cR1 ‹master›
╰─$ ls

keep
linuxamd64_12102_database_2of2.zip
linuxamd64_12102_database_1of2.zip
linuxamd64_12102_grid_1of2.zip
linuxamd64_12102_grid_2of2.zip
readme.txt

─alinafe.matenda@MBP-C02PRS2JFVH5 ~/racattack-ansible-oracle/12cR1 ‹master*›

Configure SSH access with the insecure keypair, place the public key into the ~/.ssh/authorized_keys file for the “vagrant” user. Note that OpenSSH is very picky about file permissions. Therefore, make sure that ~/.ssh has 0700 permissions and the authorized keys file has 0600 permissions.


vaggrant.pub at https://github.com/mitchellh/vagrant/tree/master/keys


─alinafe.matenda@MBP
╰─$ chmod 600 ~/.ssh/authorized_keys 127 ↵
╭─alinafe.matenda@MBP
╰─$ ll ~/.ssh/authorized_keys
-rw——-@ 1 alinafe.matenda ALINAFE\Domain Users 1.2K Jul 6 22:12 /Users/alinafe.matenda/.ssh/authorized_keys

╭─alinafe.matenda@MBP~
╰─$ ls -la ~
……
drwx—— 15 alinafe.matenda Alinafe\Domain Users 510 Jul 6 22:12 .ssh
─alinafe.matenda@MBP ~
╰─$ cd –
~/racattack-ansible-oracle

╰─$ vagrant up

collabn1 eth1 lanip :192.168.78.51
collabn1 eth2 privip :172.16.100.51
collabn1 dns server role is master
on first boot shared disks will be created, this will take some time
Bringing machine ‘collabn1’ up with ‘virtualbox’ provider…
==> collabn1: Box ‘kikitux/oracle6-racattack’ could not be found. Attempting to find and install…
collabn1: Box Provider: virtualbox
collabn1: Box Version: >= 0
==> collabn1: Loading metadata for box ‘kikitux/oracle6-racattack’
collabn1: URL: https://atlas.hashicorp.com/kikitux/oracle6-racattack
==> collabn1: Adding box ‘kikitux/oracle6-racattack’ (v16.01.01) for provider: virtualbox
collabn1: Downloading: https://atlas.hashicorp.com/kikitux/boxes/oracle6-racattack/versions/16.01.01/providers/virtualbox.box
==> collabn1: Successfully added box ‘kikitux/oracle6-racattack’ (v16.01.01) for ‘virtualbox’!
==> collabn1: Importing base box ‘kikitux/oracle6-racattack’…
==> collabn1: Matching MAC address for NAT networking…
==> collabn1: Checking if box ‘kikitux/oracle6-racattack’ is up to date…
==> collabn1: Setting the name of the VM: collabn1.1607062245
==> collabn1: Clearing any previously set network interfaces…
==> collabn1: Preparing network interfaces based on configuration…
collabn1: Adapter 1: nat
collabn1: Adapter 2: hostonly
collabn1: Adapter 3: hostonly
==> collabn1: Forwarding ports…
collabn1: 22 => 2222 (adapter 1)
==> collabn1: Running ‘pre-boot’ VM customizations…
==> collabn1: Booting VM…
==> collabn1: Waiting for machine to boot. This may take a few minutes…
collabn1: SSH address: 127.0.0.1:2222
collabn1: SSH username: vagrant
collabn1: SSH auth method: private key
collabn1: Warning: Connection timeout. Retrying…
==> collabn1: Machine booted and ready!
==> collabn1: Checking for guest additions in VM…
==> collabn1: Setting hostname…
==> collabn1: Configuring and enabling network interfaces…
==> collabn1: Mounting shared folders…
collabn1: /vagrant => /Users/alinafe.matenda/racattack-ansible-oracle
collabn1: /media/sf_12cR1 => /Users/alinafe.matenda/racattack-ansible-oracle/12cR1
collabn1: /media/stagefiles => /Users/alinafe.matenda/racattack-ansible-oracle/stagefiles
==> collabn1: Running provisioner: shell…
collabn1: Running: inline script
==> collabn1: overwriting /etc/resolv.conf
==> collabn1: Running provisioner: shell…
collabn1: Running: inline script
==> collabn1: wrote key file “/etc/rndc.key”
==> collabn1: Stopping named:
==> collabn1: [ OK ]
==> collabn1: Starting named:
==> collabn1: [ OK ]
==> collabn1: successfully completed named steps
╭─alinafe.matenda@MBP ~/racattack-ansible-oracle ‹master›

─$ setup=standard vagrant provision

collabn1 eth1 lanip :192.168.78.51
collabn1 eth2 privip :172.16.100.51
collabn1 dns server role is master
==> collabn1: Running provisioner: shell…
collabn1: Running: inline script
==> collabn1: PEERDNS=no
==> collabn1: overwriting /etc/resolv.conf
==> collabn1: Running provisioner: shell…
………………………
==> collabn1: }
==> collabn1:
==> collabn1: PLAY RECAP ********************************************************************
==> collabn1: collabn1 : ok=118 changed=54 unreachable=0 failed=0
==> collabn1:
==> collabn1: real 47m33.206s
==> collabn1: user 0m4.391s
==> collabn1: sys 0m6.508s
╭─alinafe.matenda@MBP~/racattack-ansible-oracle ‹master›

Takes about an hour to complete but works well for the first attempt.

Advertisements