我正在评估木偶企业2015.2,没有任何问题,直到我尝试安装代理在一个SLES 11盒。
我遵循了上面的步骤:
在PE控制台上将1类pe_repo::platform::sles_11_x86_64添加到PE主组中
2-客户端执行的卷曲:
curl -k https://myserver:8140/packages/current/install.bash | sudo bash
命令日志:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14657 100 14657 0 0 117k 0 --:--:-- --:--:-- --:--:-- 4771k
Removing repository 'puppet-enterprise' [done]
Repository 'puppet-enterprise' has been removed.
Adding repository 'puppet-enterprise' [done]
Repository 'puppet-enterprise' successfully added
Enabled: Yes
Autorefresh: No
URI: https://myserver:8140/packages/2015.2.1/sles-11-x86_64?ssl_verify=no
Retrieving repository 'puppet-enterprise' metadata [done]
Building repository 'puppet-enterprise' cache [done]
Specified repositories have been refreshed.
**Unknown option '--from'**
Loading repository data...
Reading installed packages...
**'puppet-agent' not found.**
/tmp/tmp.SVlCxPXa7e: line 91: /opt/puppetlabs/puppet/bin/puppet: No such file or directory
[main]
/tmp/tmp.SVlCxPXa7e: line 100: /opt/puppetlabs/puppet/bin/puppet: No such file or directory
/tmp/tmp.SVlCxPXa7e: line 113: /opt/puppetlabs/puppet/bin/facter: No such file or directory
/tmp/tmp.SVlCxPXa7e: line 113: /opt/puppetlabs/puppet/bin/ruby: No such file or directory
/tmp/tmp.SVlCxPXa7e: line 113: /opt/puppetlabs/puppet/bin/puppet: No such file or directory
/tmp/tmp.SVlCxPXa7e: line 122: /opt/puppetlabs/puppet/bin/puppet: No such file or directory
/tmp/tmp.SVlCxPXa7e: line 123: /opt/puppetlabs/puppet/bin/puppet: No such file or directory
/tmp/tmp.SVlCxPXa7e: line 127: /opt/puppetlabs/puppet/bin/puppet: No such file or directory
/tmp/tmp.SVlCxPXa7e: line 62: /opt/puppetlabs/puppet/bin/puppet: No such file or directory
/tmp/tmp.SVlCxPXa7e: line 62: /opt/puppetlabs/puppet/bin/puppet: No such file or directory
/tmp/tmp.SVlCxPXa7e: line 62: /opt/puppetlabs/puppet/bin/puppet: No such file or directory
/tmp/tmp.SVlCxPXa7e: line 62: /opt/puppetlabs/puppet/bin/puppet: No such file or directory
Error running install script /tmp/tmp.SVlCxPXa7e脚本第217行的第一个注意事项:
zypper --non-interactive dist-upgrade --from puppet-enterprise
--from不被认为是一个有效的论点。也许正确的是'-r'?
第二个注意:脚本没有安装傀儡代理,所以我尝试安装它-1.2.5-1.sles11.x86_64‘ve,然后在傀儡代理中运行zypper
通过这个解决方法,我能够安装代理,然后再次运行脚本,并遇到libfacter的问题:
curl -k https://myserver:8140/packages/current/install.bash | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14657 100 14657 0 0 153k 0 --:--:-- --:--:-- --:--:-- 13.9M
Removing repository 'puppet-enterprise' [done]
Repository 'puppet-enterprise' has been removed.
Adding repository 'puppet-enterprise' [done]
Repository 'puppet-enterprise' successfully added
Enabled: Yes
Autorefresh: No
URI: https://myserver:8140/packages/2015.2.1/sles-11-x86_64?ssl_verify=no
Retrieving repository 'puppet-enterprise' metadata [done]
Building repository 'puppet-enterprise' cache [done]
Specified repositories have been refreshed.
**Unknown option '--from'**
Loading repository data...
Reading installed packages...
**'puppet-agent' is already installed.**
Resolving package dependencies...
Nothing to do.
**libfacter was not found. Please make sure it was installed to the expected location.
libfacter was not found. Please make sure it was installed to the expected location.
libfacter was not found. Please make sure it was installed to the expected location.
libfacter was not found. Please make sure it was installed to the expected location.**
Error running install script /tmp/tmp.GDlmNNh07V编辑1:它似乎只发生在SLES 11 SP1上。我已经在SLES 11 SP3上进行了测试,它正在工作。
发布于 2015-11-11 07:57:23
不幸的是,libfacter was not found. Please make sure it was installed to the expected location.错误消息是假的。对我来说,真正的问题是,我将LC_NAME环境变量设置为在傀儡机器上不可用的地区。运行unset LC_NAME后,傀儡开始工作。(我知道这很奇怪,但我可以可靠地复制它。)
所以,首先尝试unset LC_NAME,如果这无助于运行strace -e file -f puppet,这就是帮助我解决问题的原因。
https://stackoverflow.com/questions/33609907
复制相似问题