Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 84f8d92448 | |||
|
|
9a96955f08 | ||
|
|
9635c4eee5 | ||
|
|
daafb686c9 | ||
|
|
32440c8d64 | ||
|
|
67fcdf305d | ||
|
|
b44c107d88 | ||
|
|
5119e7b95e |
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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 {빌드한 이미지}` 로 실행
|
||||||
|
|||||||
@@ -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 설정이 필요할 경우 위 주석을 해제하고 설정
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user