Merge "Don't create networks if neutron is not enabled"
[apex-tripleo-heat-templates.git] / puppet / services / cinder-base.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Cinder base service. Shared by all Cinder services.
5
6 parameters:
7   CinderPassword:
8     description: The password for the cinder service account, used by cinder-api.
9     type: string
10     hidden: true
11   Debug:
12     default: ''
13     description: Set to True to enable debugging on all services.
14     type: string
15   CinderDebug:
16     default: ''
17     description: Set to True to enable debugging on Cinder services.
18     type: string
19   ServiceNetMap:
20     default: {}
21     description: Mapping of service_name -> network name. Typically set
22                  via parameter_defaults in the resource registry.  This
23                  mapping overrides those in ServiceNetMapDefaults.
24     type: json
25   DefaultPasswords:
26     default: {}
27     type: json
28   RoleName:
29     default: ''
30     description: Role name on which the service is applied
31     type: string
32   RoleParameters:
33     default: {}
34     description: Parameters specific to the role
35     type: json
36   EndpointMap:
37     default: {}
38     description: Mapping of service endpoint -> protocol. Typically set
39                  via parameter_defaults in the resource registry.
40     type: json
41   RabbitClientPort:
42     default: 5672
43     description: Set rabbit subscriber port, change this if using SSL
44     type: number
45   RabbitClientUseSSL:
46     default: false
47     description: >
48         Rabbit client subscriber parameter to specify
49         an SSL connection to the RabbitMQ host.
50     type: string
51   RabbitPassword:
52     description: The password for RabbitMQ
53     type: string
54     hidden: true
55   RabbitUserName:
56     default: guest
57     description: The username for RabbitMQ
58     type: string
59   CinderCronDbPurgeMinute:
60     type: string
61     description: >
62         Cron to move deleted instances to another table - Minute
63     default: '1'
64   CinderCronDbPurgeHour:
65     type: string
66     description: >
67         Cron to move deleted instances to another table - Hour
68     default: '0'
69   CinderCronDbPurgeMonthday:
70     type: string
71     description: >
72         Cron to move deleted instances to another table - Month Day
73     default: '*'
74   CinderCronDbPurgeMonth:
75     type: string
76     description: >
77         Cron to move deleted instances to another table - Month
78     default: '*'
79   CinderCronDbPurgeWeekday:
80     type: string
81     description: >
82         Cron to move deleted instances to another table - Week Day
83     default: '*'
84   CinderCronDbPurgeUser:
85     type: string
86     description: >
87         Cron to move deleted instances to another table - User
88     default: 'keystone'
89   CinderCronDbPurgeAge:
90     type: string
91     description: >
92         Cron to move deleted instances to another table - Age
93     default: '0'
94   CinderCronDbPurgeDestination:
95     type: string
96     description: >
97         Cron to move deleted instances to another table - Log destination
98     default: '/var/log/cinder/cinder-rowsflush.log'
99
100 conditions:
101   service_debug_unset: {equals : [{get_param: CinderDebug}, '']}
102
103 outputs:
104   role_data:
105     description: Role data for the Cinder base service.
106     value:
107       service_name: cinder_base
108       config_settings:
109         cinder::database_connection:
110           make_url:
111             scheme: {get_param: [EndpointMap, MysqlInternal, protocol]}
112             username: cinder
113             password: {get_param: CinderPassword}
114             host: {get_param: [EndpointMap, MysqlInternal, host]}
115             path: /cinder
116             query:
117               read_default_file: /etc/my.cnf.d/tripleo.cnf
118               read_default_group: tripleo
119         cinder::debug:
120           if:
121           - service_debug_unset
122           - {get_param: Debug }
123           - {get_param: CinderDebug }
124         cinder::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
125         cinder::rabbit_userid: {get_param: RabbitUserName}
126         cinder::rabbit_password: {get_param: RabbitPassword}
127         cinder::rabbit_port: {get_param: RabbitClientPort}
128         cinder::rabbit_heartbeat_timeout_threshold: 60
129         cinder::cron::db_purge::destination: '/dev/null'
130         cinder::db::database_db_max_retries: -1
131         cinder::db::database_max_retries: -1
132         cinder::cron::db_purge::minute: {get_param: CinderCronDbPurgeMinute}
133         cinder::cron::db_purge::hour: {get_param: CinderCronDbPurgeHour}
134         cinder::cron::db_purge::monthday: {get_param: CinderCronDbPurgeMonthday}
135         cinder::cron::db_purge::month: {get_param: CinderCronDbPurgeMonth}
136         cinder::cron::db_purge::weekday: {get_param: CinderCronDbPurgeWeekday}
137         cinder::cron::db_purge::user: {get_param: CinderCronDbPurgeUser}
138         cinder::cron::db_purge::age: {get_param: CinderCronDbPurgeAge}
139         cinder::cron::db_purge::destination: {get_param: CinderCronDbPurgeDestination}
140         cinder::glance::glance_api_servers: {get_param: [EndpointMap, GlanceInternal, uri]}