首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >木偶锻模样例42/splunk使用中的故障

问木偶锻模样例42/splunk使用中的故障
EN

Stack Overflow用户
提问于 2014-11-26 19:56:05
回答 1查看 200关注 0票数 1

我想使用https://forge.puppetlabs.com/example42/splunk在我的一些系统上设置splunk。

所以在我的傀儡主人身上我做了puppet module install example42-splunk。

我使用PE控制台,因此我将类splunk和关联的splunk添加到一个具有我的节点之一my-mongo-1的组中。

我登录到my-mongo-1并执行..。

代码语言:javascript
复制
    [root@my-mongo-1 ~]# puppet agent -t
    ...
    Info: Caching catalog for my-mongo-1
    Info: Applying configuration version '1417030622'
    Notice: /Stage[main]/Splunk/Package[splunk]/ensure: created
    Notice: /Stage[main]/Splunk/Exec[splunk_create_service]/returns: executed successfully
    Notice: /Stage[main]/Splunk/File[splunk_change_admin_password]/ensure: created
    Info: /Stage[main]/Splunk/File[splunk_change_admin_password]: Scheduling refresh of Exec[splunk_change_admin_password]
    Notice: /Stage[main]/Splunk/Service[splunk]/ensure: ensure changed 'stopped' to 'running'
    Info: /Stage[main]/Splunk/Service[splunk]: Unscheduling refresh on Service[splunk]
    Notice: /Stage[main]/Splunk/Exec[splunk_change_admin_password]/returns: Could not look up HOME variable.  Auth tokens cannot be cached.
    Notice: /Stage[main]/Splunk/Exec[splunk_change_admin_password]/returns:
    Notice: /Stage[main]/Splunk/Exec[splunk_change_admin_password]/returns:  In handler 'users': The password cannot be set to the default password.
    Error: /Stage[main]/Splunk/Exec[splunk_change_admin_password]: Failed to call refresh: /opt/splunkforwarder/bin/puppet_change_admin_password returned 22 instead of one of [0]
    Error: /Stage[main]/Splunk/Exec[splunk_change_admin_password]: /opt/splunkforwarder/bin/puppet_change_admin_password returned 22 instead of one of [0]
    Notice: Finished catalog run in 11.03 seconds

那我在这里做错什么了?

为什么我会得到Could not look up HOME variable. Auth tokens cannot be cached.错误?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-11-27 13:55:22

我看到您在问木偶上问了这个问题,并在Vagrant中进行了快速测试,有两种解决方案:

1)为“木偶中的扣篮”提供一个不同的密码(因为它抱怨使用默认密码)

代码语言:javascript
复制
class { "splunk":
  install => "server",
  admin_password => 'n3wP4assw0rd',
}

2)将模块升级到没有此问题的更新版本:

puppet module upgrade example42-splunk --force

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27157823

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档