[英]Install module with puppet
Trying to install the module vcsrepo with puppet, but really unsure how it could be done. 试图用puppet安装模块vcsrepo,但真的不确定如何完成。 The commandline to install it is:
安装它的命令行是:
puppet module install puppetlabs-vcsrepo
Tried to install it this way, but that didn't work: 试图以这种方式安装它,但这不起作用:
package { 'vcsrepo':
ensure => installed,
}
It'd be really helpful to see the error output of the first command as that IS the way one installs a Puppet module. 看到第一个命令的错误输出就像安装Puppet模块的方式一样真的很有帮助。 If I had to guess, it probably errored out saying something like
/home/yourusername/.puppet/ does not exist
- by default, when ran by a regular user, puppet install
will attempt to download the module into .puppet/modules
in that user's home directory. 如果我不得不猜测,可能会错误地说像
/home/yourusername/.puppet/ does not exist
这样的东西/home/yourusername/.puppet/ does not exist
- 默认情况下,当由普通用户运行时, puppet install
会尝试将模块下载到.puppet/modules
中用户的主目录。 Running sudo puppet module install module-name
though by default would install the module system-wide into /etc/puppet/modules
. 默认情况下运行
sudo puppet module install module-name
会将系统范围内的模块安装到/etc/puppet/modules
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.