Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 1.23 KB

deploy.md

File metadata and controls

69 lines (53 loc) · 1.23 KB

环境

  1. 操作系统为:centos7
  2. openstack版本为:newton

部署步骤

  • 安装相关软件
#yum install -y git python-pip 
  • '克隆 devstack
#cd /opt
#git clone https://github.com/openstack-dev/devstack.git -b stable/newton
  • 创建 stack用户,修改用户目录权限,修改 stack 用户权限
#cd /opt/devstack
#./tools/create-stack-user.sh
#chown -R stack:stack /opt/devstack
#vim /etc/sudoers

stack ALL=(ALL) NOPASSWD: ALL

  • 切换至 stack用户,编写local.conf文件
#su - stack
$cd /opt/devstack
$vim local.conf

[[local|localrc]]

# use TryStack git mirror

GIT_BASE=http://git.trystack.cn

NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git

SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git

# Credentials

DATABASE_PASSWORD=abc123

ADMIN_PASSWORD=abc123

SERVICE_PASSWORD=abc123

SERVICE_TOKEN=abc123

RABBIT_PASSWORD=abc123

  • 开始部署
$ ./stack.sh

若是部署过程中出现问题,可执行 ./unstack.sh 清理,完后再次重新部署。