diff --git a/builtin/providers/openstack/devstack/deploy.sh b/builtin/providers/openstack/devstack/deploy.sh deleted file mode 100644 index 6e4720e85..000000000 --- a/builtin/providers/openstack/devstack/deploy.sh +++ /dev/null @@ -1,166 +0,0 @@ -#!/bin/bash - -set -e - -cd -sudo apt-get update -sudo apt-get install -y git make mercurial - -sudo wget -O /usr/local/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme -sudo chmod +x /usr/local/bin/gimme -gimme 1.6 >> .bashrc - -mkdir ~/go -eval "$(/usr/local/bin/gimme 1.6)" -echo 'export GOPATH=$HOME/go' >> .bashrc -export GOPATH=$HOME/go - -export PATH=$PATH:$HOME/terraform:$HOME/go/bin -echo 'export PATH=$PATH:$HOME/terraform:$HOME/go/bin' >> .bashrc -source .bashrc - -go get github.com/hashicorp/terraform - -git clone https://git.openstack.org/openstack-dev/devstack -b stable/mitaka -cd devstack -cat >local.conf <> openrc <> openrc -echo export OS_IMAGE_ID="$_IMAGE_ID" >> openrc -echo export OS_NETWORK_ID=$_NETWORK_ID >> openrc -echo export OS_EXTGW_ID=$_EXTGW_ID >> openrc -echo export OS_POOL_NAME="public" >> openrc -echo export OS_FLAVOR_ID=99 >> openrc -source openrc demo - -# Replace the below lines with the repo/branch you want to test -#git remote add jtopjian https://github.com/jtopjian/terraform -#git fetch jtopjian -#git checkout --track jtopjian/openstack-secgroup-safe-delete -#make testacc TEST=./builtin/providers/openstack TESTARGS='-run=AccBlockStorageV1' -#make testacc TEST=./builtin/providers/openstack TESTARGS='-run=AccCompute' -#make testacc TEST=./builtin/providers/openstack diff --git a/website/source/docs/providers/openstack/index.html.markdown b/website/source/docs/providers/openstack/index.html.markdown index cb4bbddb3..adbb7db72 100644 --- a/website/source/docs/providers/openstack/index.html.markdown +++ b/website/source/docs/providers/openstack/index.html.markdown @@ -172,14 +172,16 @@ variables must also be set: * `OS_EXTGW_ID` - The UUID of the external gateway. -To make development easier, the `builtin/providers/openstack/devstack/deploy.sh` -script will assist in installing and configuring a standardized -[DevStack](http://docs.openstack.org/developer/devstack/) environment along with -Golang, Terraform, and all development dependencies. It will also set the required -environment variables in the `devstack/openrc` file. +You should be able to use any OpenStack environment to develop on as long as the +above environment variables are set. -Do not run the `deploy.sh` script on your workstation or any type of production -server. Instead, run the script within a disposable virtual machine. -[Here's](https://github.com/berendt/terraform-configurations) an example of a -Terraform configuration that will create an OpenStack instance and then install and -configure DevStack inside. +Most of Terraform's OpenStack support is done in a standardized Packstack +all-in-one environment. You can find the scripts to build this environment +[here](https://github.com/jtopjian/terraform-devstack/tree/master/packstack-standard). +The included `main.tf` file will need to be modified for your specific +environment. Once it's up and running, you will have access to a standard, +up-to-date OpenStack environment with the latest OpenStack services. + +If you require access to deprecated services, such as Keystone v2 and +LBaaS v1, you can use the "legacy" environment +[here](https://github.com/jtopjian/terraform-devstack/tree/master/packstack-legacy).