Class: Hiera::Backend::Aws::ElastiCache

Inherits:
Base
  • Object
show all
Defined in:
lib/hiera/backend/aws/elasticache.rb

Overview

Implementation of Hiera keys for aws/elasticache

Instance Attribute Summary

Attributes inherited from Base

#scope

Instance Method Summary collapse

Methods inherited from Base

#aws_account_number, #aws_region, #initialize, #lookup, #puppet_fact, #stringify_keys

Constructor Details

This class inherits a constructor from Hiera::Backend::Aws::Base

Instance Method Details

#memcached_cluster_nodes_for_cfn_stackObject



18
19
20
21
22
# File 'lib/hiera/backend/aws/elasticache.rb', line 18

def memcached_cluster_nodes_for_cfn_stack
  cluster_nodes_for_cfn_stack(:memcached).map do |node|
    node.fetch(:endpoint)[:address]
  end
end

#redis_cluster_nodes_for_cfn_stackObject



12
13
14
15
16
# File 'lib/hiera/backend/aws/elasticache.rb', line 12

def redis_cluster_nodes_for_cfn_stack
  cluster_nodes_for_cfn_stack(:redis).map do |node|
    { "endpoint" => stringify_keys(node.fetch(:endpoint)) }
  end
end

#redis_cluster_replica_groups_for_cfn_stackObject



8
9
10
# File 'lib/hiera/backend/aws/elasticache.rb', line 8

def redis_cluster_replica_groups_for_cfn_stack
  cluster_replica_groups_for_cfn_stack(:redis)
end