Get the App
SLTechnology News&Howtos  ›  Servers  › 

Ansible steps to install and configure OpenSDS

Shulou Source: shulou.com Published: 2022-06-03 05:36:29 10月01日 Update

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!

Tags: Configuration content variables more images steps addresses most skills methods permissions environment read bar articles systems nodes industry information information channels channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB NVidia Xiaomi Shulou Technology Linux