Browse Source

Initial implementation of TLS plugin for Fuel

Change-Id: I45db29ce60925e90629c7fa92333b026a4656430
tags/1.0.0-eol
sbartel 4 years ago
parent
commit
93228988ed
27 changed files with 974 additions and 0 deletions
  1. 3
    0
      .gitignore
  2. 202
    0
      LICENSE
  3. 167
    0
      README.md
  4. 30
    0
      deployment_scripts/puppet/manifests/site.pp
  5. 19
    0
      deployment_scripts/puppet/manifests/site_compute.pp
  6. 26
    0
      deployment_scripts/puppet/modules/tls/files/format.sh
  7. 12
    0
      deployment_scripts/puppet/modules/tls/manifests/compute.pp
  8. 52
    0
      deployment_scripts/puppet/modules/tls/manifests/controller.pp
  9. 29
    0
      deployment_scripts/puppet/modules/tls/manifests/controller_ha.pp
  10. 85
    0
      deployment_scripts/puppet/modules/tls/manifests/horizon/horizon.pp
  11. 74
    0
      deployment_scripts/puppet/modules/tls/manifests/horizon/horizon_ha.pp
  12. 17
    0
      deployment_scripts/puppet/modules/tls/manifests/nova/novnc_compute.pp
  13. 24
    0
      deployment_scripts/puppet/modules/tls/manifests/nova/novnc_controller.pp
  14. 31
    0
      deployment_scripts/puppet/modules/tls/manifests/params.pp
  15. 7
    0
      deployment_scripts/puppet/modules/tls/spec/classes/init_spec.rb
  16. 1
    0
      deployment_scripts/puppet/modules/tls/spec/spec_helper.rb
  17. 58
    0
      deployment_scripts/puppet/modules/tls/templates/openstack-dashboard.conf.erb
  18. 21
    0
      deployment_scripts/puppet/modules/tls/templates/port.conf.erb
  19. 37
    0
      deployment_scripts/puppet/modules/tls/templates/vhost.erb
  20. 13
    0
      deployment_scripts/puppet/modules/tls/tests/init.pp
  21. 13
    0
      environment_config.yaml
  22. BIN
      figures/tls-plugin.png
  23. 34
    0
      metadata.yaml
  24. 4
    0
      pre_build_hook
  25. 0
    0
      repositories/centos/.gitkeep
  26. 0
    0
      repositories/ubuntu/.gitkeep
  27. 15
    0
      tasks.yaml

+ 3
- 0
.gitignore View File

@@ -0,0 +1,3 @@
1
+.tox
2
+.build
3
+*.pyc

+ 202
- 0
LICENSE View File

@@ -0,0 +1,202 @@
1
+Apache License
2
+                           Version 2.0, January 2004
3
+                        http://www.apache.org/licenses/
4
+
5
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+   1. Definitions.
8
+
9
+      "License" shall mean the terms and conditions for use, reproduction,
10
+      and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+      "Licensor" shall mean the copyright owner or entity authorized by
13
+      the copyright owner that is granting the License.
14
+
15
+      "Legal Entity" shall mean the union of the acting entity and all
16
+      other entities that control, are controlled by, or are under common
17
+      control with that entity. For the purposes of this definition,
18
+      "control" means (i) the power, direct or indirect, to cause the
19
+      direction or management of such entity, whether by contract or
20
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+      outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+      "You" (or "Your") shall mean an individual or Legal Entity
24
+      exercising permissions granted by this License.
25
+
26
+      "Source" form shall mean the preferred form for making modifications,
27
+      including but not limited to software source code, documentation
28
+      source, and configuration files.
29
+
30
+      "Object" form shall mean any form resulting from mechanical
31
+      transformation or translation of a Source form, including but
32
+      not limited to compiled object code, generated documentation,
33
+      and conversions to other media types.
34
+
35
+      "Work" shall mean the work of authorship, whether in Source or
36
+      Object form, made available under the License, as indicated by a
37
+      copyright notice that is included in or attached to the work
38
+      (an example is provided in the Appendix below).
39
+
40
+      "Derivative Works" shall mean any work, whether in Source or Object
41
+      form, that is based on (or derived from) the Work and for which the
42
+      editorial revisions, annotations, elaborations, or other modifications
43
+      represent, as a whole, an original work of authorship. For the purposes
44
+      of this License, Derivative Works shall not include works that remain
45
+      separable from, or merely link (or bind by name) to the interfaces of,
46
+      the Work and Derivative Works thereof.
47
+
48
+      "Contribution" shall mean any work of authorship, including
49
+      the original version of the Work and any modifications or additions
50
+      to that Work or Derivative Works thereof, that is intentionally
51
+      submitted to Licensor for inclusion in the Work by the copyright owner
52
+      or by an individual or Legal Entity authorized to submit on behalf of
53
+      the copyright owner. For the purposes of this definition, "submitted"
54
+      means any form of electronic, verbal, or written communication sent
55
+      to the Licensor or its representatives, including but not limited to
56
+      communication on electronic mailing lists, source code control systems,
57
+      and issue tracking systems that are managed by, or on behalf of, the
58
+      Licensor for the purpose of discussing and improving the Work, but
59
+      excluding communication that is conspicuously marked or otherwise
60
+      designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+      "Contributor" shall mean Licensor and any individual or Legal Entity
63
+      on behalf of whom a Contribution has been received by Licensor and
64
+      subsequently incorporated within the Work.
65
+
66
+   2. Grant of Copyright License. Subject to the terms and conditions of
67
+      this License, each Contributor hereby grants to You a perpetual,
68
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+      copyright license to reproduce, prepare Derivative Works of,
70
+      publicly display, publicly perform, sublicense, and distribute the
71
+      Work and such Derivative Works in Source or Object form.
72
+
73
+   3. Grant of Patent License. Subject to the terms and conditions of
74
+      this License, each Contributor hereby grants to You a perpetual,
75
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+      (except as stated in this section) patent license to make, have made,
77
+      use, offer to sell, sell, import, and otherwise transfer the Work,
78
+      where such license applies only to those patent claims licensable
79
+      by such Contributor that are necessarily infringed by their
80
+      Contribution(s) alone or by combination of their Contribution(s)
81
+      with the Work to which such Contribution(s) was submitted. If You
82
+      institute patent litigation against any entity (including a
83
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+      or a Contribution incorporated within the Work constitutes direct
85
+      or contributory patent infringement, then any patent licenses
86
+      granted to You under this License for that Work shall terminate
87
+      as of the date such litigation is filed.
88
+
89
+   4. Redistribution. You may reproduce and distribute copies of the
90
+      Work or Derivative Works thereof in any medium, with or without
91
+      modifications, and in Source or Object form, provided that You
92
+      meet the following conditions:
93
+
94
+      (a) You must give any other recipients of the Work or
95
+          Derivative Works a copy of this License; and
96
+
97
+      (b) You must cause any modified files to carry prominent notices
98
+          stating that You changed the files; and
99
+
100
+      (c) You must retain, in the Source form of any Derivative Works
101
+          that You distribute, all copyright, patent, trademark, and
102
+          attribution notices from the Source form of the Work,
103
+          excluding those notices that do not pertain to any part of
104
+          the Derivative Works; and
105
+
106
+      (d) If the Work includes a "NOTICE" text file as part of its
107
+          distribution, then any Derivative Works that You distribute must
108
+          include a readable copy of the attribution notices contained
109
+          within such NOTICE file, excluding those notices that do not
110
+          pertain to any part of the Derivative Works, in at least one
111
+          of the following places: within a NOTICE text file distributed
112
+          as part of the Derivative Works; within the Source form or
113
+          documentation, if provided along with the Derivative Works; or,
114
+          within a display generated by the Derivative Works, if and
115
+          wherever such third-party notices normally appear. The contents
116
+          of the NOTICE file are for informational purposes only and
117
+          do not modify the License. You may add Your own attribution
118
+          notices within Derivative Works that You distribute, alongside
119
+          or as an addendum to the NOTICE text from the Work, provided
120
+          that such additional attribution notices cannot be construed
121
+          as modifying the License.
122
+
123
+      You may add Your own copyright statement to Your modifications and
124
+      may provide additional or different license terms and conditions
125
+      for use, reproduction, or distribution of Your modifications, or
126
+      for any such Derivative Works as a whole, provided Your use,
127
+      reproduction, and distribution of the Work otherwise complies with
128
+      the conditions stated in this License.
129
+
130
+   5. Submission of Contributions. Unless You explicitly state otherwise,
131
+      any Contribution intentionally submitted for inclusion in the Work
132
+      by You to the Licensor shall be under the terms and conditions of
133
+      this License, without any additional terms or conditions.
134
+      Notwithstanding the above, nothing herein shall supersede or modify
135
+      the terms of any separate license agreement you may have executed
136
+      with Licensor regarding such Contributions.
137
+
138
+   6. Trademarks. This License does not grant permission to use the trade
139
+      names, trademarks, service marks, or product names of the Licensor,
140
+      except as required for reasonable and customary use in describing the
141
+      origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+   7. Disclaimer of Warranty. Unless required by applicable law or
144
+      agreed to in writing, Licensor provides the Work (and each
145
+      Contributor provides its Contributions) on an "AS IS" BASIS,
146
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+      implied, including, without limitation, any warranties or conditions
148
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+      PARTICULAR PURPOSE. You are solely responsible for determining the
150
+      appropriateness of using or redistributing the Work and assume any
151
+      risks associated with Your exercise of permissions under this License.
152
+
153
+   8. Limitation of Liability. In no event and under no legal theory,
154
+      whether in tort (including negligence), contract, or otherwise,
155
+      unless required by applicable law (such as deliberate and grossly
156
+      negligent acts) or agreed to in writing, shall any Contributor be
157
+      liable to You for damages, including any direct, indirect, special,
158
+      incidental, or consequential damages of any character arising as a
159
+      result of this License or out of the use or inability to use the
160
+      Work (including but not limited to damages for loss of goodwill,
161
+      work stoppage, computer failure or malfunction, or any and all
162
+      other commercial damages or losses), even if such Contributor
163
+      has been advised of the possibility of such damages.
164
+
165
+   9. Accepting Warranty or Additional Liability. While redistributing
166
+      the Work or Derivative Works thereof, You may choose to offer,
167
+      and charge a fee for, acceptance of support, warranty, indemnity,
168
+      or other liability obligations and/or rights consistent with this
169
+      License. However, in accepting such obligations, You may act only
170
+      on Your own behalf and on Your sole responsibility, not on behalf
171
+      of any other Contributor, and only if You agree to indemnify,
172
+      defend, and hold each Contributor harmless for any liability
173
+      incurred by, or claims asserted against, such Contributor by reason
174
+      of your accepting any such warranty or additional liability.
175
+
176
+   END OF TERMS AND CONDITIONS
177
+
178
+   APPENDIX: How to apply the Apache License to your work.
179
+
180
+      To apply the Apache License to your work, attach the following
181
+      boilerplate notice, with the fields enclosed by brackets "{}"
182
+      replaced with your own identifying information. (Don't include
183
+      the brackets!)  The text should be enclosed in the appropriate
184
+      comment syntax for the file format. We also recommend that a
185
+      file or class name and description of purpose be included on the
186
+      same "printed page" as the copyright notice for easier
187
+      identification within third-party archives.
188
+
189
+   Copyright {yyyy} {name of copyright owner}
190
+
191
+   Licensed under the Apache License, Version 2.0 (the "License");
192
+   you may not use this file except in compliance with the License.
193
+   You may obtain a copy of the License at
194
+
195
+       http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+   Unless required by applicable law or agreed to in writing, software
198
+   distributed under the License is distributed on an "AS IS" BASIS,
199
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+   See the License for the specific language governing permissions and
201
+   limitations under the License.
202
+

+ 167
- 0
README.md View File

@@ -0,0 +1,167 @@
1
+TLS plugin for Fuel
2
+===================
3
+
4
+TLS plugin
5
+---------------
6
+
7
+Overview
8
+--------
9
+By default the openstack environment is configured with Http protocol. This plugin allows to configure Horizon, and novnc to use Https connexion by using Transport LAyer security (TLS) protocol to improve security.
10
+
11
+This repo contains all necessary files to build Https Fuel plugin.
12
+
13
+Requirements
14
+------------
15
+
16
+| Requirement                      | Version/Comment                                         |
17
+|----------------------------------|---------------------------------------------------------|
18
+| Mirantis Openstack compatibility | 6.0                                                     |
19
+|----------------------------------|---------------------------------------------------------|
20
+| Crt & Key files                  | You have a crt & key files to provide before deployment |
21
+
22
+Recommendations
23
+---------------
24
+
25
+None.
26
+
27
+Limitations
28
+-----------
29
+
30
+Securing apis is not yet implemented. Scope of the plugin only openstack dashboard and novnc for now 
31
+
32
+Installation Guide
33
+==================
34
+
35
+Https plugin installation
36
+----------------------------
37
+
38
+1. Clone the fuel-plugin repo from: https://github.com/stackforge/fuel-plugin-tls.git
39
+
40
+    ``git clone``
41
+
42
+2. Install the Fuel Plugin Builder:
43
+
44
+    ``pip install fuel-plugin-builder``
45
+
46
+3. Build nova-nfs Fuel plugin:
47
+
48
+   ``fpb --build fuel-plugin-tls/``
49
+
50
+4. The tls-<x.x.x>.fp file will be created in the plugin folder (fuel-plugin-tls)
51
+
52
+5. Move this file to the Fuel Master node with secure copy (scp):
53
+
54
+   ``scp tls-<x.x.x>.fp root@:<the_Fuel_Master_node_IP address>:/tmp``
55
+   ``cd /tmp``
56
+
57
+6. Install the nova-nfs plugin:
58
+
59
+   ``fuel plugins --install tls-<x.x.x>.fp``
60
+
61
+6. Plugin is ready to use and can be enabled on the Settings tab of the Fuel web UI.
62
+
63
+User Guide
64
+==========
65
+
66
+https plugin configuration
67
+-----------------------------
68
+
69
+1. Create a new environment with the Fuel UI wizard
70
+
71
+2. Add a node with the "Compute" role.
72
+
73
+3. Click on the settings tab of the Fuel web UI
74
+
75
+4. Scroll down the page, select the "Https plugin" checkbox
76
+   and fill-in the requiered fields
77
+    - the certificate .crt content
78
+    - the certificate .key content
79
+
80
+	
81
+You must pass your .crt and .key files via fuel UI (settings tab)
82
+When you pass the content of the files in fuel ui, some "space" characters will appear, don't care about this puppet will remove it.
83
+
84
+CRT file must be in the following format : 
85
+
86
+-----BEGIN CERTIFICATE-----
87
+MIIDXTCCAkWgAwIBAgIJAJHydV1v41XIMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV
88
+BAYTAkZSMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
89
+aWRnaXRzIFB0eSBMdGQwHhcNMTUwMTMwMTAyNDU3WhcNMTYwMTMwMTAyNDU3WjBF
90
+MQswCQYDVQQGEwJGUjETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50
91
+ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
92
+CgKCAQEAqwHssa1A2alSVh8ZZvKffGaix7mSFMDsFjUgPShqbAZ8xGQynvrHPel9
93
+A8E6ml0sGzHDwk8gobpu7k1wuMhcs7Np88xu5GtR1DhZWQ8MUGWHfflyjguMjtzF
94
+pZg4j0M14SE2INwwsRRtvC0/aeV1/q7HqfTk7+y01g/N4OKvYwndNp2lbSjBZZF4
95
+qbL9QD5iesOptxRryJ8tcm47i6hC4LTunz9pgVI13rtlOoqtXjf07ytMydBbzpeR
96
+4joaPAjbPf5ywf+I/n8XFxy6QPC9qAm2H3Gpo/5bb7+9S8AOhYqvWEKNotvyX1E8
97
+aiDLV+LHkL45Xpx47YBty6L8qNuejwIDAQABo1AwTjAdBgNVHQ4EFgQUVQNmpJDO
98
+w5eVB3yjU80NUZSKZlcwHwYDVR0jBBgwFoAUVQNmpJDOw5eVB3yjU80NUZSKZlcw
99
+DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAqadjZT7kMXRf5bp14nfI
100
+20m6G/i5aHBo+0v+6lRtmk5wD/D6VsOh+R/HjjDDo68y/WEWXxQbuOYX+HZCABpf
101
+VTA4oLvY4t3gtzt9Q21VtK/l5e3yyxo2JBnsPqc5wmWDlNO8aImF+QrvovkuyTV5
102
+mX6suZgby4eTllmVzBNK/+FMuPlsSPwB8SxEbu04aOIcwbn4LCCZJZEG6INVGSS8
103
+SRg1iER8mu2Jf45JKkMFDqUhCUp/ejM2t686O7olqKtmF53rDSBnzhtabdgTIx3F
104
+RjCb281gwvwSgyFfUgt5TIIq1o/kci2N33zuxaifFVz6DtDxKegoZg73bUMg/OA2
105
+bg==
106
+-----END CERTIFICATE-----
107
+
108
+KEY file must be in the following format : 
109
+
110
+-----BEGIN PRIVATE KEY-----
111
+MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCrAeyxrUDZqVJW
112
+Hxlm8p98ZqLHuZIUwOwWNSA9KGpsBnzEZDKe+sc96X0DwTqaXSwbMcPCTyChum7u
113
+TXC4yFyzs2nzzG7ka1HUOFlZDwxQZYd9+XKOC4yO3MWlmDiPQzXhITYg3DCxFG28
114
+LT9p5XX+rsep9OTv7LTWD83g4q9jCd02naVtKMFlkXipsv1APmJ6w6m3FGvIny1y
115
+bjuLqELgtO6fP2mBUjXeu2U6iq1eN/TvK0zJ0FvOl5HiOho8CNs9/nLB/4j+fxcX
116
+HLpA8L2oCbYfcamj/ltvv71LwA6Fiq9YQo2i2/JfUTxqIMtX4seQvjlenHjtgG3L
117
+ovyo256PAgMBAAECggEAD3iAGl7rNAXefg4YNTkT9qQua9U9AwWlFik+PmounpFD
118
+rlzGO53CcrZx6eoMTDTLrbYl2Klh8V+1c3esD/uIb3V2y2ieS6nt4D4szyLOYWOe
119
+C2aK15Dx6WbNtrp7u3JAKJrhk7135j1L5C9PwlvQ/fZ/979BCvemMIuDe6nmZhYz
120
+eZ69glGwDqCWtJpKX767ivfpylkWKc2hWIdOmxBsa4PQ4KGEjxl62MCGTAxLkHhB
121
+YsBzyIV4h2NLPoMrSZYY8ImndUNEWqvg9g1kZFR2lI9dlosf/A4F+K5v8Le3wLLJ
122
+bkRISLeEX31iWV1/XlQI98V2fLyveNfgpeU+Sy7v8QKBgQDaW7XYr2ig4wYPUh+z
123
+Dh8jYGVg+Mht/Dnfa3ND3zYQwuoGp8p2n2yDroM/PGlU0X9+Vrjz8fQoxLdbpnMG
124
+o2VH5TpTtuCUOh/bzSBuZHWIX83n0V0Ff8M/bLdNHYc07oC6p+7DlVljy8YEvAUc
125
+lfZ2LajSCrrkBluH+V1D1NyP9wKBgQDIfJimT4J0AHc7sfI9Bmv17gxi++qlom+e
126
+KHU9mvU4CMxQZNoQACm/C5a0ilh1DptIDLsfEp0obEkFEAVY6CfOTMe/lNN/iuR+
127
+WMe64gOnOhLd+36IdPkA3aqsO+GGSE2F75hJ0Ll5l3vEUgRVxqe9NbqA7GCDyCCl
128
+JrBy57fwKQKBgGw8C05F3CHrhiRv+6CAfnTFolrH1mmWHYWeODtLV/xE8UWtRBE6
129
+gspe5VWh90AAvCZ+jBz3MKRIpe56+gcvVNOnTxsRyg4PJZ2I9uthRlT70A95WpeQ
130
+NdKpa86AtXVKR2q+NP6jd/ScnCHapNn/h3Qau9SpVuwSLqqes1kdGNsPAoGAG0pi
131
+mRjvoAzELjsNx2LNZV+vDfZOvZc77GKDewxR3vvLnBHuYQk0pY3VSOQgIGcJmigp
132
+fJRTEkKTOf4xTCXl7T4kXp7Kn2zvp4c8QOMtLiFImjD2y2pozsZdyi4oh9flvZqc
133
+t0eTR8roDRRBBNAS2z2qEoyaorWmQ/TdRfbm4ekCgYALU22vbyuPX5AVPdD0vWv4
134
+zLL+l0MMMRviMu1NSa9L95vVdc/C0cGaLEZ7U4x2pd+J54q+DjjIRMn2knrbBZQf
135
+X43ceACVpWiv5DmBtEUrB8dbwxEJFaoPGqEswwdh1FDxzfsPdapyqGI5B8zRjnpa
136
+SR2QEYok/8lZeDgUOhXkGg==
137
+-----END PRIVATE KEY-----
138
+
139
+Here is a screenshot of the fields
140
+
141
+![tls fields](./figures/tls-plugin.png "tls-fields")
142
+
143
+Deployment details
144
+------------------
145
+
146
+Configure Horizon to use tls option
147
+Configure apache to use Https connexions, and set certificate files
148
+Restart Apache
149
+Configure Nova with novnc https option
150
+Restart Nova
151
+For HA deployment add horizon tls to haproxy configuration
152
+and restart ha_proxy
153
+
154
+Known issues
155
+------------
156
+
157
+None.
158
+
159
+Release Notes
160
+-------------
161
+
162
+**1.0.0**
163
+
164
+* Initial release of the plugin
165
+
166
+
167
+

+ 30
- 0
deployment_scripts/puppet/manifests/site.pp View File

@@ -0,0 +1,30 @@
1
+$fuel_settings 			= parseyaml(file('/etc/astute.yaml')) 
2
+$tls_hash    			  = $::fuel_settings['tls']
3
+$horizon_crt				= $tls_hash['horizon_crt']
4
+$horizon_key				= $tls_hash['horizon_key']
5
+$nodes_hash       			= $::fuel_settings['nodes']
6
+if ($::fuel_settings['deployment_mode'] == 'multinode') {   
7
+  $controller 				= filter_nodes($nodes_hash,'role','controller')
8
+  $controller_node_public 	= $controller[0]['public_address'] 
9
+	class  { 'tls::controller':
10
+    horizon_crt 	=>	$horizon_crt,
11
+	  horizon_key 	=>	$horizon_key,
12
+	  external_ip 	=>  $controller_node_public,
13
+	  bind_address  =>  $controller_node_public
14
+  }
15
+}
16
+else {
17
+	$controllers 			= concat(filter_nodes($nodes_hash,'role','primary-controller'), filter_nodes($nodes_hash,'role','controller'))
18
+	$public_virtual_ip  	= $::fuel_settings['public_vip']
19
+	$internal_virtual_ip 	= $::fuel_settings['management_vip']
20
+	class { 'tls::controller_ha':
21
+		controllers			=> $controllers,
22
+		public_virtual_ip	=> $public_virtual_ip,
23
+		internal_virtual_ip	=> $internal_virtual_ip,
24
+    horizon_crt   =>  $horizon_crt,
25
+    horizon_key   =>  $horizon_key,
26
+    external_ip   =>  $public_virtual_ip
27
+	}
28
+}
29
+  
30
+  

+ 19
- 0
deployment_scripts/puppet/manifests/site_compute.pp View File

@@ -0,0 +1,19 @@
1
+$fuel_settings 			= parseyaml(file('/etc/astute.yaml'))
2
+$tls_hash    			  = $::fuel_settings['tls']
3
+$horizon_crt				= $tls_hash['horizon_crt']
4
+$horizon_key				= $tls_hash['horizon_key']
5
+$nodes_hash       	= $::fuel_settings['nodes']
6
+ 
7
+if ($::fuel_settings['deployment_mode'] == 'multinode') { 
8
+  $controller 	    = filter_nodes($nodes_hash,'role','controller')
9
+  $internal_ip 	    = $controller[0]['internal_address']
10
+  $public_ip 	      = $controller[0]['public_address'] 
11
+}
12
+else { 
13
+	$public_ip  	    = $::fuel_settings['public_vip']
14
+	$internal_ip 	    = $::fuel_settings['management_vip']
15
+}
16
+class { 'tls::compute':
17
+  public_virtual_ip   => $public_ip,
18
+  internal_virtual_ip => $internal_ip,
19
+}

+ 26
- 0
deployment_scripts/puppet/modules/tls/files/format.sh View File

@@ -0,0 +1,26 @@
1
+#!/bin/bash
2
+
3
+CRT=$1
4
+KEY=$2
5
+SSL_PATH=$3
6
+############################################################################################################################
7
+# Horizon part
8
+############################################################################################################################
9
+echo "-----BEGIN CERTIFICATE-----" > $SSL_PATH/horizon.crt
10
+echo $CRT  | awk -F "-----" '{ print $3}' | sed 's/ /\n/g' | sed '/^$/d' >> $SSL_PATH/horizon.crt
11
+echo "-----END CERTIFICATE-----" >> $SSL_PATH/horizon.crt
12
+
13
+echo "-----BEGIN PRIVATE KEY-----" > $SSL_PATH/horizon.key
14
+echo $KEY  | awk -F "-----" '{ print $3}' | sed 's/ /\n/g' | sed '/^$/d' >> $SSL_PATH/horizon.key
15
+echo "-----END PRIVATE KEY-----" >> $SSL_PATH/horizon.key
16
+
17
+############################################################################################################################
18
+# Nova part
19
+############################################################################################################################
20
+echo "-----BEGIN CERTIFICATE-----" > /etc/nova/tls/nova.crt
21
+echo $CRT  | awk -F "-----" '{ print $3}' | sed 's/ /\n/g' | sed '/^$/d' >> /etc/nova/tls/nova.crt
22
+echo "-----END CERTIFICATE-----" >> /etc/nova/tls/nova.crt
23
+
24
+echo "-----BEGIN PRIVATE KEY-----" > /etc/nova/tls/nova.key
25
+echo $KEY  | awk -F "-----" '{ print $3}' | sed 's/ /\n/g' | sed '/^$/d' >> /etc/nova/tls/nova.key
26
+echo "-----END PRIVATE KEY-----" >> /etc/nova/tls/nova.key

+ 12
- 0
deployment_scripts/puppet/modules/tls/manifests/compute.pp View File

@@ -0,0 +1,12 @@
1
+class tls::compute(
2
+  $public_virtual_ip,
3
+  $internal_virtual_ip,
4
+) {
5
+  include tls::params
6
+  class { 'tls::nova::novnc_compute':
7
+    public_virtual_ip => $public_virtual_ip,
8
+    internal_virtual_ip => $internal_virtual_ip,
9
+    nova_compute_service => $tls::params::nova_compute_service
10
+  }
11
+}
12
+  

+ 52
- 0
deployment_scripts/puppet/modules/tls/manifests/controller.pp View File

@@ -0,0 +1,52 @@
1
+class tls::controller(
2
+  $horizon_crt,
3
+  $horizon_key,
4
+  $external_ip,
5
+  $bind_address
6
+) {
7
+  $server_hostname = $external_ip
8
+  include tls::params
9
+  $apache_tls_path = $tls::params::apache_tls_path
10
+  
11
+  #format crt and key files
12
+  file { "$apache_tls_path" :
13
+        ensure  => directory,
14
+        owner   => 'root',
15
+        group   => 'root',
16
+        mode    => '0755',
17
+  }
18
+  
19
+  file { '/etc/nova/tls' :
20
+        ensure  => directory,
21
+        owner   => 'root',
22
+        group   => 'root',
23
+        mode    => '0755',
24
+    before  => Exec['format.sh']
25
+  }
26
+
27
+  file {'format.sh':
28
+       path   =>'/usr/bin/format.sh',
29
+       mode   => '0744',
30
+       owner  => root,
31
+       group  => root,
32
+       source => "puppet:///modules/tls/format.sh",
33
+       require => File["$apache_tls_path"]
34
+   }
35
+   exec {'format.sh':
36
+       command => "bash -c \"format.sh \'${horizon_crt}\' \'${horizon_key}\' \'${apache_tls_path}\'\"",
37
+       path => '/usr/sbin:/usr/bin:/sbin:/bin',
38
+       require => File['format.sh'],
39
+       before  => File['openstack-dashboard.conf'],
40
+   }
41
+  class { 'tls::horizon::horizon':
42
+    horizon_crt   =>  $horizon_crt,
43
+    horizon_key   =>  $horizon_key,
44
+    bind_address   =>  $bind_address
45
+  }  
46
+  class { 'tls::nova::novnc_controller':
47
+    server_hostname   =>  $server_hostname,
48
+    novnc_service   =>  $tls::params::nova_novnc_service,
49
+    httpd_service   =>  $tls::params::httpd_service_name      
50
+  }  
51
+}
52
+  

+ 29
- 0
deployment_scripts/puppet/modules/tls/manifests/controller_ha.pp View File

@@ -0,0 +1,29 @@
1
+class tls::controller_ha(
2
+  $controllers,
3
+  $public_virtual_ip,
4
+  $internal_virtual_ip,
5
+  $horizon_crt,
6
+  $horizon_key,
7
+  $external_ip
8
+) {
9
+  $nodes_hash = $::fuel_settings['nodes']
10
+  $node = filter_nodes($nodes_hash,'name',$::hostname)
11
+  $internal_address = $node[0]['internal_address']
12
+  $bind_address = $internal_address
13
+  class { 'tls::controller':
14
+    horizon_crt   =>  $horizon_crt,
15
+    horizon_key   =>  $horizon_key,
16
+    external_ip   =>  $external_ip,
17
+    bind_address   =>  $bind_address
18
+  }    
19
+  class { 'tls::horizon::horizon_ha':
20
+    controllers           =>  $controllers,
21
+    public_virtual_ip     =>  $public_virtual_ip,
22
+    internal_virtual_ip   =>  $internal_virtual_ip,
23
+  }
24
+  exec { "ha_proxy_restart":
25
+    command => "/usr/sbin/crm resource restart p_haproxy",
26
+    require => Class['tls::horizon::horizon_ha'],
27
+  }
28
+}
29
+  

+ 85
- 0
deployment_scripts/puppet/modules/tls/manifests/horizon/horizon.pp View File

@@ -0,0 +1,85 @@
1
+class tls::horizon::horizon(
2
+  $horizon_crt,
3
+  $horizon_key,
4
+  $bind_address,
5
+) {
6
+  include tls::params
7
+
8
+  $root_url       = $tls::params::root_url
9
+  $ssl_cert_file  = $tls::params::tls_cert_file
10
+  $ssl_key_file   = $tls::params::tls_key_file
11
+  
12
+  #update horizon config file
13
+  exec { "USE_SSL":
14
+    command => "/bin/sed -i \"s/#USE_SSL = False/USE_SSL = True/\" $tls::params::horizon_settings_file",
15
+    unless  => "/bin/egrep \"^USE_SSL = True\" $tls::params::horizon_settings_file",
16
+    notify  => Service[$tls::params::httpd_service_name],
17
+  }
18
+  exec { "CSRF_COOKIE_SECURE":
19
+    command => "/bin/sed -i \"s/#CSRF_COOKIE_SECURE = True/CSRF_COOKIE_SECURE = True/\" $tls::params::horizon_settings_file",
20
+    unless  => "/bin/egrep \"^CSRF_COOKIE_SECURE = True\" $tls::params::horizon_settings_file",
21
+    notify  => Service[$tls::params::httpd_service_name],
22
+  }
23
+  exec { "SESSION_COOKIE_SECURE":
24
+    command => "/bin/sed -i \"s/#SESSION_COOKIE_SECURE = True/SESSION_COOKIE_SECURE = True/\" $tls::params::horizon_settings_file",
25
+    unless  => "/bin/egrep \"^SESSION_COOKIE_SECURE = True\" $tls::params::horizon_settings_file",
26
+    notify  => Service[$tls::params::httpd_service_name],
27
+  }
28
+  exec { "SESSION_COOKIE_HTTPONLY":
29
+    command => "/bin/sed -i /SESSION_COOKIE_SECURE/i\"SESSION_COOKIE_HTTPONLY = True\" $tls::params::horizon_settings_file",
30
+    unless  => "/bin/egrep \"^SESSION_COOKIE_HTTPONLY = True\" $tls::params::horizon_settings_file",
31
+    notify  => Service[$tls::params::httpd_service_name],
32
+  }
33
+
34
+  if $::osfamily == 'Debian' {
35
+    exec { "ssl_mod":
36
+    command => "/usr/sbin/a2enmod ssl",
37
+    notify  => Service[$tls::params::httpd_service_name],
38
+    }
39
+    exec { "header_mod":
40
+    command => "/usr/sbin/a2enmod headers",
41
+    notify  => Service[$tls::params::httpd_service_name],
42
+    }
43
+    exec { "rewrite":
44
+    command => "/usr/sbin/a2enmod rewrite",
45
+    notify  => Service[$tls::params::httpd_service_name],
46
+    }
47
+  } elsif($::osfamily == 'RedHat') {
48
+    package { 'mod_ssl':
49
+    ensure => present,
50
+    notify  => Service[$tls::params::httpd_service_name],
51
+    }
52
+  }
53
+
54
+  #update apache config file 
55
+  file { 'openstack-dashboard.conf' :
56
+    ensure  => present,
57
+    path    => $tls::params::apache_conf_file,
58
+    owner   => 'root',
59
+    group   => 'root',
60
+    mode    => '0755',
61
+    content => template('tls/openstack-dashboard.conf.erb'),
62
+    notify  => Service[$tls::params::httpd_service_name],
63
+  }
64
+
65
+  file { 'port.conf' :
66
+    ensure  => present,
67
+    path    => $tls::params::apache_port_file,
68
+    owner   => 'root',
69
+    group   => 'root',
70
+    mode    => '0755',
71
+    content => template('tls/port.conf.erb'),
72
+    notify  => Service[$tls::params::httpd_service_name],
73
+  }
74
+
75
+  file { 'vhost.conf' :
76
+    ensure  => present,
77
+    path    => $tls::params::apache_vhost_file,
78
+    owner   => 'root',
79
+    group   => 'root',
80
+    mode    => '0755',
81
+    content => template('tls/vhost.erb'),
82
+    notify  => Service[$tls::params::httpd_service_name],
83
+  }
84
+
85
+}

+ 74
- 0
deployment_scripts/puppet/modules/tls/manifests/horizon/horizon_ha.pp View File

@@ -0,0 +1,74 @@
1
+class tls::horizon::horizon_ha (
2
+  $controllers,
3
+  $public_virtual_ip,
4
+  $internal_virtual_ip,
5
+) {
6
+
7
+  require tls::horizon::horizon
8
+  include tls::params
9
+
10
+  Haproxy::Service        { use_include => true }
11
+  Haproxy::Balancermember { use_include => true }
12
+
13
+  $haproxy_config_options = {
14
+   'option'      => ['ssl-hello-chk', 'tcpka'],
15
+   'stick-table' => 'type ip size 200k expire 30m',
16
+   'stick'       => 'on src',
17
+   'balance'     => 'source',
18
+   'timeout'     => ['client 3h', 'server 3h'],
19
+   'mode'        => 'tcp',
20
+  }
21
+
22
+  haproxy::listen { 'horizon-ssl':
23
+    order     => '017',
24
+    ipaddress => $public_virtual_ip,
25
+    ports     => '443',
26
+    options   => $haproxy_config_options,
27
+    mode      => 'tcp',
28
+  }
29
+
30
+  haproxy::balancermember { 'horizon-ssl':
31
+    order             => '017',
32
+    listening_service => 'horizon-tls',
33
+    server_names      => filter_hash($controllers, 'name'),
34
+    ipaddresses       => filter_hash($controllers, 'internal_address'),
35
+    ports             => '443',
36
+    options           => 'weight 1 check',
37
+    define_cookies    => false,
38
+    define_backups    => false,
39
+  }
40
+  
41
+  ##################################################################################
42
+  
43
+  $haproxy_config_options_nova = {
44
+   'option'      => ['ssl-hello-chk', 'tcpka'],
45
+   'mode'        => 'tcp',
46
+  }
47
+ 
48
+  haproxy::listen { 'nova-novncproxy':
49
+    order     => '170',
50
+    ipaddress => $public_virtual_ip,
51
+    ports     => '6080',
52
+    options   => $haproxy_config_options_nova,
53
+    mode      => 'tcp',
54
+  }
55
+
56
+  haproxy::balancermember { 'nova-novncproxy':
57
+    order             => '170',
58
+    listening_service => 'horizon-tls',
59
+    server_names      => filter_hash($controllers, 'name'),
60
+    ipaddresses       => filter_hash($controllers, 'internal_address'),
61
+    ports             => '6080',
62
+    options           => 'check',
63
+    define_cookies    => false,
64
+    define_backups    => false,
65
+  }
66
+  ######################################################################################
67
+
68
+  
69
+  service { 'haproxy':
70
+    enable  => true,
71
+    ensure  => running,
72
+  }
73
+
74
+}

+ 17
- 0
deployment_scripts/puppet/modules/tls/manifests/nova/novnc_compute.pp View File

@@ -0,0 +1,17 @@
1
+class tls::nova::novnc_compute (
2
+  $public_virtual_ip,
3
+  $internal_virtual_ip,
4
+  $nova_compute_service
5
+) {
6
+  $novncproxy_base_url = "https://${public_virtual_ip}:6080/vnc_auto.html"
7
+
8
+  nova_config {
9
+    'DEFAULT/novncproxy_base_url': 	value => $novncproxy_base_url;
10
+    'DEFAULT/ssl_only': 			value => 'True';
11
+  } ~> Service["$nova_compute_service"]
12
+    
13
+  service { "$nova_compute_service":
14
+    enable  => true,
15
+    ensure  => running,
16
+  }
17
+}

+ 24
- 0
deployment_scripts/puppet/modules/tls/manifests/nova/novnc_controller.pp View File

@@ -0,0 +1,24 @@
1
+class tls::nova::novnc_controller (
2
+  $server_hostname,
3
+  $novnc_service,
4
+  $httpd_service
5
+) {
6
+  $novncproxy_base_url = "https://${server_hostname}:6080/vnc_auto.html"
7
+
8
+  nova_config {
9
+    'DEFAULT/novncproxy_base_url':  value => $novncproxy_base_url;
10
+    'DEFAULT/ssl_only':       value => 'True';
11
+    'DEFAULT/cert':         value => '/etc/nova/tls/nova.crt';
12
+    'DEFAULT/key':          value => '/etc/nova/tls/nova.key';
13
+  } ~> Service["$novnc_service"]
14
+
15
+  service { "$novnc_service":
16
+    enable  => true,
17
+    ensure  => running,
18
+  }
19
+
20
+  service { $httpd_service:
21
+    enable  => true,
22
+    ensure  => running,
23
+  }
24
+}

+ 31
- 0
deployment_scripts/puppet/modules/tls/manifests/params.pp View File

@@ -0,0 +1,31 @@
1
+class tls::params {
2
+  if $::osfamily == 'Debian' {
3
+    $httpd_service_name 	= 'apache2'
4
+    $horizon_settings_file 	= '/etc/openstack-dashboard/local_settings.py'
5
+    $usergroup 				= 'nogroup'
6
+	  $nova_compute_service 	= 'nova-compute'
7
+	  $nova_novnc_service 	= 'nova-novncproxy'
8
+    $apache_tls_path 		= '/etc/apache2/TLS'
9
+    $tls_cert_file			= '/etc/apache2/TLS/horizon.crt'
10
+    $tls_key_file			= '/etc/apache2/TLS/horizon.key'
11
+    $root_url               = '/horizon'	
12
+    $apache_conf_file 		= '/etc/apache2/conf-available/openstack-dashboard.conf'
13
+    $apache_vhost_file      = '/etc/apache2/sites-available/openstack-dashboard.conf'
14
+    $apache_port_file		= '/etc/apache2/ports.conf'	
15
+  } elsif($::osfamily == 'RedHat') {
16
+    $httpd_service_name 	= 'httpd'
17
+    $horizon_settings_file 	= '/etc/openstack-dashboard/local_settings'
18
+    $usergroup 				= 'nobody'
19
+    $nova_compute_service 	= 'openstack-nova-compute'
20
+    $nova_novnc_service 	= 'openstack-nova-novncproxy'	
21
+    $apache_tls_path 		= '/etc/httpd/TLS'
22
+    $tls_cert_file			= '/etc/httpd/TLS/horizon.crt'
23
+    $tls_key_file			= '/etc/httpd/TLS/horizon.key'
24
+    $root_url               = '/dashboard'	
25
+    $apache_conf_file 		= '/etc/httpd/conf.d/openstack-dashboard.conf'
26
+    $apache_vhost_file      = '/etc/httpd/conf.d/ssl.conf'
27
+    $apache_port_file		= '/etc/httpd/conf.d/ports.conf'	
28
+  } else {
29
+    fail("unsupported family ${::osfamily}")
30
+  }
31
+}

+ 7
- 0
deployment_scripts/puppet/modules/tls/spec/classes/init_spec.rb View File

@@ -0,0 +1,7 @@
1
+require 'spec_helper'
2
+describe 'https' do
3
+
4
+  context 'with defaults for all parameters' do
5
+    it { should contain_class('https') }
6
+  end
7
+end

+ 1
- 0
deployment_scripts/puppet/modules/tls/spec/spec_helper.rb View File

@@ -0,0 +1 @@
1
+require 'puppetlabs_spec_helper/module_spec_helper'

+ 58
- 0
deployment_scripts/puppet/modules/tls/templates/openstack-dashboard.conf.erb View File

@@ -0,0 +1,58 @@
1
+#
2
+# This file autogenerated by Puppet
3
+# Do not edit, changes will be overwritten
4
+#
5
+<%
6
+if @memorysize_mb.to_i < 1200 or @processorcount.to_i <= 3
7
+  wsgi_daemon_processes = 3
8
+  wsgi_daemon_threads = 10
9
+else
10
+  wsgi_daemon_processes = @processorcount
11
+  wsgi_daemon_threads = 15
12
+end
13
+
14
+if @osfamily == 'RedHat' %>
15
+WSGIDaemonProcess dashboard processes=<%= wsgi_daemon_processes %> threads=<%= wsgi_daemon_threads %>
16
+WSGIProcessGroup dashboard
17
+WSGISocketPrefix run/wsgi
18
+
19
+WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
20
+Alias /static /usr/share/openstack-dashboard/static
21
+
22
+<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
23
+  <IfModule mod_deflate.c>
24
+    SetOutputFilter DEFLATE
25
+    <IfModule mod_headers.c>
26
+      # Make sure proxies don’t deliver the wrong content
27
+      Header append Vary User-Agent env=!dont-vary
28
+    </IfModule>
29
+  </IfModule>
30
+
31
+  Order allow,deny
32
+  Allow from all
33
+</Directory>
34
+
35
+<Directory /usr/share/openstack-dashboard/static>
36
+  <IfModule mod_expires.c>
37
+    ExpiresActive On
38
+    ExpiresDefault "access 6 month"
39
+  </IfModule>
40
+  <IfModule mod_deflate.c>
41
+    SetOutputFilter DEFLATE
42
+  </IfModule>
43
+
44
+  Order allow,deny
45
+  Allow from all
46
+</Directory>
47
+<%
48
+end
49
+if @osfamily == 'Debian' %>
50
+WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
51
+WSGIDaemonProcess horizon user=horizon group=horizon processes=<%= wsgi_daemon_processes %> threads=<%= wsgi_daemon_threads %>
52
+WSGIProcessGroup horizon
53
+Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static/
54
+<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
55
+  Order allow,deny
56
+  Allow from all
57
+</Directory>
58
+<% end %>

+ 21
- 0
deployment_scripts/puppet/modules/tls/templates/port.conf.erb View File

@@ -0,0 +1,21 @@
1
+# If you just change the port or add more ports here, you will likely also
2
+# have to change the VirtualHost statement
3
+
4
+NameVirtualHost *:80
5
+Listen <%= @bind_address %>:80
6
+
7
+<% if @osfamily == 'RedHat' -%>
8
+NameVirtualHost *:443
9
+Listen <%= @bind_address %>:443
10
+<% else %>
11
+<IfModule mod_ssl.c>
12
+    # Server Name Indication for SSL named virtual hosts is currently not
13
+    # supported by MSIE on Windows XP.
14
+    NameVirtualHost *:443
15
+    Listen <%= @bind_address %>:443
16
+</IfModule>
17
+
18
+<IfModule mod_gnutls.c>
19
+    Listen <%= @bind_address %>:443
20
+</IfModule>
21
+<% end %>

+ 37
- 0
deployment_scripts/puppet/modules/tls/templates/vhost.erb View File

@@ -0,0 +1,37 @@
1
+#
2
+# This file autogenerated by Puppet
3
+# Do not edit, changes will be overwritten
4
+#
5
+
6
+# SSL support
7
+<% if @osfamily == 'RedHat' -%>
8
+LoadModule ssl_module modules/mod_ssl.so
9
+<% end -%>
10
+
11
+SSLPassPhraseDialog  builtin
12
+SSLSessionCache         shmcb:/var/cache/mod_ssl/scache(512000)
13
+SSLSessionCacheTimeout  300
14
+SSLMutex default
15
+SSLRandomSeed startup file:/dev/urandom  256
16
+SSLRandomSeed connect builtin
17
+SSLCryptoDevice builtin
18
+
19
+<% if @use_syslog -%>
20
+ErrorLog syslog:local1
21
+<% end -%>
22
+
23
+<VirtualHost *:80>
24
+  RedirectMatch permanent ^/$ <%= @root_url %>/
25
+  RewriteEngine On
26
+  RewriteCond %{HTTPS} off
27
+  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]
28
+</VirtualHost>
29
+
30
+<VirtualHost *:443>
31
+  RedirectMatch permanent ^/$ <%= @root_url %>/
32
+  SSLEngine on
33
+  SSLProtocol +TLSv1
34
+  SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!EXP:!LOW:!MEDIUM
35
+  SSLCertificateFile <%= @ssl_cert_file %>
36
+  SSLCertificateKeyFile <%= @ssl_key_file %>
37
+</VirtualHost>

+ 13
- 0
deployment_scripts/puppet/modules/tls/tests/init.pp View File

@@ -0,0 +1,13 @@
1
+# The baseline for module testing used by Puppet Labs is that each manifest
2
+# should have a corresponding test manifest that declares that class or defined
3
+# type.
4
+#
5
+# Tests are then run by using puppet apply --noop (to check for compilation
6
+# errors and view a log of events) or by fully applying the test in a virtual
7
+# environment (to compare the resulting system state to the desired state).
8
+#
9
+# Learn more about module testing here:
10
+# http://docs.puppetlabs.com/guides/tests_smoke.html
11
+#
12
+include tls::controller_ha
13
+include tls::compute

+ 13
- 0
environment_config.yaml View File

@@ -0,0 +1,13 @@
1
+attributes:
2
+  horizon_crt:
3
+    value: ""
4
+    label: "CRT"
5
+    description: "Certificate .crt content"
6
+    weight: 10
7
+    type: "password"
8
+  horizon_key:
9
+    value: ""
10
+    label: "Key"
11
+    description: "Certificate .key content"
12
+    weight: 10
13
+    type: "password"

BIN
figures/tls-plugin.png View File


+ 34
- 0
metadata.yaml View File

@@ -0,0 +1,34 @@
1
+# Plugin name
2
+name: tls
3
+title: TLS plugin
4
+# Plugin version
5
+version: 1.0.0
6
+# Description
7
+description: Enables the Transport Layer Security (TLS) protocol to secure openstack
8
+# Required fuel version
9
+fuel_version: ['6.0']
10
+
11
+# The plugin is compatible with releases in the list
12
+releases:
13
+  - os: ubuntu
14
+    version: 2014.2-6.0
15
+    mode: ['ha', 'multinode']
16
+    deployment_scripts_path: deployment_scripts/
17
+    repository_path: repositories/ubuntu
18
+  - os: centos
19
+    version: 2014.2-6.0
20
+    mode: ['ha', 'multinode']
21
+    deployment_scripts_path: deployment_scripts/
22
+    repository_path: repositories/centos
23
+  - os: ubuntu
24
+    version: 2014.2-6.0.1
25
+    mode: ['ha', 'multinode']
26
+    deployment_scripts_path: deployment_scripts/
27
+    repository_path: repositories/ubuntu
28
+  - os: centos
29
+    version: 2014.2-6.0.1
30
+    mode: ['ha', 'multinode']
31
+    deployment_scripts_path: deployment_scripts/
32
+    repository_path: repositories/centos
33
+# Version of plugin package
34
+package_version: '1.0.0'

+ 4
- 0
pre_build_hook View File

@@ -0,0 +1,4 @@
1
+#!/bin/bash
2
+# Add here any the actions which are required before plugin build
3
+# like packages building, packages downloading from mirrors and so on.
4
+# The script should return 0 if there were no errors.

+ 0
- 0
repositories/centos/.gitkeep View File


+ 0
- 0
repositories/ubuntu/.gitkeep View File


+ 15
- 0
tasks.yaml View File

@@ -0,0 +1,15 @@
1
+# Deployment is required for controllers
2
+- role: ['controller']
3
+  stage: post_deployment
4
+  type: puppet
5
+  parameters:
6
+    puppet_manifest: puppet/manifests/site.pp
7
+    puppet_modules:  "puppet/modules/:/etc/puppet/modules/"
8
+    timeout: 360
9
+- role: ['compute']
10
+  stage: post_deployment
11
+  type: puppet
12
+  parameters:
13
+    puppet_manifest: puppet/manifests/site_compute.pp
14
+    puppet_modules:  "puppet/modules/:/etc/puppet/modules/"
15
+    timeout: 360

Loading…
Cancel
Save