File: source_cloud.pp

package info (click to toggle)
puppet-module-vmms 1.0.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 172 kB
  • sloc: ruby: 89; makefile: 11; sh: 10; python: 5
file content (69 lines) | stat: -rw-r--r-- 2,433 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# == Class: vmms::source_cloud
#
# Configures VMMS to connect to the source_cloud from which migrations occurs.
#
# === Parameters:
#
# [*password*]
#   (required) Password for connecting to the source_cloud services in
#   admin context through the OpenStack Identity service.
#
# [*auth_type*]
#   Name of the auth type to load (string value)
#   Defaults to 'password'
#
# [*project_name*]
#   (optional) Project name for connecting to the source_cloud services in
#   admin context through the OpenStack Identity service.
#   Defaults to 'admin'
#
# [*project_domain_name*]
#   (optional) Project Domain name for connecting to source_cloud services in
#   admin context through the OpenStack Identity service.
#   Defaults to 'Default'
#
# [*username*]
#   (optional) Username for connecting to the source_cloud services in admin context
#   through the OpenStack Identity service.
#   Defaults to 'admin'
#
# [*user_domain_name*]
#   (optional) User Domain name for connecting to the source_cloud services in
#   admin context through the OpenStack Identity service.
#   Defaults to 'Default'
#
# [*auth_url*]
#   (optional) Points to the OpenStack Identity server IP and port.
#   This is the Identity (keystone) admin API server IP and port value,
#   and not the Identity service API IP and port.
#   Defaults to 'http://127.0.0.1:5000/v3'
#
# [*region_name*]
#   (optional) Region name for connecting to the source_cloud in admin context
#   through the OpenStack Identity service.
#   Defaults to 'RegionOne'
#
class vmms::source_cloud (
  $password,
  $auth_type           = 'password',
  $project_name        = 'admin',
  $project_domain_name = 'Default',
  $username            = 'admin',
  $user_domain_name    = 'Default',
  $auth_url            = 'http://127.0.0.1:5000/v3',
  $region_name         = 'RegionOne',
) {

  include vmms::deps

  vmms_config {
    'source_cloud/password':                value => $password, secret => true;
    'source_cloud/auth_type':               value => 'password';
    'source_cloud/auth_url':                value => $auth_url;
    'source_cloud/project_name':            value => $project_name;
    'source_cloud/project_domain_name':     value => $project_domain_name;
    'source_cloud/username':                value => $username;
    'source_cloud/user_domain_name':        value => $user_domain_name;
    'source_cloud/region_name':             value => $region_name;
  }
}