"Puppet"의 두 판 사이의 차이
둘러보기로 가기
검색하러 가기
잔글 |
잔글 |
||
73번째 줄: | 73번째 줄: | ||
== 참고 문헌 == | == 참고 문헌 == | ||
+ | *http://wiki.tunelinux.pe.kr/pages/viewpage.action?pageId=2588702 | ||
*[http://theplmingspace.tistory.com/791 http://theplmingspace.tistory.com/791] | *[http://theplmingspace.tistory.com/791 http://theplmingspace.tistory.com/791] | ||
*[[Chef|Chef]] : [http://www.opscode.com/chef/ http://www.opscode.com/chef/] | *[[Chef|Chef]] : [http://www.opscode.com/chef/ http://www.opscode.com/chef/] |
2015년 11월 4일 (수) 19:15 판
배포 자동화 솔루션인 puppet를 정리 합니다.
- 홈페이지 : http://www.puppetlabs.com/, http://puppetlabs.com/puppet/puppet-open-source/, https://github.com/puppetlabs, http://forge.puppetlabs.com/
- 다운로드 :
- 라이선스 : Apache 2.0
- 플랫폼 : Ruby
Puppet 개요
Puppet 용어
용어 | 상세 |
Manifest | 환경 설정 정보 파일 vim /etc/puppet/environments/production/manifests/~.pp node "~" { Resource { "~": attr => value, } }
puppet apply ~.pp #--- local machine에서 실행, node 부분이 없음 |
Catalog | Manifest가 컴파일되어 Puppet Agent에서 전달되는 정보 |
puppetmasterd | 관리 서버에서 실행되는 데몬 |
puppetd | 각 서버에서 실행되는 데몬 |
Puppet 구성
puppet --version
Folder 구조
/etc/puppet/
- manifest/
- site.pp (이름 변경 가능)
import 'nodes.pp' - nodes.pp (이름 변경 가능)
node '~' {
include 모듈명
#--- Class, Resource, Variabled 등 포함
}
- site.pp (이름 변경 가능)
- modules/모듈명/
- manifest/init.pp
class 모듈명 {
#--- files, settings, modules, scripts 등 포함
}
- manifest/init.pp
file
file { '/tmp/zztemp.conf': content => '~\n", ensure => file, mode => '06400', owner => root, group => root, }
service
service {'nginx': hasrestart => true, hasstatus => true, subscribe = file ["nginx.conf"] }
참고 문헌
- http://wiki.tunelinux.pe.kr/pages/viewpage.action?pageId=2588702
- http://theplmingspace.tistory.com/791
- Chef : http://www.opscode.com/chef/
- Capistrano : https://github.com/capistrano/capistrano/wiki