AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[puppet-dashboard](server)

Martin Hope
Dziki_Jam
Asked: 2016-07-27 06:52:12 +0800 CST

无法安装 Example42 puppet 仪表板模块

  • 0

我使用安装了 example42 puppet 仪表板模块sudo puppet module install example42-puppetdashboard,之后我添加class { 'puppetdashboard': }到site.pp中的默认节点部分并触发。一切工作几乎都很好,但最后我得到了以下错误:puppet agent -t

Error: Failed to apply catalog: Parameter source failed on File[puppetdashboard.dir]: Cannot use relative URLs '' at /etc/puppetlabs/code/environments/production/modules/puppetdashboard/manifests/init.pp:488

我怎样才能解决这个问题?也许有人可以指点我详细的安装手册。

puppet puppet-dashboard
  • 1 个回答
  • 67 Views
Martin Hope
Francesco Malvezzi
Asked: 2015-10-01 23:28:05 +0800 CST

木偶仪表板:导入报告时格式不匹配

  • 0

全新的 puppet-dashboard 2.0.0-beta1 无法导入任何报告:delayed_job 工人抱怨:

Importing report at 2015-10-01 04:55 UTC
  Attribute was supposed to be a Array, but was a ActiveSupport::HashWithIndifferentAccess
  Backtrace
    app/models/report.rb:134:in `create_from_yaml'

puppet 客户端版本为:4.2.2

它看起来格式不匹配,但我发现的唯一“格式”指令是:

preferred_serialization_format = pson

仪表板日志很简单:

2015-10-01T08:09:16+0200: [Worker(delayed_job.1 host:puppet pid:19415)] Class#create_from_yaml completed after 0.0752
2015-10-01T08:09:16+0200: [Worker(delayed_job.1 host:puppet pid:19415)] 1 jobs processed at 11.1567 j/s, 0 failed ...

我错过了什么?

puppet-dashboard
  • 1 个回答
  • 76 Views
Martin Hope
Larsen
Asked: 2013-03-23 01:41:40 +0800 CST

Augeas 任务显示为已更改,尽管文件未更改

  • 0

我已经安装了 puppet-dashboard 并注意到我所有的 augeas 任务都显示为“已更改”。我希望 augeas 自动检查要设置的值是否已经设置,在这种情况下什么都不做。

我的食谱:

$puppet_conf = "/etc/puppet/puppet.conf"
file { "${puppet_conf}": }

augeas { "puppet_conf":
        context => "/files/${puppet_conf}/",
        changes => [
                "set agent/report true",
        ],
        require => File["${puppet_conf}"],
}

之前已经设置值时正常运行:

info: Applying configuration version '1363882751'
debug: Augeas[puppet_conf](provider=augeas): Opening augeas with root /, lens path , flags 0
debug: Augeas[puppet_conf](provider=augeas): Closed the augeas connection
debug: Augeas[puppet_conf](provider=augeas): Opening augeas with root /, lens path , flags 0
debug: Augeas[puppet_conf](provider=augeas): sending command 'set' with params ["/files//etc/puppet/puppet.conf/agent/report", "true"]
debug: Augeas[puppet_conf](provider=augeas): Closed the augeas connection
notice: /Stage[main]/Puppet_agent/Augeas[puppet_conf]/returns: executed successfully

文件的日期/时间没有改变,所以它显然不会改变文件。虽然,puppet-dashboard 将文件显示为“已更改”。如果我输入一个“onlyif”,那部分将不会出现,但我不想在 onlyif 中重复所有内容,而且我一次只能设置一个配置选项。

Debian Squeeze
Puppet 2.6.2
Augeas 0.10.0

配置它的正确方法是什么?

puppet-dashboard
  • 1 个回答
  • 442 Views
Martin Hope
Banjer
Asked: 2012-06-09 07:11:32 +0800 CST

从我的站点清单中的 Puppet 仪表板引用组/类

  • 2

我正在使用 Puppet Dashboard 作为我的 ENC,但我不确定如何引用或使用/etc/puppet/manifests/site.pp.

我在仪表板中定义了两个组:CentOS6和SLES11。如果我想包含组中CentOS6的某个模块列表和组中的某个模块列表,我的 site.pp 应该是什么样子SLES11?

我正在尝试做这样的事情:

# /etc/puppet/manifests/site.pp

node basenode {
  include hosts
  include ssh::server
  include ssh::client
  include authentication
  include sudo
  include syslog
  include mail
}

node 'CentOS6' inherits basenode {
  include profile
}

node 'SLES11' inherits basenode {
  include usrmounts
}

我的模块中有特定于操作系统的案例语句,但有些模块仅适用于特定发行版。所以我想我有两个问题:

  1. 这是以特定于操作系统的方式应用模块/资源的最佳方式吗?还是以上内容让你想吐?
  2. 不管#1,我仍然很好奇如何在我的清单中从仪表板引用类、组和节点。我已阅读外部节点文档,但我没有看到它们与清单的对应关系。

谢谢大家。

puppet puppet-dashboard
  • 2 个回答
  • 2056 Views
Martin Hope
Banjer
Asked: 2012-05-26 07:16:48 +0800 CST

puppet-dashboard:无法从库存服务中检索事实

  • 3

我正在尝试配置 puppet-dashboard,但我遇到了库存/事实问题:

Could not retrieve facts from inventory service: 403 "Forbidden request: puppetmasterhostname(ip.address.was.here) access to /facts/agenthostname.example.com [find] at line 99 "

在 puppet master 的 /etc/puppet/auth.conf 中:

path /facts
method find
auth any
allow *

我重新启动了 puppetmaster 和 puppet-dashboard,但仍然出现上述错误。任何想法或故障排除技巧?

更新

我正在运行木偶 v2.7.13。根据要求,这是我的完整 /etc/puppet/auth.conf。其中大部分是配置中已有的默认值:

# allow nodes to retrieve their own catalog (ie their configuration)
path ~ ^/catalog/([^/]+)$
method find
allow $1

# allow nodes to retrieve their own node definition
path ~ ^/node/([^/]+)$
method find
allow $1

# allow all nodes to access the certificates services
path /certificate_revocation_list/ca
method find
allow *

# allow all nodes to store their reports
path /report
method save
allow *

# inconditionnally allow access to all files services
# which means in practice that fileserver.conf will
# still be used
path /file
allow *

### Unauthenticated ACL, for clients for which the current master doesn't
### have a valid certificate; we allow authenticated users, too, because
### there isn't a great harm in letting that request through.

# allow access to the master CA
path /certificate/ca
auth any
method find
allow *

path /certificate/
auth any
method find
allow *

path /certificate_request
auth any
method find, save
allow *

# this one is not stricly necessary, but it has the merit
# to show the default policy which is deny everything else
path /
auth any

# Inventory
path /facts
method find
auth any
allow *

/etc/puppet/puppet.conf

[main]
    # The Puppet log directory.
    # The default value is '$vardir/log'.
    logdir = /var/log/puppet

    # Where Puppet PID files are kept.
    # The default value is '$vardir/run'.
    rundir = /var/run/puppet

    # Where SSL certificates are kept.
    # The default value is '$confdir/ssl'.
    ssldir = $vardir/ssl

[agent]
    # The file in which puppetd stores a list of the classes
    # associated with the retrieved configuratiion.  Can be loaded in
    # the separate ``puppet`` executable using the ``--loadclasses``
    # option.
    # The default value is '$confdir/classes.txt'.
    classfile = $vardir/classes.txt

    # Where puppetd caches the local configuration.  An
    # extension indicating the cache format is added automatically.
    # The default value is '$confdir/localconfig'.
    localconfig = $vardir/localconfig

[master]
   reports = store, http
   reporturl = http://puppetmasterhostname.example.com:3000/reports/upload
   facts_terminus = yaml
   storeconfigs = true
   storeconfigs_backend = puppetdb
   node_terminus = exec
   external_nodes = /usr/bin/env PUPPET_DASHBOARD_URL=http://localhost:3000 /opt/puppet-dashboard/bin/external_node
puppet puppet-dashboard centos6.2
  • 4 个回答
  • 3425 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve