File: ruby.rb

package info (click to toggle)
puppet-module-voxpupuli-elasticsearch 9.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,496 kB
  • sloc: ruby: 9,906; sh: 392; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 463 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require File.join(File.dirname(__FILE__), '..', '..', '..', 'puppet/provider/elastic_user_command')

Puppet::Type.type(:elasticsearch_user).provide(
  :ruby,
  parent: Puppet::Provider::ElasticUserCommand
) do
  desc 'Provider for X-Pack user resources.'

  has_feature :manages_plaintext_passwords

  mk_resource_methods

  commands users_cli: "#{homedir}/bin/elasticsearch-users"
  commands es: "#{homedir}/bin/elasticsearch"
end