본문 바로가기

전체 글

C276x260.fwebp.q85 [draft] Ansible 동적 인벤토리 설정하는 방법(aws_es2 plugin) Ansible 동적 인벤토리 설정하는 방법(aws_es2 plugin)Ansible 동적 인벤토리 설정 (AWS EC2 Plugin)Ansible은 동적 인벤토리(Dynamic Inventory) 를 사용하여 AWS EC2 인스턴스를 자동으로 검색하고, 태그·리전·상태 기준으로 인벤토리를 동적으로 생성할 수 있습니다.1. 사전 요구사항 (Requirements)pthon >= 3.6boto3 >= 1.16.0botocore >= 1.19.0AWS API 접근 가능한 Credential 설정2. boto3 설치Ubuntu/Debian 계열sudo apt install -y python3-boto3설치 확인python3 -c "import boto3; print(boto3.__version__)"3. AWS.. 더보기
C276x260.fwebp.q85 [draft] Ansible inventory(인벤토리) 설정하는 방법 Ansible inventory(인벤토리) 설정하는 방법1. Ansible Inventory란?Ansible은 Inventory(인벤토리) 라고 불리는 호스트 목록(또는 그룹)을 기반으로 여러 서버(관리 대상 노드)에 대해 동시에 작업을 수행합니다.Inventory는 대상 서버 리스트 역할을 수행그룹 및 패턴을 사용해 실행 대상 선택 가능INI, YAML, 디렉터리 구조 등 다양한 방식 지원2. Ansible 설정 파일 우선순위ANSIBLE_CONFIG (환경 변수)ansible.cfg (현재 디렉토리)~/.ansible.cfg (홈 디렉토리)/etc/ansible/ansible.cfg (기본 설정)3. 사용자 전용 ansible.cfg 설정vim ~/.ansible.cfgcat ~/.ansible.cf.. 더보기
C276x260.fwebp.q85 [draft] CentOS 7에서 Ansible 설치 및 업그레이드하는 방법 CentOS 7에서 Ansible 설치 및 업그레이드하는 방법테스트 환경운영체제 정보$ cat /etc/redhat-releaseCentOS Linux release 7.9.2009 (Core)기본 Python 환경 확인CentOS 7의 기본 Python은 2.x 계열입니다.$ python --versionPython 2.7.5Ansible 설치yum을 이용한 Ansible 설치yum install -y ansible ansible-python3Ansible 버전 확인ansible --version$ ansible --versionansible 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/... 더보기
C276x260.fwebp.q85 [draft] macOS에서 Ansible 설치하는 방법 macOS에서 Ansible 설치하는 방법테스트 환경macOS 버전 확인system_profiler SPSoftwareDataType | egrep 'System Version'$ system_profiler SPSoftwareDataType | egrep 'System Version' System Version: macOS 12.5 (21G72)Ansible 설치(Homebrew Install)Homebrew를 통한 Ansible 패키지 검색Homebrew 저장소에 등록된 Ansible 관련 패키지를 확인합니다.brew search ansible$ brew search ansible==> Formulaeansible ansible-cmdb ansible-language-server .. 더보기
C276x260.fwebp.q85 [draft] docker compose의 version 속성이 폐지되었다는 경고 메시지 docker compose의 version 속성이 폐지되었다는 경고 메시지Docker Compose에서 version 속성이 폐지된 이유는 Docker Compose V2의 출시와 관련이 있습니다. Docker Compose V2는 Go 언어로 재작성되어 Docker CLI와 통합되었습니다. 이를 통해 보다 일관된 사용자 경험을 제공하고 많은 변경 사항이 도입되었습니다. Docker Compose V2 이상 버전에서는 자동으로 최신 구성 파일 스키마를 사용하므로 version 속성을 명시적으로 정의할 필요가 없습니다.경고 메시지$ docker compose up -dWARN[0000] /docker/docker-compose.yml: `version` is obsolete최신 Docker Compose .. 더보기
C276x260.fwebp.q85 [draft] 우분투에서 Ghost 블로그를 삭제하는 방법 우분투에서 Ghost 블로그를 삭제하는 방법작업 디렉토리로 이동cd /var/www/ghostGhost 삭제ghost uninstall(또는)echo '' | ghost uninstall$ ghost uninstallLove open source? We’re hiring JavaScript Engineers to work on Ghost full-time.https://careers.ghost.orgWARNING: Running this command will delete all of your themes, images, data, any files related to this Ghost instance, and the contents of this folder!There is no going back!.. 더보기
C276x260.fwebp.q85 [draft] 우분투에서 Ghost 블로그를 설치하는 방법 우분투에서 Ghost 블로그를 설치하는 방법Ghost는 Node.js로 작성된 오픈 소스 블로그 플랫폼입니다. Nginx 및 MySQL과 함께 Ghost를 설치합니다.전제 조건공식적으로 권장되는 프로덕션 설치에는 다음 스택이 필요합니다.Ubuntu 20.04 또는 Ubuntu 22.04NGINX (SSL을 위한 최소 1.9.5)지원되는 Node.js 버전MySQL 8Systemd적어도 1GB 메모리가 있는 서버등록된 도메인 이름테스트 환경운영체제 버전 정보$ lsb_release -dDescription: Ubuntu 22.04.2 LTS1. Nginx 설치 및 설정sudo ln -s /etc/nginx/conf.d /etc/nginx/sites-availablesudo ln -sf /etc/ngi.. 더보기
C276x260.fwebp.q85 [draft] SK 쉴더스 2023 클라우드 보안 가이드 2023 클라우드 보안 가이드sk shieldus : https://www.skshieldus.com/kor/support/download/report.do 2023 클라우드 보안 가이드 - AWS 더보기