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 / 问题 / 772861
Accepted
msanford
msanford
Asked: 2016-04-26 14:04:11 +0800 CST2016-04-26 14:04:11 +0800 CST 2016-04-26 14:04:11 +0800 CST

通过 puppet 模块的 PostgreSQL 9.5 无法在 Ubuntu Trusty 上安装

  • 772

尝试使用 Puppet 在 Ubuntu Trusty 上安装 PostgreSQL 9.5,使用我能找到的所有文档,具有以下简单的类结构:

  class { 'postgresql::globals':
    manage_package_repo => true,
    version             => '9.5'
  }
  ->
  class { 'postgresql::server':
    ip_mask_allow_all_users => '0.0.0.0/0',
    listen_addresses        => '*',
    postgres_password       => '',
    encoding                => 'UTF-8',
    locale                  => 'en_US.UTF-8',
  }

我遇到以下致命错误:

==> default: Debug: Automatically imported postgresql::server::database_grant from postgresql/server/database_grant into production
==> default: Error: validate_re(): "B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8" does not match ["\\A(0x)?[0-9a-fA-F]{8}\\Z", "\\A(0x)?[0-9a-fA-F]{16}\\Z"] at /tmp/vagrant-puppet/modules-964288a1df1d89c6bf2b0015dc43c600/apt/manifests/key.pp:60 on node vagrant.local
==> default: Error: validate_re(): "B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8" does not match ["\\A(0x)?[0-9a-fA-F]{8}\\Z", "\\A(0x)?[0-9a-fA-F]{16}\\Z"] at /tmp/vagrant-puppet/modules-964288a1df1d89c6bf2b0015dc43c600/apt/manifests/key.pp:60 on node vagrant.local

我努力了

添加package_name => 'postgresql-9.5'到::globals,无济于事。

在绝望的行为中,甚至:

  exec {'Add postgresql 9.5 key':
    command => '/usr/bin/wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo /usr/bin/apt-key add -',
    user    => 'root'
  }
  ->
  exec {'Add postgresql 9.5 apt':
    command  => '/bin/echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list.d/postgresql.list',
    user     => 'root'
  }
  ->
  exec {'apt-get update':
    command  => '/usr/bin/apt-get update',
    user     => 'root'
  }
  ->
  class { 'postgresql::globals':
  ...

我注意到这B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8对应于 postgresql 9.3:似乎某些内容没有以正确的顺序更新。

puppet postgresql ubuntu-14.04
  • 1 1 个回答
  • 271 Views

1 个回答

  • Voted
  1. Best Answer
    msanford
    2016-04-26T14:04:11+08:002016-04-26T14:04:11+08:00

    原来这是由于一个非常过时的apt木偶模块。

    根据文档将模块更新为apt 2.2.2以匹配postgresql 4.7.1(我已经拥有)。

    • 2

相关问题

  • 如何修复 Puppet 完全限定的参数路径错误?

  • puppet:修改配置文件后强制重启服务

  • 木偶模块资源

  • 傀儡主机名问题

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