我要拿回一个用傀儡安装服务器的项目。我们的process.pp文件工作正常
当我跑的时候
puppet parser validate manifests/ikuwprocess.pp没有任何错误--不管是什么
但是在我们调用apt的过程中,我得到了这个错误:
Error: Syntax error at 'Hash'; expected ')' at /tmp/modules/apt/manifests/init.pp:6 on node ourserver.40qyqnbkn0mu3edhynn2jlebec.ax.internal.toto.netinit.pp似乎是来自木偶的未触摸文件,可以在这里找到:https://github.com/puppetlabs/puppetlabs-apt/blob/master/manifests/init.pp
但是当我运行解析器时,我得到了错误。
puppet parser validate /tmp/modules/apt/manifests/init.pp
Error: Could not parse for environment production: Syntax error at 'Hash'; expected ')' at /tmp/modules/apt/manifests/init.pp:6我不知道该怎么办..。在这里,我的操作系统版本:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"我用的木偶版本
puppet --version
3.8.7我做错了什么我错过了什么?
如果你需要更多的信息,请告诉我,我会尽快提供。
在推荐了编辑之后,我尝试过这样做,但仍然不起作用:
puppet module install puppetlabs-stdlib --version 4.21.0
Notice: Preparing to install into /home/myaccount/.puppet/modules ... Notice: Created target directory /home/myaccount/.puppet/modules
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/home/myaccount/.puppet/modules
└── puppetlabs-stdlib (v4.21.0)编辑试图迁移到木偶的最后一个版本。
wget -O - https://raw.githubusercontent.com/petems/puppet-install-shell/master/install_puppet_agent.sh | sudo sh
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
puppet-agent
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 0 B/16.8 MB of archives.
After this operation, 91.3 MB of additional disk space will be used.
Selecting previously unselected package puppet-agent.
(Reading database ... 30718 files and directories currently installed.)
Preparing to unpack .../puppet-agent_5.3.3-1trusty_amd64.deb ...
Unpacking puppet-agent (5.3.3-1trusty) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up puppet-agent (5.3.3-1trusty) ...但当我试图叫木偶时:
puppet --version
-bash: /usr/bin/puppet: No such file or directory在/usr/bin/里没有什么叫木偶
发布于 2017-11-06 17:35:47
您的模块傀儡实验室/apt需要依赖化蛹/stdlib(也请参阅https://forge.puppet.com/puppetlabs/apt/dependencies)。
将stdlib (即使用puppet module install puppetlabs-stdlib --version 4.21.0)添加到系统模块路径中。
https://serverfault.com/questions/882112
复制相似问题