aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/extraconfig/pre_deploy/controller/cinder-dellsc.yaml
blob: 7d639883ca35215161513f772949c4ad5e397666 (plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
heat_template_version: ocata

description: Configure hieradata for Cinder Dell Storage Center configuration

parameters:
  server:
    description: ID of the controller node to apply this config to
    type: string

  # Config specific parameters, to be provided via parameter_defaults
  CinderEnableDellScBackend:
    type: boolean
    default: true
  CinderDellScBackendName:
    type: string
    default: 'tripleo_dellsc'
  CinderDellScSanIp:
    type: string
  CinderDellScSanLogin:
    type: string
    default: 'Admin'
  CinderDellScSanPassword:
    type: string
    hidden: true
  CinderDellScSsn:
    type: string
    default: '64702'
  CinderDellScIscsiIpAddress:
    type: string
    default: ''
  CinderDellScIscsiPort:
    type: string
    default: '3260'
  CinderDellScApiPort:
    type: string
    default: '3033'
  CinderDellScServerFolder:
    type: string
    default: 'dellsc_server'
  CinderDellScVolumeFolder:
    type: string
    default: 'dellsc_volume'

resources:
  CinderDellScConfig:
    type: OS::Heat::StructuredConfig
    properties:
      group: os-apply-config
      config:
        hiera:
          datafiles:
            cinder_dellsc_data:
              mapped_data:
                tripleo::profile::base::cinder::volume::cinder_enable_dellsc_backend: {get_input: EnableDellScBackend}
                cinder::backend::dellsc_iscsi::volume_backend_name: {get_input: DellScBackendName}
                cinder::backend::dellsc_iscsi::san_ip: {get_input: DellScSanIp}
                cinder::backend::dellsc_iscsi::san_login: {get_input: DellScSanLogin}
                cinder::backend::dellsc_iscsi::san_password: {get_input: DellScSanPassword}
                cinder::backend::dellsc_iscsi::dell_sc_ssn: {get_input: DellScSsn}
                cinder::backend::dellsc_iscsi::iscsi_ip_address: {get_input: DellScIscsiIpAddress}
                cinder::backend::dellsc_iscsi::iscsi_port: {get_input: DellScIscsiPort}
                cinder::backend::dellsc_iscsi::dell_sc_api_port: {get_input: DellScApiPort}
                cinder::backend::dellsc_iscsi::dell_sc_server_folder: {get_input: DellScServerFolder}
                cinder::backend::dellsc_iscsi::dell_sc_volume_folder: {get_input: DellScVolumeFolder}

  CinderDellScDeployment:
    type: OS::Heat::StructuredDeployment
    properties:
      config: {get_resource: CinderDellScConfig}
      server: {get_param: server}
      input_values:
        EnableDellScBackend: {get_param: CinderEnableDellScBackend}
        DellScBackendName: {get_param: CinderDellScBackendName}
        DellScSanIp: {get_param: CinderDellScSanIp}
        DellScSanLogin: {get_param: CinderDellScSanLogin}
        DellScSanPassword: {get_param: CinderDellScSanPassword}
        DellScSsn: {get_param: CinderDellScSsn}
        DellScIscsiIpAddress: {get_param: CinderDellScIscsiIpAddress}
        DellScIscsiPort: {get_param: CinderDellScIscsiPort}
        DellScApiPort: {get_param: CinderDellScApiPort}
        DellScServerFolder: {get_param: CinderDellScServerFolder}
        DellScVolumeFolder: {get_param: CinderDellScVolumeFolder}

outputs:
  deploy_stdout:
    description: Deployment reference, used to trigger puppet apply on changes
    value: {get_attr: [CinderDellScDeployment, deploy_stdout]}