Chinaunix首页 | 论坛 | 博客
  • 博客访问: 295400
  • 博文数量: 47
  • 博客积分: 1667
  • 博客等级: 上尉
  • 技术积分: 686
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-06 16:20
文章分类

全部博文(47)

文章存档

2013年(20)

2012年(20)

2011年(7)

分类: LINUX

2013-04-09 16:07:10

#git 和puppet  可以见其他文档


#cd /etc/puppet/
#git init                     #初始化git
#git add *                 #将目录下所有文件加入到git cache
#mkdir -p /data/git/
#git commit  -m "/etc/puppet"   #提交
#git clone --bare  /etc/puppet/    /data/git/puppet.git   #克隆出一个没有文件的仓库


#mkdir  -p /tmp/puppet  ;  cd /tmp/puppet                #建立puppet修改目录
#git clone /data/git/puppet.git   .                              #克隆仓库到当前目录
#git config  --global user.name "ooooldman"                 #配置个人信息
#git config --global user.email   "ooooldman@163.com"

#echo '##puppet test' >> /etc/puppet/manifests/nodes.pp
#git add  /etc/puppet/manifests/nodes.pp
#git commit  -m "nodes.pp"
#git push                                                              #提交到仓库





#cd /etc/puppet
#git pull                                                             #从仓库中下载代码
阅读(3699) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~