/
Installing Agent Node

Installing Agent Node

일반 환경

여기서 일반 환경이라 함은,
salt-minion이 이미 설치되어 다른 salt-master에 연결되어 있지 않은 환경을 말합니다.

즉, salt-minion이 이미 가동되고 있지 않은 환경을 뜻합니다.

Yum install

Salt official installation guide (https://repo.saltproject.io/3001.html#rhel)
→ Enter into the linked page, and then choose “Redhat / CentOS 7 PY3” tab button.

  1. SaltStack 저장소 등록

    $ yum install -y epel-release $ rpm --import https://repo.saltproject.io/py3/redhat/7/x86_64/archive/3001.4/SALTSTACK-GPG-KEY.pub $ curl -fsSL https://repo.saltproject.io/py3/redhat/7/x86_64/archive/3001.4.repo | sudo tee /etc/yum.repos.d/salt.repo $ yum clean expire-cache
  2. Salt-Minion 설치

    $ yum install -y salt-minion
  3. Config 설정

    • Salt-Minion : $ vim /etc/salt/minion.d/minion.conf

      • master : Salt-Master IP를 넣는다. Ex) 192.168.45.1

      • id : Salt 에서 확인하는 Unique ID. 다른 Salt-minion ID와 중복되면 안된다. Ex) minion1, minion2

        ## log_level ## # One of 'garbage', 'trace', 'debug', info', 'warning'(default), 'error', 'critical'. log_level: info master: <master ip address> id: <생략 시, hostname = minion id>
  4. 서비스 시작

Windows에 설치하는 salt-minion은 Python fork 지연 이슈로 인해, 아래와 같이 설정 파일에서
multiprocessing: False로 바꿔야 합니다. (windows 서비스 관리에서 salt-minion 정지 후)

> C:\salt\conf\minion
####### Thread settings ########
###########################################
# Disable multiprocessing support, by default when a minion receives a
# publication a new process is spawned and the command is executed therein.
# WARNING: Disabling multiprocessing may result in substantial slowdowns
# when processing large pillars. See https://github.com/saltstack/salt/issues/38758
# for a full explanation.

multiprocessing: False

Off internet

For SWAN only

Conda 환경에 Salt-Minion 설치

Download Install Script

v1.0.1:
curl -O https://raw.githubusercontent.com/snetsystems/cmp/master/etc/install_salt_on_conda.sh

v1.0.0:
curl -O https://raw.githubusercontent.com/snetsystems/cloudhub/1.0.0-hotfix02/etc/install_conda.sh

설치 방법

  1. Argument

    • -m : Salt-Master의 IP address (혹은 domain)를 입력합니다.

    • -i : Salt-Minion의 ID를 입력합니다.

      • 입력하지 않을 경우 hostname으로 등록

    • -h : Argument의 설명

  2. 설치항목 선택

    • 'N' 입력 (Salt-Minion만 설치)

  3. Conda 설치경로

    • 기본 설치경로 : /opt/miniconda3

    • 설치경로 변경 예제

  4. Salt-Minion 서비스 시작

    • 설치 완료 후 Salt-Minion 서비스를 자동으로 시작할 수 있습니다.

설치 후 확인사항

  • Minion Config

  • 서비스 시작, 서비스 상태

Related content

Package Deployment on Private Network(Agent)
Package Deployment on Private Network(Agent)
Read with this
Quick Installation Guide on Windows Agent node
Quick Installation Guide on Windows Agent node
More like this
Managing CloudHub security
Managing CloudHub security
Read with this
Quick Installation Guide on Linux Agent node
Quick Installation Guide on Linux Agent node
More like this
Salt-Master/Minion IP 변경 시 조치 사항
Salt-Master/Minion IP 변경 시 조치 사항
More like this
Upgrade SaltStack Version
Upgrade SaltStack Version
More like this