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