7d639883ca35215161513f772949c4ad5e397666
[apex-tripleo-heat-templates.git] / puppet / extraconfig / pre_deploy / controller / cinder-dellsc.yaml
1 heat_template_version: ocata
2
3 description: Configure hieradata for Cinder Dell Storage Center configuration
4
5 parameters:
6   server:
7     description: ID of the controller node to apply this config to
8     type: string
9
10   # Config specific parameters, to be provided via parameter_defaults
11   CinderEnableDellScBackend:
12     type: boolean
13     default: true
14   CinderDellScBackendName:
15     type: string
16     default: 'tripleo_dellsc'
17   CinderDellScSanIp:
18     type: string
19   CinderDellScSanLogin:
20     type: string
21     default: 'Admin'
22   CinderDellScSanPassword:
23     type: string
24     hidden: true
25   CinderDellScSsn:
26     type: string
27     default: '64702'
28   CinderDellScIscsiIpAddress:
29     type: string
30     default: ''
31   CinderDellScIscsiPort:
32     type: string
33     default: '3260'
34   CinderDellScApiPort:
35     type: string
36     default: '3033'
37   CinderDellScServerFolder:
38     type: string
39     default: 'dellsc_server'
40   CinderDellScVolumeFolder:
41     type: string
42     default: 'dellsc_volume'
43
44 resources:
45   CinderDellScConfig:
46     type: OS::Heat::StructuredConfig
47     properties:
48       group: os-apply-config
49       config:
50         hiera:
51           datafiles:
52             cinder_dellsc_data:
53               mapped_data:
54                 tripleo::profile::base::cinder::volume::cinder_enable_dellsc_backend: {get_input: EnableDellScBackend}
55                 cinder::backend::dellsc_iscsi::volume_backend_name: {get_input: DellScBackendName}
56                 cinder::backend::dellsc_iscsi::san_ip: {get_input: DellScSanIp}
57                 cinder::backend::dellsc_iscsi::san_login: {get_input: DellScSanLogin}
58                 cinder::backend::dellsc_iscsi::san_password: {get_input: DellScSanPassword}
59                 cinder::backend::dellsc_iscsi::dell_sc_ssn: {get_input: DellScSsn}
60                 cinder::backend::dellsc_iscsi::iscsi_ip_address: {get_input: DellScIscsiIpAddress}
61                 cinder::backend::dellsc_iscsi::iscsi_port: {get_input: DellScIscsiPort}
62                 cinder::backend::dellsc_iscsi::dell_sc_api_port: {get_input: DellScApiPort}
63                 cinder::backend::dellsc_iscsi::dell_sc_server_folder: {get_input: DellScServerFolder}
64                 cinder::backend::dellsc_iscsi::dell_sc_volume_folder: {get_input: DellScVolumeFolder}
65
66   CinderDellScDeployment:
67     type: OS::Heat::StructuredDeployment
68     properties:
69       config: {get_resource: CinderDellScConfig}
70       server: {get_param: server}
71       input_values:
72         EnableDellScBackend: {get_param: CinderEnableDellScBackend}
73         DellScBackendName: {get_param: CinderDellScBackendName}
74         DellScSanIp: {get_param: CinderDellScSanIp}
75         DellScSanLogin: {get_param: CinderDellScSanLogin}
76         DellScSanPassword: {get_param: CinderDellScSanPassword}
77         DellScSsn: {get_param: CinderDellScSsn}
78         DellScIscsiIpAddress: {get_param: CinderDellScIscsiIpAddress}
79         DellScIscsiPort: {get_param: CinderDellScIscsiPort}
80         DellScApiPort: {get_param: CinderDellScApiPort}
81         DellScServerFolder: {get_param: CinderDellScServerFolder}
82         DellScVolumeFolder: {get_param: CinderDellScVolumeFolder}
83
84 outputs:
85   deploy_stdout:
86     description: Deployment reference, used to trigger puppet apply on changes
87     value: {get_attr: [CinderDellScDeployment, deploy_stdout]}