git版本控制puppet


git版本控制puppet
 
#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                                                             #从仓库中下载代码
 

相关内容

    暂无相关文章