使用Puppet缺少dsc22在Vagrant Centos上安装Cassandra

时间:2015-09-23 00:30:27

标签: cassandra centos vagrant puppet

我是傀儡的新手。我知道cassandra在yum中缺失所以我认为木偶配方会下载并安装它,但似乎locp/cassandra只是试图从yum安装它。该配方应该有效,但我没有在https://github.com/locp/cassandra上看到为什么它不能为我工作或者我需要在它工作之前设置的任何东西。

我使用librarian-puppet在puppet / modules中安装模块。

错误

==> default: Notice: /Stage[main]/Cassandra/File[/var/lib/cassandra/data]: Dependency Package[dsc22] has failures: true

Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  config.vm.box = "puphpet/centos65-x64"

  config.vm.provision "puppet" do |p|
    p.module_path = "puppet/modules"
    p.manifests_path = "puppet/manifests"
    p.manifest_file = "site.pp"
  end
end

木偶/表现/ site.pp

class { 'cassandra':
  cluster_name    => 'foobar',
  listen_address  => "${::ipaddress}",
}

木偶/ Puppetfile

forge 'https://forgeapi.puppetlabs.com'

mod "locp/cassandra"

2 个答案:

答案 0 :(得分:2)

您也可以使用cassandra::datastax_repo课程。要将其纳入@Frédéric-Henri提供的答案中,可以做到以下几点:

class { 'cassandra::datastax_repo': } ->
class { 'cassandra':
    cluster_name   => 'foobar',
    listen_address => "${::ipaddress}"
}

答案 1 :(得分:1)

这可能是因为没有配置回购(见here

将以下内容添加到$(document).on('click', '.push', function(e) { e.preventDefault(); var id = $(this).attr('id'); $.ajax({ type: 'post', url: 'remote/remote.php', // in here you should put your query data: { 'bookid': id, 'lang': 'en' }, // here you pass your id via ajax . // in php you should use $_POST['post_id'] to get this value success: function(r) { // now you can show output in your modal $('#bookdetails').modal({ backdrop: 'static', keyboard: false }) // put your modal id $('.something').show().html(r); } }); }); ,并确保在您的cassandra类中添加site.pp

require