Bump template version for all templates to "ocata"
[apex-tripleo-heat-templates.git] / puppet / extraconfig / pre_deploy / controller / cinder-eqlx.yaml
1 heat_template_version: ocata
2
3 description: Configure hieradata for Cinder Eqlx 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   CinderEnableEqlxBackend:
12     type: boolean
13     default: true
14   CinderEqlxBackendName:
15     type: string
16     default: 'tripleo_eqlx'
17   CinderEqlxSanIp:
18     type: string
19   CinderEqlxSanLogin:
20     type: string
21   CinderEqlxSanPassword:
22     type: string
23     hidden: true
24   CinderEqlxSanThinProvision:
25     type: boolean
26     default: true
27   CinderEqlxGroupname:
28     type: string
29     default: 'group-0'
30   CinderEqlxPool:
31     type: string
32     default: 'default'
33   CinderEqlxChapLogin:
34     type: string
35     default: ''
36   CinderEqlxChapPassword:
37     type: string
38     default: ''
39   CinderEqlxUseChap:
40     type: boolean
41     default: false
42
43 resources:
44   CinderEqlxConfig:
45     type: OS::Heat::StructuredConfig
46     properties:
47       group: os-apply-config
48       config:
49         hiera:
50           datafiles:
51             cinder_eqlx_data:
52               mapped_data:
53                 tripleo::profile::base::cinder::volume::cinder_enable_eqlx_backend: {get_input: EnableEqlxBackend}
54                 cinder::backend::eqlx::volume_backend_name: {get_input: EqlxBackendName}
55                 cinder::backend::eqlx::san_ip: {get_input: EqlxSanIp}
56                 cinder::backend::eqlx::san_login: {get_input: EqlxSanLogin}
57                 cinder::backend::eqlx::san_password: {get_input: EqlxSanPassword}
58                 cinder::backend::eqlx::san_thin_provision: {get_input: EqlxSanThinProvision}
59                 cinder::backend::eqlx::eqlx_group_name: {get_input: EqlxGroupname}
60                 cinder::backend::eqlx::eqlx_pool: {get_input: EqlxPool}
61                 cinder::backend::eqlx::eqlx_use_chap: {get_input: EqlxUseChap}
62                 cinder::backend::eqlx::eqlx_chap_login: {get_input: EqlxChapLogin}
63                 cinder::backend::eqlx::eqlx_chap_password: {get_input: EqlxChapPassword}
64
65   CinderEqlxDeployment:
66     type: OS::Heat::StructuredDeployment
67     properties:
68       config: {get_resource: CinderEqlxConfig}
69       server: {get_param: server}
70       input_values:
71         EnableEqlxBackend: {get_param: CinderEnableEqlxBackend}
72         EqlxBackendName: {get_param: CinderEqlxBackendName}
73         EqlxSanIp: {get_param: CinderEqlxSanIp}
74         EqlxSanLogin: {get_param: CinderEqlxSanLogin}
75         EqlxSanPassword: {get_param: CinderEqlxSanPassword}
76         EqlxSanThinProvision: {get_param: CinderEqlxSanThinProvision}
77         EqlxGroupname: {get_param: CinderEqlxGroupname}
78         EqlxPool: {get_param: CinderEqlxPool}
79         EqlxUseChap: {get_param: CinderEqlxUseChap}
80         EqlxChapLogin: {get_param: CinderEqlxChapLogin}
81         EqlxChapPassword: {get_param: CinderEqlxChapPassword}
82
83 outputs:
84   deploy_stdout:
85     description: Deployment reference, used to trigger puppet apply on changes
86     value: {get_attr: [CinderEqlxDeployment, deploy_stdout]}