jcdiy0601 发表于 2014-10-17 16:35

puppet问题

将/etc/puppet归入Git管理
在/tmp下创建puppet临时仓库
git clone git://127.0.0.1/puppet.git puppet

报错
正克隆到 'puppet'...
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

ps -ef |grep git
daemon   10313   10 20:45 ?      00:00:00 git-daemon --base-path=/tmp/puppet_repo/ --detach --user=daemon --listen=127.0.0.1 --group=daemon --export-all --enable=receive-pack --enable=upload-pack --enable=upload-archive

rdcwayx 发表于 2014-10-17 19:06

这个是git 的问题,和puppet无关。

是本地装的git 服务器吗?你看看哪里设了不对?

还有, git为啥用/tmp做路径?能移到其他目录吗?

jcdiy0601 发表于 2014-10-18 08:40

回复 2# rdcwayx


    安装完git之后,创建了puppet repo目录,mkdir -pv /tmp/puppet_repo/puppet.git
然后cd /tmp/puppet_repo/puppet.git
创建仓库
git --bare init
设置目录访问权限
chown -R daemon.daemon /tmp/puppet_repo/
然后就采用git daemon方式启动git
git daemon --base-path=/tmp/puppet_repo/ --detach --user=daemon --listen=127.0.0.1 --group=daemon --export-all --enable=receive-pack --enable=upload-pack --enable=upload-archive

进入/tmp下创建puppet的临时仓库
git clone git://127.0.0.1/puppet.git puppet

然后就报这个了

rdcwayx 发表于 2014-10-19 06:40

chown -R daemon.daemon /tmp/puppet_repo/

文档要求的吗?如果是git init后的话,不应该再更改owner了。

jcdiy0601 发表于 2014-10-20 13:44

回复 4# rdcwayx


    嗯书上是这么写的,要用daemon启动的方式
页: [1]
查看完整版本: puppet问题