템플릿을 계층화하는 목적 중 하나는 다양한 역할별 템플릿이 공통 기반 요소를 공유할 때 일
관성을 얻기 위한 것이다. 하지만 계층화의 더 효율적인 대안은 서버를 템플릿으로 굽기 전 맞
춤형으로 수정하는 데 사용하는 공통 스크립트나 구성 정의를 공유하는 것이다. 예를 들어 [그
림
7
-
4
]처럼 기반 스크립트는 공통 유틸리티, 감시 에이전트, 공통 구성 설정을 설치할 수 있
다. 모든 역할별 템플릿은 스톡 서버 이미지로부터 만들어지며, 모든 기반 요소와 역할별 요소
를 하나의 단계에서 추가한다.
그림
7
-
4
공유기반스크립트로템플릿을만드는단일단계의절차
감시 에이전트
설치
감시 에이전트
설치
애플리케이션 서버
소프트웨어 설치
웹 서버 템플릿
애플리케이션
서버 템플릿
웹 서버 소프트웨어
설치
7.7
서버 템플릿 관리 자동화하기
서버 한 대를 기동하고, 업데이트를 적용한 후, 템플릿을 구워 사용할 수 있기까지 템플릿을 만
드는 전체 절차를 자동화하기는 어렵지 않다.
4
장
97
페이지의 ‘서버 템플릿을 패키징하는 도구’
에서 템플릿을 만드는 데 사용할 수 있는 도구를 설명했다.
7
.
7
.
1
서버를 굽기 전에 수정하기
패커처럼 전체 템플릿 생성 절차를 자동화하는 도구를 사용하면 서버를 템플릿으로 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.