OpenStack in a snap!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

325 lines
12 KiB

  1. setup:
  2. dirs:
  3. - "{snap_common}/etc/keystone/keystone.conf.d"
  4. - "{snap_common}/etc/cinder/cinder.conf.d"
  5. - "{snap_common}/etc/nova/nova.conf.d"
  6. - "{snap_common}/etc/neutron/neutron.conf.d"
  7. - "{snap_common}/etc/neutron/plugins/ml2"
  8. - "{snap_common}/etc/neutron/policy.d"
  9. - "{snap_common}/etc/neutron/rootwrap.d"
  10. - "{snap_common}/etc/nginx/sites-enabled"
  11. - "{snap_common}/etc/nginx/snap/sites-enabled"
  12. - "{snap_common}/etc/glance/glance.conf.d"
  13. - "{snap_common}/etc/horizon/horizon.conf.d"
  14. - "{snap_common}/etc/horizon/local_settings.d"
  15. - "{snap_common}/var/horizon/static"
  16. - "{snap_common}/etc/keystone/uwsgi/snap"
  17. - "{snap_common}/etc/cinder/uwsgi/snap"
  18. - "{snap_common}/etc/nova/uwsgi/snap"
  19. - "{snap_common}/etc/horizon/uwsgi/snap"
  20. - "{snap_common}/fernet-keys"
  21. - "{snap_common}/lib"
  22. - "{snap_common}/lib/images"
  23. - "{snap_common}/lock"
  24. - "{snap_common}/log"
  25. - "{snap_common}/run"
  26. - "{snap_common}/lib/instances"
  27. templates:
  28. keystone-nginx.conf.j2: "{snap_common}/etc/nginx/snap/sites-enabled/keystone.conf"
  29. keystone-snap.conf.j2: "{snap_common}/etc/keystone/keystone.conf.d/keystone-snap.conf"
  30. neutron-snap.conf.j2: "{snap_common}/etc/neutron/neutron.conf.d/neutron-snap.conf"
  31. nginx.conf.j2: "{snap_common}/etc/nginx/snap/nginx.conf"
  32. nova-snap.conf.j2: "{snap_common}/etc/nova/nova.conf.d/nova-snap.conf"
  33. nova-nginx.conf.j2: "{snap_common}/etc/nginx/snap/sites-enabled/nova.conf"
  34. glance-snap.conf.j2: "{snap_common}/etc/glance/glance.conf.d/glance-snap.conf"
  35. cinder-nginx.conf.j2: "{snap_common}/etc/nginx/snap/sites-enabled/cinder.conf"
  36. cinder-snap.conf.j2: "{snap_common}/etc/cinder/cinder.conf.d/cinder-snap.conf"
  37. horizon-snap.conf.j2: "{snap_common}/etc/horizon/horizon.conf.d/horizon-snap.conf"
  38. horizon-nginx.conf.j2: "{snap_common}/etc/nginx/snap/sites-enabled/horizon.conf"
  39. 05_snap_tweaks.j2: "{snap_common}/etc/horizon/local_settings.d/_05_snap_tweaks.py"
  40. libvirtd.conf.j2: "{snap_common}/libvirt/libvirtd.conf"
  41. virtlogd.conf.j2: "{snap_common}/libvirt/virtlogd.conf"
  42. microstack.rc.j2: "{snap_common}/etc/microstack.rc"
  43. glance.conf.d.keystone.conf.j2: "{snap_common}/etc/glance/glance.conf.d/keystone.conf"
  44. nova.conf.d.keystone.conf.j2: "{snap_common}/etc/nova/nova.conf.d/keystone.conf"
  45. nova.conf.d.database.conf.j2: "{snap_common}/etc/nova/nova.conf.d/database.conf"
  46. nova.conf.d.rabbitmq.conf.j2: "{snap_common}/etc/nova/nova.conf.d/rabbitmq.conf"
  47. nova.conf.d.nova-placement.conf.j2: "{snap_common}/etc/nova/nova.conf.d/nova-placement.conf"
  48. nova.conf.d.glance.conf.j2: "{snap_common}/etc/nova/nova.conf.d/glance.conf"
  49. nova.conf.d.neutron.conf.j2: "{snap_common}/etc/nova/nova.conf.d/neutron.conf"
  50. keystone.database.conf.j2: "{snap_common}/etc/keystone/keystone.conf.d/database.conf"
  51. glance.database.conf.j2: "{snap_common}/etc/glance/glance.conf.d/database.conf"
  52. neutron.keystone.conf.j2: "{snap_common}/etc/neutron/neutron.conf.d/keystone.conf"
  53. neutron.nova.conf.j2: "{snap_common}/etc/neutron/neutron.conf.d/nova.conf"
  54. neutron.database.conf.j2: "{snap_common}/etc/neutron/neutron.conf.d/database.conf"
  55. chmod:
  56. "{snap_common}/instances": 0755
  57. "{snap_common}/etc/microstack.rc": 0644
  58. snap-config-keys:
  59. - ospassword
  60. - extgateway
  61. - extcidr
  62. - dns
  63. entry_points:
  64. keystone-manage:
  65. binary: "{snap}/bin/keystone-manage"
  66. config-files:
  67. - "{snap}/etc/keystone/keystone.conf"
  68. config-files-override:
  69. - "{snap_common}/etc/keystone/keystone.conf"
  70. config-dirs:
  71. - "{snap_common}/etc/keystone/keystone.conf.d"
  72. keystone-uwsgi:
  73. type: uwsgi
  74. uwsgi-dir: "{snap_common}/etc/keystone/uwsgi/snap"
  75. uwsgi-dir-override: "{snap_common}/etc/keystone/uwsgi"
  76. uwsgi-log: "{snap_common}/log/keystone-uwsgi.log"
  77. config-files:
  78. - "{snap}/etc/keystone/keystone.conf"
  79. config-files-override:
  80. - "{snap_common}/etc/keystone/keystone.conf"
  81. config-dirs:
  82. - "{snap_common}/etc/keystone/keystone.conf.d"
  83. log-file: "{snap_common}/log/keystone.log"
  84. templates:
  85. keystone-api.ini.j2: "{snap_common}/etc/keystone/uwsgi/snap/keystone-api.ini"
  86. nginx:
  87. type: nginx
  88. config-file: "{snap_common}/etc/nginx/snap/nginx.conf"
  89. config-file-override: "{snap_common}/etc/nginx/nginx.conf"
  90. nova-api-os-compute:
  91. binary: "{snap}/bin/nova-api-os-compute"
  92. config-files:
  93. - "{snap}/etc/nova/nova.conf"
  94. config-files-override:
  95. - "{snap_common}/etc/nova/nova.conf"
  96. config-dirs:
  97. - "{snap_common}/etc/nova/nova.conf.d"
  98. log-file: "{snap_common}/log/nova-api-os-compute.log"
  99. nova-uwsgi:
  100. type: uwsgi
  101. uwsgi-dir: "{snap_common}/etc/nova/uwsgi/snap"
  102. uwsgi-dir-override: "{snap_common}/etc/nova/uwsgi"
  103. uwsgi-log: "{snap_common}/log/nova-uwsgi.log"
  104. config-files:
  105. - "{snap}/etc/nova/nova.conf"
  106. config-files-override:
  107. - "{snap_common}/etc/nova/nova.conf"
  108. config-dirs:
  109. - "{snap_common}/etc/nova/nova.conf.d"
  110. log-file: "{snap_common}/log/nova-placement-api.log"
  111. templates:
  112. nova-placement-api.ini.j2:
  113. "{snap_common}/etc/nova/uwsgi/snap/nova-placement-api.ini"
  114. nova-conductor:
  115. binary: "{snap}/bin/nova-conductor"
  116. config-files:
  117. - "{snap}/etc/nova/nova.conf"
  118. config-files-override:
  119. - "{snap_common}/etc/nova/nova.conf"
  120. config-dirs:
  121. - "{snap_common}/etc/nova/nova.conf.d"
  122. log-file: "{snap_common}/log/nova-conductor.log"
  123. nova-scheduler:
  124. binary: "{snap}/bin/nova-scheduler"
  125. config-files:
  126. - "{snap}/etc/nova/nova.conf"
  127. config-files-override:
  128. - "{snap_common}/etc/nova/nova.conf"
  129. config-dirs:
  130. - "{snap_common}/etc/nova/nova.conf.d"
  131. log-file: "{snap_common}/log/nova-scheduler.log"
  132. nova-compute:
  133. binary: "{snap}/bin/nova-compute"
  134. config-files:
  135. - "{snap}/etc/nova/nova.conf"
  136. config-files-override:
  137. - "{snap_common}/etc/nova/nova.conf"
  138. config-dirs:
  139. - "{snap_common}/etc/nova/nova.conf.d"
  140. log-file: "{snap_common}/log/nova-compute.log"
  141. nova-api-metadata:
  142. binary: "{snap}/bin/nova-api-metadata"
  143. config-files:
  144. - "{snap}/etc/nova/nova.conf"
  145. config-files-override:
  146. - "{snap_common}/etc/nova/nova.conf"
  147. config-dirs:
  148. - "{snap_common}/etc/nova/nova.conf.d"
  149. log-file: "{snap_common}/log/nova-api-metadata.log"
  150. nova-manage:
  151. binary: "{snap}/bin/nova-manage"
  152. config-files:
  153. - "{snap}/etc/nova/nova.conf"
  154. config-files-override:
  155. - "{snap_common}/etc/nova/nova.conf"
  156. config-dirs:
  157. - "{snap_common}/etc/nova/nova.conf.d"
  158. neutron-db-manage:
  159. binary: "{snap}/bin/neutron-db-manage"
  160. config-files:
  161. - "{snap}/etc/neutron/neutron.conf"
  162. - "{snap}/etc/neutron/plugins/ml2/ml2_conf.ini"
  163. config-files-override:
  164. - "{snap_common}/etc/neutron/neutron.conf"
  165. - "{snap_common}/etc/neutron/plugins/ml2/ml2_conf.ini"
  166. config-dirs:
  167. - "{snap_common}/etc/neutron/neutron.conf.d"
  168. neutron-server:
  169. binary: "{snap}/bin/neutron-server"
  170. config-files:
  171. - "{snap}/etc/neutron/neutron.conf"
  172. - "{snap}/etc/neutron/plugins/ml2/ml2_conf.ini"
  173. config-files-override:
  174. - "{snap_common}/etc/neutron/neutron.conf"
  175. - "{snap_common}/etc/neutron/plugins/ml2/ml2_conf.ini"
  176. config-dirs:
  177. - "{snap_common}/etc/neutron/neutron.conf.d"
  178. log-file: "{snap_common}/log/neutron-server.log"
  179. neutron-openvswitch-agent:
  180. binary: "{snap}/bin/neutron-openvswitch-agent"
  181. config-files:
  182. - "{snap}/etc/neutron/neutron.conf"
  183. - "{snap}/etc/neutron/plugins/ml2/openvswitch_agent.ini"
  184. config-files-override:
  185. - "{snap_common}/etc/neutron/neutron.conf"
  186. - "{snap_common}/etc/neutron/plugins/ml2/openvswitch_agent.ini"
  187. config-dirs:
  188. - "{snap_common}/etc/neutron/neutron.conf.d"
  189. log-file: "{snap_common}/log/neutron-openvswitch-agent.log"
  190. neutron-ovs-cleanup:
  191. binary: "{snap}/bin/neutron-ovs-cleanup"
  192. config-files:
  193. - "{snap}/etc/neutron/neutron.conf"
  194. config-files-override:
  195. - "{snap_common}/etc/neutron/neutron.conf"
  196. config-dirs:
  197. - "{snap_common}/etc/neutron/neutron.conf.d"
  198. neutron-netns-cleanup:
  199. binary: "{snap}/bin/neutron-netns-cleanup"
  200. config-files:
  201. - "{snap}/etc/neutron/neutron.conf"
  202. config-files-override:
  203. - "{snap_common}/etc/neutron/neutron.conf"
  204. config-dirs:
  205. - "{snap_common}/etc/neutron/neutron.conf.d"
  206. neutron-l3-agent:
  207. binary: "{snap}/bin/neutron-l3-agent"
  208. config-files:
  209. - "{snap}/etc/neutron/neutron.conf"
  210. - "{snap}/etc/neutron/l3_agent.ini"
  211. config-files-override:
  212. - "{snap_common}/etc/neutron/neutron.conf"
  213. - "{snap_common}/etc/neutron/l3_agent.ini"
  214. config-dirs:
  215. - "{snap_common}/etc/neutron/neutron.conf.d"
  216. log-file: "{snap_common}/log/neutron-l3-agent.log"
  217. neutron-dhcp-agent:
  218. binary: "{snap}/bin/neutron-dhcp-agent"
  219. config-files:
  220. - "{snap}/etc/neutron/neutron.conf"
  221. - "{snap}/etc/neutron/dhcp_agent.ini"
  222. config-files-override:
  223. - "{snap_common}/etc/neutron/neutron.conf"
  224. - "{snap_common}/etc/neutron/dhcp_agent.ini"
  225. config-dirs:
  226. - "{snap_common}/etc/neutron/neutron.conf.d"
  227. log-file: "{snap_common}/log/neutron-dhcp-agent.log"
  228. neutron-metadata-agent:
  229. binary: "{snap}/bin/neutron-metadata-agent"
  230. config-files:
  231. - "{snap}/etc/neutron/neutron.conf"
  232. - "{snap}/etc/neutron/metadata_agent.ini"
  233. config-files-override:
  234. - "{snap_common}/etc/neutron/neutron.conf"
  235. - "{snap_common}/etc/neutron/metadata_agent.ini"
  236. config-dirs:
  237. - "{snap_common}/etc/neutron/neutron.conf.d"
  238. log-file: "{snap_common}/log/neutron-metadata-agent.log"
  239. glance-manage:
  240. binary: "{snap}/bin/glance-manage"
  241. config-files:
  242. - "{snap}/etc/glance/glance-manage.conf"
  243. config-files-override:
  244. - "{snap_common}/etc/glance/glance-manage.conf"
  245. config-dirs:
  246. - "{snap_common}/etc/glance/glance.conf.d"
  247. glance-registry:
  248. binary: "{snap}/bin/glance-registry"
  249. config-files:
  250. - "{snap}/etc/glance/glance-registry.conf"
  251. config-files-override:
  252. - "{snap_common}/etc/glance/glance-registry.conf"
  253. config-dirs:
  254. - "{snap_common}/etc/glance/glance.conf.d"
  255. log-file: "{snap_common}/log/glance-registry.log"
  256. glance-api:
  257. binary: "{snap}/bin/glance-api"
  258. config-files:
  259. - "{snap}/etc/glance/glance-api.conf"
  260. config-files-override:
  261. - "{snap_common}/etc/glance/glance-api.conf"
  262. config-dirs:
  263. - "{snap_common}/etc/glance/glance.conf.d"
  264. log-file: "{snap_common}/log/glance-api.log"
  265. cinder-backup:
  266. binary: "{snap}/bin/cinder-backup"
  267. config-files:
  268. - "{snap}/etc/cinder/cinder.conf"
  269. config-files-override:
  270. - "{snap_common}/etc/cinder/cinder.conf"
  271. config-dirs:
  272. - "{snap_common}/etc/cinder/cinder.conf.d"
  273. log-file: "{snap_common}/log/cinder-backup.log"
  274. cinder-manage:
  275. binary: "{snap}/bin/cinder-manage"
  276. config-files:
  277. - "{snap}/etc/cinder/cinder.conf"
  278. config-files-override:
  279. - "{snap_common}/etc/cinder/cinder.conf"
  280. config-dirs:
  281. - "{snap_common}/etc/cinder/cinder.conf.d"
  282. cinder-scheduler:
  283. binary: "{snap}/bin/cinder-scheduler"
  284. config-files:
  285. - "{snap}/etc/cinder/cinder.conf"
  286. config-files-override:
  287. - "{snap_common}/etc/cinder/cinder.conf"
  288. config-dirs:
  289. - "{snap_common}/etc/cinder/cinder.conf.d"
  290. log-file: "{snap_common}/log/cinder-scheduler.log"
  291. cinder-volume:
  292. binary: "{snap}/bin/cinder-volume"
  293. config-files:
  294. - "{snap}/etc/cinder/cinder.conf"
  295. config-files-override:
  296. - "{snap_common}/etc/cinder/cinder.conf"
  297. config-dirs:
  298. - "{snap_common}/etc/cinder/cinder.conf.d"
  299. log-file: "{snap_common}/log/cinder-volume.log"
  300. cinder-uwsgi:
  301. type: uwsgi
  302. uwsgi-dir: "{snap_common}/etc/cinder/uwsgi/snap"
  303. uwsgi-dir-override: "{snap_common}/etc/cinder/uwsgi"
  304. uwsgi-log: "{snap_common}/log/cinder-uwsgi.log"
  305. config-files:
  306. - "{snap}/etc/cinder/cinder.conf"
  307. config-files-override:
  308. - "{snap_common}/etc/cinder/cinder.conf"
  309. config-dirs:
  310. - "{snap_common}/etc/cinder/cinder.conf.d"
  311. log-file: "{snap_common}/log/cinder-api.log"
  312. templates:
  313. cinder-api.ini.j2: "{snap_common}/etc/cinder/uwsgi/snap/cinder-api.ini"
  314. horizon-uwsgi:
  315. type: uwsgi
  316. uwsgi-dir: "{snap_common}/etc/horizon/uwsgi/snap"
  317. uwsgi-dir-override: "{snap_common}/etc/horizon/uwsgi"
  318. uwsgi-log: "{snap_common}/log/horizon-uwsgi.log"
  319. config-dirs:
  320. - "{snap_common}/etc/horizon/horizon.conf.d"
  321. log-file: "{snap_common}/log/horizon-api.log"
  322. templates:
  323. horizon.ini.j2: "{snap_common}/etc/horizon/uwsgi/snap/horizon.ini"