1. rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm
2. yum –y install puppet
3. puppet resource package puppet ensure=latest
#git 을 이용한 puppet apply 만 적용
4. yum –y install git
5. git 계정 생성 (pssh 사용, 82서버 pssh 폴더에서)
- pssh -h all.hosts "groupadd git"
- pssh -h all.hosts "useradd -d /home/git -m -g git git"
- pscp -h all.hosts -r /home/git/.ssh /home/git/.ssh
- pssh -h all.hosts "chown -R git:git /home/git/.ssh"
6. git clone puppet source
- pssh -h all.hosts "su - git –c 'git clone git@xxx.xxx.xxx.82:/block/gitrepo/puppet.git'"
7. papply.sh
#!/bin/sh
pssh -h all.hosts -i -t 0 "sh /home/git/gitpull.sh"
pssh -h all.hosts -i -t 0 "/home/git/puppet/papply.sh"
[puppet PC 설정]
1. git 설치
2. (설치폴더 이동) cd d:
cd ioffice
3. eval ‘ssh-agent –s’
4. ssh-add root.key (ssh key 추가)
5. git clone git@xxx.xxx.xxx.82:/block/gitrepo/puppet.git
6. 해당 폴더로 이동, Open with Atom