Fuel plugin that enables to configure multiple Cinder backend support for Kaminario K2 All-Flash Array
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get_replication_device.rb 367B

1234567891011
  1. module Puppet::Parser::Functions
  2. newfunction(:get_replication_device, :type => :rvalue) do |args|
  3. ip = args[0].to_s
  4. login = args[1]
  5. password = args[2]
  6. rpo = args[3]
  7. replication_device = 'backend_id' + ':' + ip + "," + 'login' + ':' + login + "," + 'password' + ':' + password + "," + 'rpo' + ':' + rpo
  8. return replication_device
  9. end
  10. end