Skip to content
Permalink
Browse files

Include proxy plugin

Signed-off-by: Gerald Venzl <gerald.venzl@oracle.com>
  • Loading branch information...
gvenzl committed Apr 1, 2019
1 parent b24a786 commit e9c548c1f8ca7464590e1f18222ae7cece28963d
@@ -24,7 +24,7 @@ A vagrant box that provisions Oracle Database automatically, using Vagrant, an O
* All passwords are auto-generated and printed on install

## Resetting password
You can reset the password of the Oracle database accounts by executing `/home/oracle/setPassword.sh <Your new password>`.
You can reset the password of the Oracle database accounts (SYS and SYSTEM only) by executing `/home/oracle/setPassword.sh <Your new password>`.

## Running scripts after setup
You can have the installer run scripts after setup by putting them in the `userscripts` directory below the directory where you have this file checked out. Any shell (`.sh`) or SQL (`.sql`) scripts you put in the `userscripts` directory will be executed by the installer after the database is set up and started. Only shell and SQL scripts will be executed; all other files will be ignored. These scripts are completely optional.
@@ -19,6 +19,11 @@ VAGRANTFILE_API_VERSION = "2"
# define hostname
NAME = "oracle11g-xe-vagrant"

unless Vagrant.has_plugin?("vagrant-proxyconf")
puts 'Installing vagrant-proxyconf Plugin...'
system('vagrant plugin install vagrant-proxyconf')
end

# get host time zone for setting VM time zone, if possible
# can override in env section below
offset_sec = Time.now.gmt_offset
@@ -43,6 +48,22 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v.memory = 2048
v.name = NAME
end

# add proxy configuration from host env - optional
if Vagrant.has_plugin?("vagrant-proxyconf")
puts "getting Proxy Configuration from Host..."
if ENV["http_proxy"]
puts "http_proxy: " + ENV["http_proxy"]
config.proxy.http = ENV["http_proxy"]
end
if ENV["https_proxy"]
puts "https_proxy: " + ENV["https_proxy"]
config.proxy.https = ENV["https_proxy"]
end
if ENV["no_proxy"]
config.proxy.no_proxy = ENV["no_proxy"]
end
end

# VM hostname
config.vm.hostname = NAME
@@ -25,7 +25,7 @@ A vagrant box that provisions Oracle Database automatically, using Vagrant, an O
* All passwords are auto-generated and printed on install

## Resetting password
You can reset the password of the Oracle database accounts by by switching to the oracle user (`sudo su - oracle`), then executing `/home/oracle/setPassword.sh <Your new password>`.
You can reset the password of the Oracle database accounts (SYS, SYSTEM and PDBADMIN only) by by switching to the oracle user (`sudo su - oracle`), then executing `/home/oracle/setPassword.sh <Your new password>`.

## Running scripts after setup
You can have the installer run scripts after setup by putting them in the `userscripts` directory below the directory where you have this file checked out. Any shell (`.sh`) or SQL (`.sql`) scripts you put in the `userscripts` directory will be executed by the installer after the database is set up and started. Only shell and SQL scripts will be executed; all other files will be ignored. These scripts are completely optional.
@@ -19,6 +19,11 @@ VAGRANTFILE_API_VERSION = "2"
# define hostname
NAME = "oracle-12102-vagrant"

unless Vagrant.has_plugin?("vagrant-proxyconf")
puts 'Installing vagrant-proxyconf Plugin...'
system('vagrant plugin install vagrant-proxyconf')
end

# get host time zone for setting VM time zone, if possible
# can override in env section below
offset_sec = Time.now.gmt_offset
@@ -44,6 +49,22 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v.name = NAME
end

# add proxy configuration from host env - optional
if Vagrant.has_plugin?("vagrant-proxyconf")
puts "getting Proxy Configuration from Host..."
if ENV["http_proxy"]
puts "http_proxy: " + ENV["http_proxy"]
config.proxy.http = ENV["http_proxy"]
end
if ENV["https_proxy"]
puts "https_proxy: " + ENV["https_proxy"]
config.proxy.https = ENV["https_proxy"]
end
if ENV["no_proxy"]
config.proxy.no_proxy = ENV["no_proxy"]
end
end

# VM hostname
config.vm.hostname = NAME

@@ -25,7 +25,7 @@ A vagrant box that provisions Oracle Database automatically, using Vagrant, an O
* All passwords are auto-generated and printed on install

## Resetting password
You can reset the password of the Oracle database accounts by executing `/home/oracle/setPassword.sh <Your new password>`.
You can reset the password of the Oracle database accounts (SYS, SYSTEM and PDBADMIN only) by executing `/home/oracle/setPassword.sh <Your new password>`.

## Running scripts after setup
You can have the installer run scripts after setup by putting them in the `userscripts` directory below the directory where you have this file checked out. Any shell (`.sh`) or SQL (`.sql`) scripts you put in the `userscripts` directory will be executed by the installer after the database is set up and started. Only shell and SQL scripts will be executed; all other files will be ignored. These scripts are completely optional.
@@ -19,6 +19,11 @@ VAGRANTFILE_API_VERSION = "2"
# define hostname
NAME = "oracle-12201-vagrant"

unless Vagrant.has_plugin?("vagrant-proxyconf")
puts 'Installing vagrant-proxyconf Plugin...'
system('vagrant plugin install vagrant-proxyconf')
end

# get host time zone for setting VM time zone, if possible
# can override in env section below
offset_sec = Time.now.gmt_offset
@@ -44,6 +49,22 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v.name = NAME
end

# add proxy configuration from host env - optional
if Vagrant.has_plugin?("vagrant-proxyconf")
puts "getting Proxy Configuration from Host..."
if ENV["http_proxy"]
puts "http_proxy: " + ENV["http_proxy"]
config.proxy.http = ENV["http_proxy"]
end
if ENV["https_proxy"]
puts "https_proxy: " + ENV["https_proxy"]
config.proxy.https = ENV["https_proxy"]
end
if ENV["no_proxy"]
config.proxy.no_proxy = ENV["no_proxy"]
end
end

# VM hostname
config.vm.hostname = NAME

@@ -25,7 +25,7 @@ A vagrant box that provisions Oracle Database automatically, using Vagrant, an O
* All passwords are auto-generated and printed on install

## Resetting password
You can reset the password of the Oracle database accounts by executing `/home/oracle/setPassword.sh <Your new password>`.
You can reset the password of the Oracle database accounts (SYS, SYSTEM and PDBADMIN only) by executing `/home/oracle/setPassword.sh <Your new password>`.

## Running scripts after setup
You can have the installer run scripts after setup by putting them in the `userscripts` directory below the directory where you have this file checked out. Any shell (`.sh`) or SQL (`.sql`) scripts you put in the `userscripts` directory will be executed by the installer after the database is set up and started. Only shell and SQL scripts will be executed; all other files will be ignored. These scripts are completely optional.
@@ -19,6 +19,11 @@ VAGRANTFILE_API_VERSION = "2"
# define hostname
NAME = "oracle-18c-vagrant"

unless Vagrant.has_plugin?("vagrant-proxyconf")
puts 'Installing vagrant-proxyconf Plugin...'
system('vagrant plugin install vagrant-proxyconf')
end

# get host time zone for setting VM time zone, if possible
# can override in env section below
offset_sec = Time.now.gmt_offset
@@ -44,6 +49,22 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v.name = NAME
end

# add proxy configuration from host env - optional
if Vagrant.has_plugin?("vagrant-proxyconf")
puts "getting Proxy Configuration from Host..."
if ENV["http_proxy"]
puts "http_proxy: " + ENV["http_proxy"]
config.proxy.http = ENV["http_proxy"]
end
if ENV["https_proxy"]
puts "https_proxy: " + ENV["https_proxy"]
config.proxy.https = ENV["https_proxy"]
end
if ENV["no_proxy"]
config.proxy.no_proxy = ENV["no_proxy"]
end
end

# VM hostname
config.vm.hostname = NAME

@@ -25,7 +25,7 @@ A vagrant box that provisions Oracle Database automatically, using Vagrant, an O
* All passwords are auto-generated and printed on install

## Resetting password
You can reset the password of the Oracle database accounts by switching to the oracle user (`sudo su - oracle`), then executing `/home/oracle/setPassword.sh <Your new password>`.
You can reset the password of the Oracle database accounts (SYS, SYSTEM and PDBADMIN only) by switching to the oracle user (`sudo su - oracle`), then executing `/home/oracle/setPassword.sh <Your new password>`.

## Running scripts after setup
You can have the installer run scripts after setup by putting them in the `userscripts` directory below the directory where you have this file checked out. Any shell (`.sh`) or SQL (`.sql`) scripts you put in the `userscripts` directory will be executed by the installer after the database is set up and started. Only shell and SQL scripts will be executed; all other files will be ignored. These scripts are completely optional.
@@ -19,6 +19,11 @@ VAGRANTFILE_API_VERSION = "2"
# define hostname
NAME = "oracle18c-xe-vagrant"

unless Vagrant.has_plugin?("vagrant-proxyconf")
puts 'Installing vagrant-proxyconf Plugin...'
system('vagrant plugin install vagrant-proxyconf')
end

# get host time zone for setting VM time zone, if possible
# can override in env section below
offset_sec = Time.now.gmt_offset
@@ -44,6 +49,22 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v.name = NAME
end

# add proxy configuration from host env - optional
if Vagrant.has_plugin?("vagrant-proxyconf")
puts "getting Proxy Configuration from Host..."
if ENV["http_proxy"]
puts "http_proxy: " + ENV["http_proxy"]
config.proxy.http = ENV["http_proxy"]
end
if ENV["https_proxy"]
puts "https_proxy: " + ENV["https_proxy"]
config.proxy.https = ENV["https_proxy"]
end
if ENV["no_proxy"]
config.proxy.no_proxy = ENV["no_proxy"]
end
end

# VM hostname
# must be "localhost", or listener configuration will fail
config.vm.hostname = "localhost"

0 comments on commit e9c548c

Please sign in to comment.
You can’t perform that action at this time.