/
SaltStack vSphere Module Setting

SaltStack vSphere Module Setting

Installation

  • CloudHub Portal을 운영중인 Host에 아래와 같이 Package를 설치합니다.

  • root 권한에서 작업합니다.

Pyvmomi 설치

  • VMware vSphere API Python Bindings

    $ pip3 install pyVmomi

VMware vSphere vCLI 설치

  • vCLI 설치 전 필수 소프트웨어 설치합니다.

    $ yum install e2fsprogs-devel libuuid-devel openssl-devel perl-devel $ yum install glibc.i686 zlib.i686 $ yum install perl-XML-LibXML libncurses.so.5 perl-Crypt-SSLeay $ yum -y install perl-Socket6 $ yum -y install cpan $ yum -y install gcc-c++ $ PERL_MM_USE_DEFAULT=1 cpan install BINGOS/ExtUtils-MakeMaker-6.96.tar.gz LEONT/Module-Build-0.4205.tar.gz JRM/UUID-0.28.tar.gz ESAYM/Time-Piece-1.3401.tar.gz PERIGRIN/XML-NamespaceSupport-1.12.tar.gz SHLOMIF/IO-Socket-INET6-2.72.tar.gz
  • vSphere vCLI Package 설치

1 단계 : vCLI 설치 Package 다운로드합니다.

Download URL : https://code.vmware.com/web/tool/6.7/vsphere-cli

  • VMware 회원 가입이 필요할 수 있습니다.

  • 별도로 CD가 있다면 안에 받아 놓은 파일이 있습니다.

2 단계 : 다운로드한 vCLI 압축 해제합니다.

$ tar zxvf <file-path>/VMware-vSphere-CLI-6.7.0-8156551.x86_64.tar.gz -C <file-path>

3 단계 : 설치 프로그램 실행합니다.

4 단계 : 라이센스 조항에 동의하기 위해 yes 입력하고 Enter

설치 관리자는 CPAN에 연결하고 필수 소프트웨어를 설치합니다. 

연결하는 데 시간이 오래 걸릴 수 있습니다.

5 단계 : 설치 경로를 지정하고 Enter

Default Path : /usr/bin

6 단계 : vCLI 설치 확인합니다.

  • thumbprint 추가합니다.

Salt vsphere modules 교체

  • 아래 첨부 파일을 python salt modules 경로에 있는 파일과 교체한다.

  • modules 경로 : /usr/lib/python3.6/site-packages/salt/modules/vsphere.py

  File Modified

File vsphere.py

May 20, 2021 by 노재명

Salt-minion 서비스 Python 환경 변수 추가

CloudHub Portal addon argument 추가

  • Sidebar의 Clouds 메뉴에서 VMware Tab을  on/off optionable 처리합니다.

  • CloudHub argument에 Add-on 옵션 추가합니다.

    • -u=vsphere:on

  • CloudHub service 재시작

 

Related content

SaltStack OpenStack Module Setting
SaltStack OpenStack Module Setting
More like this
SaltStack GCP Module Setting
SaltStack GCP Module Setting
More like this
SaltStack AWS Module Setting
SaltStack AWS Module Setting
More like this
SaltStack Kubernetes Module Setting
SaltStack Kubernetes Module Setting
More like this
Upgrade SaltStack Version
Upgrade SaltStack Version
More like this
VMware Monitoring
VMware Monitoring
More like this