@@ -333,7 +333,7 @@ def sles_common(config, name)
333
333
zypper ar http://download.opensuse.org/distribution/12.3/repo/oss/ oss
334
334
zypper --non-interactive --gpg-auto-import-keys refresh
335
335
zypper --non-interactive install git-core
336
- # choose to "ignore some dependencies" of expect, which has a problem with tcl...
336
+ # choose to "ignore some dependencies" of expect, which has a problem with tcl...
337
337
zypper --non-interactive install --force-resolution expect
338
338
SHELL
339
339
suse_common config , name , extra : extra
@@ -465,38 +465,13 @@ def sh_install_deps(config,
465
465
466
466
#{ extra }
467
467
468
- installed java || {
469
- echo "==> Java is not installed"
470
- return 1
471
- }
472
- cat \< \< JAVA > /etc/profile.d/java_home.sh
473
- if [ ! -z "\\ \$ JAVA_HOME" ]; then
474
- export SYSTEM_JAVA_HOME=\\ \$ JAVA_HOME
475
- unset JAVA_HOME
476
- fi
477
- JAVA
478
468
ensure tar
479
469
ensure curl
480
470
ensure unzip
481
471
ensure rsync
482
472
ensure expect
483
473
484
- installed bats || {
485
- # Bats lives in a git repository....
486
- ensure git
487
- echo "==> Installing bats"
488
- git clone https://github.com/sstephenson/bats /tmp/bats
489
- # Centos doesn't add /usr/local/bin to the path....
490
- /tmp/bats/install.sh /usr
491
- rm -rf /tmp/bats
492
- }
493
-
494
474
cat \< \< SUDOERS_VARS > /etc/sudoers.d/elasticsearch_vars
495
- Defaults env_keep += "BATS_UTILS"
496
- Defaults env_keep += "BATS_TESTS"
497
- Defaults env_keep += "BATS_PLUGINS"
498
- Defaults env_keep += "BATS_UPGRADE"
499
- Defaults env_keep += "PACKAGE_NAME"
500
475
Defaults env_keep += "JAVA_HOME"
501
476
Defaults env_keep += "SYSTEM_JAVA_HOME"
502
477
SUDOERS_VARS
@@ -505,21 +480,9 @@ SUDOERS_VARS
505
480
end
506
481
507
482
def windows_common ( config , name )
508
- config . vm . provision 'markerfile' , type : 'shell' , inline : <<-SHELL
509
- $ErrorActionPreference = "Stop"
510
- New-Item C:/is_vagrant_vm -ItemType file -Force | Out-Null
511
- SHELL
512
-
513
483
config . vm . provision 'set prompt' , type : 'shell' , inline : <<-SHELL
514
484
$ErrorActionPreference = "Stop"
515
485
$ps_prompt = 'function Prompt { "#{ name } :$($ExecutionContext.SessionState.Path.CurrentLocation)>" }'
516
486
$ps_prompt | Out-File $PsHome/Microsoft.PowerShell_profile.ps1
517
487
SHELL
518
-
519
- config . vm . provision 'set env variables' , type : 'shell' , inline : <<-SHELL
520
- $ErrorActionPreference = "Stop"
521
- [Environment]::SetEnvironmentVariable("PACKAGING_ARCHIVES", "C:/project/build/packaging/archives", "Machine")
522
- [Environment]::SetEnvironmentVariable("PACKAGING_TESTS", "C:/project/build/packaging/tests", "Machine")
523
- [Environment]::SetEnvironmentVariable("JAVA_HOME", $null, "Machine")
524
- SHELL
525
488
end
0 commit comments