8 Commits

Author SHA1 Message Date
84f8d92448 README.md 수정 2024-11-05 11:53:38 +09:00
ByeonJungHun
9a96955f08 Dockerfile 수정 2024-11-05 11:43:51 +09:00
ByeonJungHun
9635c4eee5 README.md 업데이트 2024-11-01 17:56:07 +09:00
ByeonJungHun
daafb686c9 invetory 수정 2024-11-01 13:41:38 +09:00
정훈 변
32440c8d64 메인 브런치로 이동 2024-09-09 12:25:26 +09:00
정훈 변
67fcdf305d Merge branch 'revert-5119e7b9' into 'main'
Revert "Merge branch 'ver1.0' into 'main'"

See merge request sa_8001/exemone_agent_installer!3
2024-08-22 14:51:35 +09:00
정훈 변
b44c107d88 Revert "Merge branch 'ver1.0' into 'main'"
This reverts merge request !2
2024-08-22 14:51:01 +09:00
정훈 변
5119e7b95e Merge branch 'ver1.0' into 'main'
exemONE Host Agent Installer Container Image

See merge request sa_8001/exemone_agent_installer!2
2024-08-22 14:49:26 +09:00
4 changed files with 11 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ LABEL agent_list="host,container,ndm"
RUN \ RUN \
pip3 install ansible && \ pip3 install ansible && \
apk add openssh apk add openssh sshpass
WORKDIR /installer WORKDIR /installer

View File

@@ -17,7 +17,10 @@ container_agent
[host_agent] [host_agent]
10.10.54.150 # host-agent를 설치할 서버 IP 입력 10.10.54.150 # host-agent를 설치할 서버 IP 입력
10.10.54.105 10.10.54.105 ansible_user=sa8001 ansible_ssh_pass=ios2011a ansible_become_pass=ios2011a
# ansible_user : ssh 접속 유저
# ansible_ssh_pass : ssh 접속 패스워드
# ansible_become_pass : sudo 권한 사용시 패스워드
[container_agent] [container_agent]
10.10.54.105 # container-agent를 설치할 서버 IP 입력 10.10.54.105 # container-agent를 설치할 서버 IP 입력
@@ -62,3 +65,6 @@ user 같은 경우 root 권한을 가지고 있어야 함
## playbook 실행 ## playbook 실행
`ansible-playbook -i inventory agent.yml` 명령어로 실행 `ansible-playbook -i inventory agent.yml` 명령어로 실행
## Docker를 통한 실행
`docker run --name installer -v ./inventory:/installer/inventory -v ./agent.yml:/installer/agent.yml {빌드한 이미지}` 로 실행

View File

@@ -6,7 +6,7 @@
- role: one_agent - role: one_agent
vars: vars:
EXEM_HOME: /tmp EXEM_HOME: /tmp
RECEIVER_ADDR: 10.10.55.109 RECEIVER_ADDR: 10.10.55.102
#RECEIVER_PORT: 9010 #RECEIVER_PORT: 9010
#RECEIVER_CONTAINER_PORT: 9009 #RECEIVER_CONTAINER_PORT: 9009
# port 설정이 필요할 경우 위 주석을 해제하고 설정 # port 설정이 필요할 경우 위 주석을 해제하고 설정

View File

@@ -3,7 +3,8 @@ host_agent
container_agent container_agent
[host_agent] [host_agent]
10.10.55.109 ansible_user=root 10.10.55.102 ansible_user=root ansible_ssh_pass=tmax@23 ansible_become_pass=tmax@23
10.10.55.103 ansible_user=root ansible_ssh_pass=tmax@23 ansible_become_pass=tmax@23
[container_agent] [container_agent]