我正在评估 Puppet Enterprise 2015.2,在我尝试在 SLES 11 机器上安装代理之前没有任何问题。
我已经按照上面的程序:
1 - 添加类 pe_repo::platform::sles_11_x86_64 到 PE 控制台上的 PE Master 组
2 - 从客户端执行 curl:
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'?
第二个注意事项:脚本没有安装 puppet-agent,所以我尝试安装它,将文件 puppet-agent-1.2.5-1.sles11.x86_64.rpm 推送到客户端,然后在 puppet 中运行 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 上进行了测试,并且可以正常工作。