Problems with elasticsearch installation

32 views
Skip to first unread message

Gabriele Angeli

unread,
Apr 28, 2015, 11:47:33 PM4/28/15
to puppet...@googlegroups.com
Hi guys,

I'm a puppet newbie ad i'm trying to install elasticsearch on my puppet agent but i've ever the same error:

Notice: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/data]: Dependency Package[elasticsearch] has failures: true
Warning: /Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/data]: Skipping because of failed dependencies


Someone can help me? Thanks in advance.

Peter Kristolaitis

unread,
Apr 28, 2015, 11:53:51 PM4/28/15
to puppet...@googlegroups.com
Based solely on the error message -- it's always helpful if you include a snippet of your manifest to debug -- and assuming you're using the elasticsearch-elasticsearch module from the Forge, I'd say that you haven't provided one of "manage_repo => true" or "package_url => ..." in your manifest.   Read the docs for the module under the "Package installation" heading.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ad370a39-5640-4a96-a190-3185221599fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gabriele Angeli

unread,
Apr 29, 2015, 8:35:28 AM4/29/15
to puppet...@googlegroups.com
Sorry Peter you're right. I'm using elasticsearch-elasticsearch module from the Forge e my manifest is the following:


### Agent #1

include java
include elasticsearch
include nginx


     file { "/etc/motd":
            content => "Sto nuovamente riprovando a configurare i nodi con puppet\n",
    }

     package { 'rsyslog':
              ensure => installed,
    }

    package { 'htop':
       ensure => installed,
    }


    elasticsearch::instance { 'es-01':
        config => { 'cluster.name' => 'Puppet Cluster',
                    'node.name'    => 'Puppet Agent Node 1'
        }
    }
}

### Agent #2


      file { "/etc/motd":
            content => "Sto nuovamente riprovando a configurare i nodi con puppet\n",
      }

      package { 'rsyslog':
            ensure => installed,
      }

      package { 'htop':
         ensure => present,
      }

      elasticsearch::instance { 'es-02':
          config => { 'cluster.name' => 'Puppet Cluster',
                      'node.name'    => 'Puppet Agent Node 2'
          }
      }
}

Thanks in advance again. :-)
Reply all
Reply to author
Forward
0 new messages