Add DefaultPasswords to composable services
[apex-tripleo-heat-templates.git] / puppet / services / manila-base.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   Openstack Manila base service. Shared by manila-api/scheduler/share services
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   Debug:
22     default: ''
23     description: Set to True to enable debugging on all services.
24     type: string
25   RabbitPassword:
26     description: The password for RabbitMQ
27     type: string
28     hidden: true
29   RabbitUserName:
30     default: guest
31     description: The username for RabbitMQ
32     type: string
33   RabbitClientUseSSL:
34     default: false
35     description: >
36         Rabbit client subscriber parameter to specify
37         an SSL connection to the RabbitMQ host.
38     type: string
39   RabbitClientPort:
40     default: 5672
41     description: Set rabbit subscriber port, change this if using SSL
42     type: number
43   # Config specific parameters, to be provided via parameter_defaults
44   ManilaGenericEnableBackend:
45     type: boolean
46     default: true
47   ManilaGenericBackendName:
48     type: string
49     default: tripleo_generic
50   ManilaGenericDriverHandlesShareServers:
51     type: string
52     default: true
53   ManilaGenericSmbTemplateConfigPath:
54     type: string
55     default: '$state_path/smb.conf'
56   ManilaGenericVolumeNameTemplate:
57     type: string
58     default: 'manila-share-%s'
59   ManilaGenericVolumeSnapshotNameTemplate:
60     type: string
61     default: 'manila-snapshot-%s'
62   ManilaGenericShareMountPath:
63     type: string
64     default: '/shares'
65   ManilaGenericMaxTimeToCreateVolume:
66     type: string
67     default: '180'
68   ManilaGenericMaxTimeToAttach:
69     type: string
70     default: '120'
71   ManilaGenericServiceInstanceSmbConfigPath:
72     type: string
73     default: '$share_mount_path/smb.conf'
74   ManilaGenericShareVolumeFsType:
75     type: string
76     default: 'ext4'
77   ManilaGenericCinderVolumeType:
78     type: string
79     default: ''
80   ManilaGenericServiceInstanceUser:
81     type: string
82     default: ''
83   ManilaGenericServiceInstancePassword: #SET THIS via parameter_defaults
84     type: string
85     hidden: true
86   ManilaGenericServiceInstanceFlavorId:
87     type: number
88     default: 1
89   ManilaGenericServiceNetworkCidr:
90     type: string
91     default: '172.16.0.0/16'
92
93 outputs:
94   role_data:
95     description: Role data for the Manila Base service.
96     value:
97       service_name: manila_base
98       config_settings:
99         manila::rabbit_userid: {get_param: RabbitUserName}
100         manila::rabbit_password: {get_param: RabbitPassword}
101         manila::rabbit_use_ssl: {get_param: RabbitClientUseSSL}
102         manila::rabbit_port: {get_param: RabbitClientPort}
103         manila::debug: {get_param: Debug}
104         manila::db::mysql::user: manila
105         manila::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host_nobrackets]}
106         manila::db::mysql::dbname: manila
107         manila::db::database_db_max_retries: -1
108         manila::db::database_max_retries: -1
109         manila_generic_enable_backend: {get_param: ManilaGenericEnableBackend}
110         manila::backend::generic::title: {get_param: ManilaGenericBackendName}
111         manila::backend::generic::driver_handles_share_servers: {get_param: ManilaGenericDriverHandlesShareServers}
112         manila::backend::generic::smb_template_config_path: {get_param: ManilaGenericSmbTemplateConfigPath}
113         manila::backend::generic::volume_name_template: {get_param: ManilaGenericVolumeNameTemplate}
114         manila::backend::generic::volume_snapshot_name_template: {get_param: ManilaGenericVolumeSnapshotNameTemplate}
115         manila::backend::generic::share_mount_path: {get_param: ManilaGenericShareMountPath}
116         manila::backend::generic::max_time_to_create_volume: {get_param: ManilaGenericMaxTimeToCreateVolume}
117         manila::backend::generic::max_time_to_attach: {get_param: ManilaGenericMaxTimeToAttach}
118         manila::backend::generic::service_instance_smb_config_path: {get_param: ManilaGenericServiceInstanceSmbConfigPath}
119         manila::backend::generic::share_volume_fstype: {get_param: ManilaGenericShareVolumeFsType}
120         manila::backend::generic::cinder_volume_type: {get_param: ManilaGenericCinderVolumeType}
121         manila::service_instance::service_instance_user: {get_param: ManilaGenericServiceInstanceUser}
122         manila::service_instance::service_instance_password: {get_param: ManilaGenericServiceInstancePassword}
123         manila::service_instance::service_instance_flavor_id: {get_param: ManilaGenericServiceInstanceFlavorId}
124         manila::service_instance::service_network_cidr: {get_param: ManilaGenericServiceNetworkCidr}
125         manila::db::mysql::allowed_hosts:
126           - '%'
127           - "%{hiera('mysql_bind_host')}"
128