Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ansible steps to install and configure OpenSDS

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

This article is to share with you the steps of Ansible installation and configuration of OpenSDS. I believe most people do not know how to install and Playz. In order to let you learn, I have summarized the following contents. Without saying much, let's read on.

System: Ubuntu16.04

Node: All in One

Installation dependency

> apt-get update & & apt-get install-y git make curl wget libltdl7 libseccomp2 libffi-dev gawk

Install Docker

Wget https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_18.06.1~ce~3-0~ubuntu_amd64.deb

> dpkg-I docker-ce_18.06.1~ce~3-0~ubuntu_amd64.deb

Install Docker-Compose

> curl-L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname-s)-$(uname-m)"-o / usr/local/bin/docker-compose

> chmod + x / usr/local/bin/docker-compose

Install golang

Wget https://storage.googleapis.com/golang/go1.12.1.linux-amd64.tar.gz

> tar-C / usr/local-xzf go1.12.1.linux-amd64.tar.gz

> echo 'export PATH=$PATH:/usr/local/go/bin' > > / etc/profile

> echo 'export GOPATH=$HOME/gopath' > > / etc/profile

> source / etc/profile

>

> root@opensds:~# go version

> go version go1.12.1 linux/amd64

>

GitHub Clone OpenSDS

Git clone https://github.com/opensds/opensds-installer.git

> cd opensds-installer/ansible

> git checkout stable/capri

Download Ansible

> chmod + x. / install_ansible.sh & &. / install_ansible.sh

> ansible-- version # Ansible version 2.4.x is required.

Configure OpenSDS Ansible variables

Modify host_ip

Cat opensds-installer/ansible/group_vars/common.yml

# This field indicates local machine host ip

Host_ip: 127.0.0.1

# This field indicates which project should be deploy

# 'hotpot',' gelato' or 'all'

Deploy_project: all

Configure OpenSDS lvm backend

> cat opensds-installer/ansible/group_vars/osdsdock.yml

>

> enabled_backends: lvm

Ansible installation begins

> ansible-playbook site.yml-I local.hosts-vvv

> # # Note: installation is slow because many docker images are abroad and can be accelerated by docker images or synchronized to China.

>

CLI operation

> sudo cp / opt/opensds-hotpot-linux-amd64/bin/osdsctl / usr/local/bin/

>

Configuring environment variables

> vi opensds_source.sh

Export OPENSDS_ENDPOINT= http://{your_real_host_ip}:50040

> export OPENSDS_AUTH_STRATEGY=keystone

Export OS_AUTH_URL= http://{your_real_host_ip}/identity

> export OS_USERNAME=admin

> export OS_PASSWORD=opensds@123

> export OS_TENANT_NAME=admin

> export OS_PROJECT_NAME=admin

> export OS_USER_DOMAIN_ID=default

>

> source opendsd_source.sh

>

> osdsctl pool list

Create a default block storage profile

Osdsctl profile create'{"name": "default", "description": "default policy", "storageType": "block"}'

Create Volume

Osdsctl volume create 1-name=test-001

Query Volume

Osdsctl volume list

Delete Volume

Osdsctl volume delete

Visit OpenSDS WEB-UI

Address: http://{your_host_ip}:8088

Default permission: admin/opensds@123

After reading the above, have you mastered the method of installing and configuring OpenSDS? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report