우분투 2

[Ansible] Control node & Managed node 설치 및 ssh 접속

Ansible 실습환경 구성 virtualBox 를 이용한 가상 환경 Virtual Machine CPU : dual core memory : 2GB 제어 노드 구성 필수요소 ★ sshd 활성화 python 3.x 버전 interpreter 설치 pip 패키지 설치 Control node 를 구성하기 위한 ubuntu 배포판 설치 및 설정 ubuntu 설치에 대해서는 따로 다루지 않겠다 특별히 주의할것은 없고 네트워크 설정에서 네트워크 브리지로 설정해주자 우분투 설치가 완료되면 다음과 같이 명령어를 입력해준다. sudo apt-get install openssh-server curl vim tree # ssh daemon 설치 # curl : text browser # vim : 확장 vi # tree ..

Python & Automation 2022.02.15

[Ansible] 환경 구성 자동화를 위한 Ansible

Ansible 개요 기존에는 서버 환경을 구성하기 위하여 shell script를 사용하였다. script방식이란 CLI(Command Line Interface) 환경에서 사용하는 방식이다. 하지만 shell script를 이용하여 여러 개의 서버를 관리할 경우 일관성을 유지하는 게 쉽지 않고 , shell script를 이용할 때 배포관리에 대한 문제점이 존재한다.(테스트 환경과 실제 구동환경이 100% 일치할 수 없기 때문에) 이러한 문제점들을 해결하기 위하여 나온 해결법 중 하나가 바로 Infrastructure ad a Code (IaC)이다. Infrastructure as a Code https://www.redhat.com/ko/topics/automation/what-is-infrastr..

Python & Automation 2022.02.14