전체 글 썸네일형 리스트형 [7.7] Ansible(환경 설정 자동화, nginx, wordpress 설치) --- 앤서블 환경 설정 자동화 # vi keyscan.yml - name: Setup for the Ansible's Environment hosts: localhost gather_facts: no tasks: - name: Generate keyscan shell: "{{ item }}" with_items: - "ssh-keyscan 192.168.0.241 >> ~/.ssh/known_hosts" - "ssh-keyscan 192.168.0.245 >> ~/.ssh/known_hosts" - "ssh-keyscan 192.168.0.211 >> ~/.ssh/known_hosts" - "ssh-keyscan 192.168.0.251 >> ~/.ssh/known_hosts" => 미리 known_h.. 더보기 [7.6] Ansible(ad-hoc, playbook) --- 앤서블 실습 환경 (cpu, ram 용량) ansible-server 1c 1g centos-node01 1c 1g centos-node02 1c 1g ubuntu-node01 1c 1g ubuntu-node02 1c 1g --- 베이그런트 사용 C:\Users\johnlee>cd c:\HashiCorp c:\HashiCorp>vagrant init https://app.vagrantup.com/boxes/search?provider=virtualbox => vagrant에서 contos 사용을 위해 하시코프사에서 만들어 놓은 이미지(vargrant에서는 이미지를 Box라고 함) c:\HashiCorp>notepad Vagrantfile config.vm.box = "centos/7" => cen.. 더보기 [7.5] AZURE CLI / GCP CLI / Terraform(AZURE, GCP), Ansible azure-terraform # git clone https://github.com/hali-linux/azure_set.git => tf 파일들 모아 놓은 저장소 # vi variables.tf variable "resource_group_name_prefix" { default = "rg" description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription." } variable "resource_group_location" { default = "koreacentral" description = "Location of the resource .. 더보기 [7.4] Terraform (AWS : ASG, VPC, EC2, ALB )(AZURE) [AWS] - ec2 asg - # vi variables.tf variable "instance_security_group_name" { description = "The name of the security group for the EC2 Instances" type = string default = "terraform-example-instance" } variable "http_port" { description = "The port the server will use for HTTP requests" type = number default = 80 } variable "ssh_port" { description = "The port the server will use for SSH request.. 더보기 [7.1] Terraform 복습(alb 생성) 구분 CloudFormation Terraform 필드 대소문자 섞어서 작성 소문자로 작성 => 가독성을 위해 중간에 _를 넣어줌 보안 그룹에 [] (대괄호) attach IGW를 만들고 별도로 attach IGW를 만들면서 동시에 attach 라우팅 테이블 라우팅 테이블을 만든 후 별도로 라우트 정보를 넣어 줌 라우팅 테이블을 만들면서 동시에 라우트 정보를 넣어줌 형식 yaml json * Terraform에서 data의 정보를 가져올 때 : => data.aws(프로바이더)_availability_zones(가용영역).available.names[0] (가용영역의 첫 번째인 2a 가용영역을 가져옴) * Terraform에서 id를 가지고 올 때는 "(큰 따옴표) 로 감싸지 말 것 Terraform으로.. 더보기 [6.30] CloudFormation, Terraform(yaml , 스택, tf ) CloudFormation을 위한 yaml 파일 작성 - 주요 섹션 설명 1. Resources(생성) : AWS 인프라의 실질적인 섹션입니다. EC2 인스턴스, S3 버킷, ELB등과 같은 클라우드 포메이션을 이용해 AWS 웹 콘솔에서 실행하는 것으로 거의 모든 리소스 유형을 생성할 수 있습니다. 하지만 신규 또는 최첨단의 AWS 리소스는 즉시 제공되지 않는 경우가 종종 있습니다. 리소스에는 기본 반환값이 있습니다. Ref를 이용해 이 반환값을 얻어올 수 있고 템플릿의 다른 위치에 사용할 수 있습니다. 예를 들어 AWS::EC2::VPC 리소스 유형은 기본 반환값을 갖고 있고 이 값은 VPC의 ID 입니다. 2. Parameters(입력) : 명령줄 도구에 입력하는 매개변수와 동일하게 스택을 만들거나 .. 더보기 [6.29] ad hoc DevOps 카테고리 1. IaC - 구성 및 설정 자동화 - Terragorm, Ansible 2. Container 기술 및 오케스트레이션 - Docker, Kubernetes 3. CI/CD (Continuous Integration/Continuous Deployment, Delivery) - Jenkins, Git, Gitlab adhoc - 한 줄 한 줄 세팅하는 것 VirtualBox 가상머신 생성 VirtualBox 가상머신 시작 mobaXterm 접속 --- CentOS7 설정 # yum install -y bash-completion wget unzip rdate # rdate -s time.bora.net # setenforce 0 # sed -i s/^SELINUX=.*$/SELIN.. 더보기 [6.21] 하이브리드 클라우드(ESXi, Storage gateway) # aws에서 윈도우 서버 구축 # EFS ESXi CPU : 4C RAM : 16GB SSD : 128GB VM(AWS File Gateway) CPU : 4C RAM : 12GB SSD : 128GB(Cache 150GB) # ESXi 설치 # Storage gateway * SCSI(Small Computer System Interface) : 예전에 USB처럼 쓰이던 장치, SCSI가 저장장치를 연결하는 인터페이스로 이용되어 왔기 때문에 저장 장치라는 의미로 사용 * ISCSI : ISCSI는 Internet으로 연결해서 저장공간을 사용한다는 의미 (블록 스토리지) * OS가 서울에, CPU와 메모리가 뉴욕에 있음 * 서울과 뉴욕이 10Gbps 속도로 통신 # 파일 공유 생성 우선 파일 공유 생성.. 더보기 이전 1 2 3 4 5 6 ··· 8 다음