You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ji...@apache.org on 2026/10/10 09:24:47 UTC
(ambari-mpacks) 03/35: AMBARI-26663: Add PostgreSQL lifecycle and recovery reference mpack
This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ambari-mpacks.git
commit 7155f4bdc5420bedc788a5d51a9f26266e8e09e4
Author: jialiang <ji...@gmail.com>
AuthorDate: Thu Sep 24 22:42:49 2026 +0800
AMBARI-26663: Add PostgreSQL lifecycle and recovery reference mpack
---
mpacks/postgresql/LICENSE | 933 +++++++++++++++++++++
mpacks/postgresql/NOTICE | 15 +
.../extensions/POSTGRESQL/1.0/metainfo.xml | 21 +
.../POSTGRESQL/configuration/postgresql-env.xml | 25 +
.../1.0/services/POSTGRESQL/metainfo.xml | 34 +
.../POSTGRESQL/package/scripts/observer.py | 221 +++++
.../services/POSTGRESQL/package/scripts/service.py | 94 +++
.../POSTGRESQL/package/scripts/service_check.py | 28 +
release.json => mpacks/postgresql/mpack.json | 22 +-
mpacks/postgresql/shared-files.json | 11 +
release.json => profiles/infrastructure.json | 15 +-
release.json | 4 +
12 files changed, 1405 insertions(+), 18 deletions(-)
diff --git a/mpacks/postgresql/LICENSE b/mpacks/postgresql/LICENSE
new file mode 100644
index 0000000..c43caf4
--- /dev/null
+++ b/mpacks/postgresql/LICENSE
@@ -0,0 +1,933 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+APACHE AMBARI SUBCOMPONENTS:
+
+The Apache Ambari project contains subcomponents with separate copyright
+notices and license terms. Your use of the source code for the these
+subcomponents is subject to the terms and conditions of the following
+licenses.
+
+This product bundles VictoriaMetrics (https://victoriametrics.com/),
+which is available under the Apache License, Version 2.0.
+
+and some parts:
+
+Copyright (C) 2011 Krzysztof Wilczynski
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+For Kokki, resource management library derived from:
+
+Copyright (c) 2009 Samuel Stauffer <sa...@descolada.com>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of Samuel Stauffer nor the names of its contributors may be used
+ to endorse or promote products derived from this software without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+For Jinja2, used by resource management library as a templating engine:
+
+Copyright 2007 Pallets
+
+For MarkupSafe, used by Jinja2:
+
+Copyright 2010 Pallets
+
+For pycparser, used by cffi:
+
+pycparser -- A C parser in Python
+Copyright (c) 2008-2022, Eli Bendersky
+All rights reserved.
+
+The above three components are available under the BSD 3-Clause License:
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+For jQuery 1.9.1 (ambari-web/vendor/scripts.jquery-1.9.1.js):
+
+jQuery JavaScript Library v1.9.1
+http://jquery.com/
+
+Copyright 2011, John Resig
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+Includes Sizzle.js
+http://sizzlejs.com/
+Copyright 2011, The Dojo Foundation
+Released under the MIT, BSD, and GPL Licenses.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Timepicker Addon (ambari-web/vendor/scripts/jquery-ui-timepicker-addon.js):
+
+jQuery timepicker addon
+By: Trent Richardson [http://trentrichardson.com]
+Version 1.0.5
+
+Copyright 2012 Trent Richardson
+You may use this project under MIT or GPL licenses.
+http://trentrichardson.com/Impromptu/GPL-LICENSE.txt
+http://trentrichardson.com/Impromptu/MIT-LICENSE.txt
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery Periodic Plugin (ambari-web/vendor/scripts/jquery.periodic.js):
+
+jQuery periodic plugin
+
+Copyright 2010, Tom Anderson
+Dual licensed under the MIT or GPL Version 2 licenses.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI 1.8.23 (ambari-web/vendor/scripts/jquery.ui.core.js,
+contrib/views/slider/src/main/resources/ui/vendor/scripts/common/jquery.ui.core.js):
+
+jQuery UI 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Autocomplete 1.8.23 (ambari-web/vendor/scripts/jquery.ui.autocomplete.js):
+
+jQuery UI Autocomplete 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Autocomplete
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Position 1.8.23 (ambari-web/vendor/scripts/jquery.ui.position.js):
+
+jQuery UI Position 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Position
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Datepicker 1.8.23 (ambari-web/vendor/scripts/jquery.ui.datepicker.js):
+
+jQuery UI Datepicker 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Datepicker
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Mouse 1.8.23 (ambari-web/vendor/scripts/jquery.ui.mouse.js,
+contrib/views/slider/src/main/resources/ui/vendor/scripts/common/jquery.ui.mouse.js):
+
+jQuery UI Mouse 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Mouse
+
+Depends:
+jquery.ui.widget.js
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Slider 1.8.23 (ambari-web/vendor/scripts/jquery.ui.slider.js):
+
+jQuery UI Slider 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Slider
+
+Depends:
+jquery.ui.core.js
+jquery.ui.mouse.js
+jquery.ui.widget.js
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For jQuery UI Widget 1.8.23 (ambari/ambari-web/vendor/scripts/jquery.ui.widget.js,
+contrib/views/slider/src/main/resources/ui/vendor/scripts/common/jquery.ui.widget.js):
+
+jQuery UI Widget 1.8.23
+
+Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
+Dual licensed under the MIT or GPL Version 2 licenses.
+http://jquery.org/license
+
+http://docs.jquery.com/UI/Widget
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For Backbone.js 1.1.0 (ambari/ambari-web/vendor/scripts/backbone.js,
+
+Backbone.js 1.1.0
+(c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc.
+(c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+Backbone may be freely distributed under the MIT license.
+For all details and documentation:
+http://backbonejs.org
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For Underscore.js 1.5.2 (ambari/ambari-web/vendor/scripts/underscore.js,
+
+Underscore.js 1.5.2
+http://underscorejs.org
+(c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+Underscore may be freely distributed under the MIT license.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For clipboard.js 1.5.10 (ambari/ambari-web/vendor/scripts/clipboard.min.js):
+
+clipboard.js v1.5.10
+https://clipboardjs.com/
+Copyright 2016 Zeno Rocha <hi...@zenorocha.com>
+Clipboard may be freely distributed under the MIT license.
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For MockJax 1.6.0 (contrib/views/slider/src/main/resources/ui/app/assets/javascripts/jquery.mockjax.js,
+/contrib/views/files/src/main/resources/ui/app/assets/javascripts/jquery.mockjax.js):
+
+MockJax - jQuery Plugin to Mock Ajax requests
+
+Version: 1.6.0
+Released:
+Home: https://github.com/jakerella/jquery-mockjax
+Author: Jonathan Sharp (http://jdsharp.com)
+License: MIT,GPL
+
+Copyright (c) 2014 appendTo, Jordan Kasper
+NOTE: This repository was taken over by Jordan Kasper (@jakerella) October, 2014
+
+Dual licensed under the MIT or GPL licenses.
+http://opensource.org/licenses/MIT OR http://www.gnu.org/licenses/gpl-2.0.html
+
+MIT license selected:
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+For ember-qunit (contrib/views/slider/src/main/resources/ui/app/assets/javascripts/ember-qunit.js)
+
+Home: https://github.com/rwjblue/ember-qunit
+Author: Ryan Florence and contributors
+License: MIT
+
+Copyright 2014 Ryan Florence and contributors. MIT License.
+
+The MIT License (MIT)
+
+Copyright (c) 2014 Ryan Florence
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+For swagger-ui (ambari-web/api-docs/*):
+Home: https://github.com/jensoleg/swagger-ui
+License: Apache License, Version 2.0
+
+Copyright 2015 Reverb Technologies, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
+The following bundled Python runtime dependencies are available under the
+Apache License, Version 2.0 reproduced at the start of this file:
+
+* cryptography 50.0.1 (Apache-2.0 option selected)
+* distro 1.9.0
+* stomp.py 8.2.0
+* websocket-client 1.9.0
+* OpenSSL bundled in cryptography binary wheels
+
+For APScheduler:
+
+Copyright (c) Alex Grönholm
+
+For docopt:
+
+Copyright (c) 2012 Vladimir Keleshev, <vl...@keleshev.com>
+
+For tzlocal:
+
+Copyright 2011-2017 Lennart Regebro
+
+For javaproperties:
+
+Copyright (c) 2016-2024 John Thorvald Wodder II
+
+For PyYAML:
+
+Copyright (c) 2017-2021 Ingy döt Net
+Copyright (c) 2006-2016 Kirill Simonov
+
+The above five components are available under the MIT License:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+For cffi:
+
+Except when otherwise stated in individual source files, cffi software and
+documentation is available under the MIT No Attribution license:
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+For typing_extensions:
+
+Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022,
+2023 Python Software Foundation. All Rights Reserved.
+
+PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
+
+1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"),
+and the Individual or Organization ("Licensee") accessing and otherwise using
+this software ("Python") in source or binary form and its associated
+documentation.
+
+2. Subject to the terms and conditions of this License Agreement, PSF hereby
+grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
+analyze, test, perform and/or display publicly, prepare derivative works,
+distribute, and otherwise use Python alone or in any derivative version,
+provided, however, that PSF's License Agreement and PSF's notice of copyright
+are retained in Python alone or in any derivative version prepared by
+Licensee.
+
+3. In the event Licensee prepares a derivative work that is based on or
+incorporates Python or any part thereof, and wants to make the derivative work
+available to others as provided herein, then Licensee hereby agrees to include
+in any such work a brief summary of the changes made to Python.
+
+4. PSF is making Python available to Licensee on an "AS IS" basis. PSF MAKES
+NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT
+NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF
+MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF
+PYTHON WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
+
+5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON FOR ANY
+INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF
+MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, OR ANY DERIVATIVE THEREOF,
+EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
+
+6. This License Agreement will automatically terminate upon a material breach
+of its terms and conditions.
+
+7. Nothing in this License Agreement shall be deemed to create any
+relationship of agency, partnership, or joint venture between PSF and
+Licensee. This License Agreement does not grant permission to use PSF
+trademarks or trade name in a trademark sense to endorse or promote products
+or services of Licensee, or any third party.
+
+8. By copying, installing or otherwise using Python, Licensee agrees to be
+bound by the terms and conditions of this License Agreement.
+
+This product uses software based on SIL Open Font License (OFL)
+* Font-Awesome (SIL OFL 1.1) [http://fortawesome.github.io/Font-Awesome/]
+* Image clippy.svg from Octicon project (SIL OFL 1.1) [https://octicons.github.com/]
diff --git a/mpacks/postgresql/NOTICE b/mpacks/postgresql/NOTICE
new file mode 100644
index 0000000..bd348ec
--- /dev/null
+++ b/mpacks/postgresql/NOTICE
@@ -0,0 +1,15 @@
+Apache Ambari
+Copyright 2011-2013 The Apache Software Foundation
+
+This product includes software developed at The Apache Software
+Foundation (http://www.apache.org/).
+
+Resource management library derived from Kokki, which is under following copyright:
+
+Copyright (c) 2009 Samuel Stauffer <sa...@descolada.com>
+All rights reserved.
+
+Jinja2 and MarkupSafe, used by the resource management library:
+
+Copyright 2007 Pallets
+Copyright 2010 Pallets
diff --git a/mpacks/postgresql/extensions/POSTGRESQL/1.0/metainfo.xml b/mpacks/postgresql/extensions/POSTGRESQL/1.0/metainfo.xml
new file mode 100644
index 0000000..b35d72f
--- /dev/null
+++ b/mpacks/postgresql/extensions/POSTGRESQL/1.0/metainfo.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<metainfo><versions><active>true</active></versions><prerequisites>
+ <min-stack-versions><stack><name>GENERIC</name><version>1.0</version></stack></min-stack-versions>
+</prerequisites><auto-link>false</auto-link></metainfo>
diff --git a/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/configuration/postgresql-env.xml b/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/configuration/postgresql-env.xml
new file mode 100644
index 0000000..9d6bcf6
--- /dev/null
+++ b/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/configuration/postgresql-env.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<configuration>
+ <property><name>database</name><value>postgres</value><description>Source database identity.</description><on-ambari-upgrade add="true"/></property>
+ <property><name>unit</name><value></value><description>OS-managed PostgreSQL unit; empty selects the platform default.</description><value-attributes><empty-value-valid>true</empty-value-valid></value-attributes><on-ambari-upgrade add="true"/></property>
+ <property><name>backup_directory</name><value></value><description>Protected backup storage; empty selects ambari-backups below the platform PostgreSQL data root.</description><value-attributes><empty-value-valid>true</empty-value-valid></value-attributes><on-ambari-upgrade add="true"/></property>
+ <property><name>restore_database</name><value></value><description>Explicit isolated recovery target; the source cannot be selected.</description><value-attributes><empty-value-valid>true</empty-value-valid></value-attributes><on-ambari-upgrade add="true"/></property>
+ <property><name>backup_id</name><value></value><description>Exact backup UUID selected for recovery.</description><value-attributes><empty-value-valid>true</empty-value-valid></value-attributes><on-ambari-upgrade add="true"/></property>
+</configuration>
diff --git a/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/metainfo.xml b/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/metainfo.xml
new file mode 100644
index 0000000..b612e14
--- /dev/null
+++ b/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/metainfo.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<metainfo><schemaVersion>2.0</schemaVersion><services><service>
+ <name>POSTGRESQL</name><displayName>PostgreSQL</displayName><version>1.0</version>
+ <components><component><name>POSTGRESQL_SERVER</name><displayName>PostgreSQL Server</displayName>
+ <category>MASTER</category><cardinality>1</cardinality><versionAdvertised>false</versionAdvertised>
+ <commandScript><script>scripts/service.py</script><scriptType>PYTHON</scriptType><timeout>600</timeout></commandScript>
+ <customCommands><customCommand><name>BACKUP</name><commandScript><script>scripts/service.py</script><scriptType>PYTHON</scriptType><timeout>3600</timeout></commandScript></customCommand>
+ <customCommand><name>RESTORE</name><commandScript><script>scripts/service.py</script><scriptType>PYTHON</scriptType><timeout>3600</timeout></commandScript></customCommand>
+ <customCommand><name>VERSION_CHECK</name><commandScript><script>scripts/service.py</script><scriptType>PYTHON</scriptType><timeout>3600</timeout></commandScript></customCommand></customCommands>
+ </component></components>
+ <osSpecifics>
+ <osSpecific><osFamily>redhat8</osFamily><packages><package><name>postgresql-server</name></package><package><name>postgresql</name></package><package><name>python3-rpm</name></package><package><name>python3-dbus</name></package><package><name>python3-gobject-base</name></package><package><name>python3-psycopg2</name></package></packages></osSpecific>
+ <osSpecific><osFamily>ubuntu22</osFamily><packages><package><name>postgresql-14</name></package><package><name>postgresql-client-14</name></package><package><name>python3-apt</name></package><package><name>python3-dbus</name></package><package><name>python3-gi</name></package><package><name>python3-psycopg2</name></package></packages></osSpecific>
+ </osSpecifics>
+ <commandScript><script>scripts/service_check.py</script><scriptType>PYTHON</scriptType><timeout>120</timeout></commandScript>
+ <configuration-dependencies><config-type>postgresql-env</config-type></configuration-dependencies>
+</service></services></metainfo>
diff --git a/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/package/scripts/observer.py b/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/package/scripts/observer.py
new file mode 100644
index 0000000..40e6a21
--- /dev/null
+++ b/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/package/scripts/observer.py
@@ -0,0 +1,221 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+
+import hashlib
+import json
+import os
+import pwd
+import re
+import subprocess
+import sys
+import uuid
+from pathlib import Path
+
+from observations import (atomic_json, contained_in, observer_python, package_observation,
+ platform_identity, unit_observation, validate_request, validate_result)
+
+
+def database_name(value):
+ if not isinstance(value, str) or not re.fullmatch(r"[a-z][a-z0-9_]{0,62}", value):
+ raise ValueError("A lowercase database identifier is required")
+ return value
+
+
+def connect(name):
+ import psycopg2
+ return psycopg2.connect(dbname=database_name(name), user="postgres", host="/var/run/postgresql",
+ connect_timeout=10)
+
+
+def inventory(connection):
+ import psycopg2.sql as sql
+
+ with connection.cursor() as cursor:
+ cursor.execute("SELECT system_identifier::text FROM pg_control_system()")
+ instance = cursor.fetchone()[0]
+ cursor.execute("SELECT current_database(), current_setting('server_version_num')")
+ database, version = cursor.fetchone()
+ cursor.execute("SELECT n.nspname, c.relname FROM pg_class c JOIN pg_namespace n ON n.oid=c.relnamespace "
+ "WHERE c.relkind='r' AND n.nspname NOT IN ('pg_catalog','information_schema') "
+ "AND n.nspname NOT LIKE 'pg_toast%' ORDER BY n.nspname,c.relname")
+ tables = cursor.fetchall()
+ rows = {}
+ for schema, table in tables:
+ cursor.execute(sql.SQL("SELECT to_jsonb(t)::text FROM {}.{} t").format(
+ sql.Identifier(schema), sql.Identifier(table)))
+ hashes = sorted(hashlib.sha256(value[0].encode("utf-8")).hexdigest() for value in cursor.fetchall())
+ rows[schema + "." + table] = {"rows": len(hashes),
+ "digest": hashlib.sha256("\n".join(hashes).encode("ascii")).hexdigest()}
+ return {"instance_id": instance, "database": database, "server_version_num": int(version), "tables": rows}
+
+
+def worker(request):
+ if os.geteuid() != pwd.getpwnam("postgres").pw_uid:
+ raise ValueError("Database observations must execute as the database OS account")
+ action = request["action"]
+ parameters = request["parameters"]
+ source = database_name(parameters.get("database", "postgres"))
+ if action in {"health", "version"}:
+ with connect(source) as connection:
+ return inventory(connection)
+ root = Path("/var/lib/pgsql" if platform_identity() == ("rocky", "8") else "/var/lib/postgresql")
+ base = Path(parameters.get("backup_directory") or str(root / "ambari-backups"))
+ if not base.is_absolute() or base.is_symlink() or not contained_in(base, root):
+ raise ValueError("Backup storage must be contained in the PostgreSQL persistent directory")
+ base.mkdir(mode=0o700, parents=True, exist_ok=True)
+ if action == "backup":
+ backup_id = str(uuid.UUID(request["execution_id"]))
+ descriptor = base / (backup_id + ".json")
+ payload = base / (backup_id + ".dump")
+ if payload.exists() or descriptor.exists():
+ raise ValueError("Existing backup requires explicit reconciliation, not overwrite")
+ connection = connect(source)
+ try:
+ with connection.cursor() as cursor:
+ cursor.execute("BEGIN ISOLATION LEVEL REPEATABLE READ READ ONLY")
+ cursor.execute("SELECT pg_export_snapshot()")
+ snapshot = cursor.fetchone()[0]
+ observed = inventory(connection)
+ command = ["/usr/bin/pg_dump", "--format=custom", "--snapshot=" + snapshot,
+ "--file=" + str(payload), "--dbname=" + source]
+ result = subprocess.run(command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, check=False)
+ if result.returncode != 0 or not payload.is_file() or payload.stat().st_size == 0:
+ raise RuntimeError("Backup execution has no complete payload")
+ content_digest = hashlib.sha256(payload.read_bytes()).hexdigest()
+ record = {"schema_version": 1, "backup_id": backup_id, "execution_id": request["execution_id"],
+ "definition_snapshot": request["definition_snapshot"], "task_id": request["task_id"],
+ "payload_digest": content_digest, "source": observed}
+ atomic_json(descriptor, record)
+ if json.loads(descriptor.read_text()) != record:
+ raise RuntimeError("Backup descriptor could not be verified")
+ return {"backup": record, "payload_bytes": payload.stat().st_size,
+ "verification": "PAYLOAD_AND_SOURCE_SNAPSHOT"}
+ finally:
+ connection.close()
+ if action == "restore":
+ backup_id = str(uuid.UUID(parameters.get("backup_id", "")))
+ target = database_name(parameters.get("restore_database"))
+ if target == source or target in {"postgres", "template0", "template1"}:
+ raise ValueError("Restore cannot target a source or system database")
+ descriptor = base / (backup_id + ".json")
+ payload = base / (backup_id + ".dump")
+ if descriptor.is_symlink() or payload.is_symlink():
+ raise ValueError("Backup files cannot be symbolic links")
+ record = json.loads(descriptor.read_text(encoding="utf-8"))
+ if record.get("schema_version") != 1 or record.get("backup_id") != backup_id or record.get("source", {}).get("database") != source:
+ raise ValueError("Backup identity does not match the requested source")
+ if hashlib.sha256(payload.read_bytes()).hexdigest() != record["payload_digest"]:
+ raise ValueError("Backup payload digest does not match")
+ import psycopg2.sql as sql
+ admin = connect("postgres")
+ admin.autocommit = True
+ try:
+ with admin.cursor() as cursor:
+ cursor.execute("SELECT system_identifier::text FROM pg_control_system()")
+ target_instance = cursor.fetchone()[0]
+ if target_instance == record["source"]["instance_id"]:
+ raise ValueError("Recovery must target an isolated PostgreSQL instance")
+ cursor.execute("SELECT EXISTS (SELECT 1 FROM pg_database WHERE datname=%s)", (target,))
+ if cursor.fetchone()[0]:
+ raise ValueError("Restore target already exists; verify or remove it explicitly")
+ cursor.execute(sql.SQL("CREATE DATABASE {} TEMPLATE template0").format(sql.Identifier(target)))
+ result = subprocess.run(["/usr/bin/pg_restore", "--exit-on-error", "--single-transaction",
+ "--dbname=" + target, str(payload)], stdout=subprocess.DEVNULL,
+ stderr=subprocess.DEVNULL, check=False)
+ if result.returncode != 0:
+ raise RuntimeError("Restore execution did not complete")
+ with connect(target) as restored:
+ observed = inventory(restored)
+ if (observed["tables"] != record["source"]["tables"] or observed["instance_id"] != target_instance
+ or observed["server_version_num"] // 10000 != record["source"]["server_version_num"] // 10000):
+ raise RuntimeError("Restored data does not match the source snapshot")
+ return {"backup_id": backup_id, "payload_digest": record["payload_digest"],
+ "source": record["source"], "target": observed, "verification": "RESTORED_TABLE_DIGESTS"}
+ finally:
+ admin.close()
+ raise ValueError("Unsupported database observation")
+
+
+def execute(request):
+ action = request["action"]
+ rocky = platform_identity() == ("rocky", "8")
+ unit = request["parameters"].get("unit") or ("postgresql.service" if rocky else "postgresql@14-main.service")
+ if not (unit == "postgresql.service" or re.fullmatch(r"postgresql@[a-zA-Z0-9_-]+\.service", unit)):
+ raise ValueError("Invalid PostgreSQL unit identity")
+ observed = {"software": package_observation("postgresql-server" if rocky else "postgresql-14")}
+ if action == "package":
+ return dict(request, outcome="APPLIED", observations=observed)
+ if action in {"start", "stop"}:
+ observed["systemd"] = unit_observation(unit, action)
+ elif action == "configure":
+ if rocky:
+ data = Path("/var/lib/pgsql/data")
+ marker = data / "PG_VERSION"
+ if data.is_symlink():
+ raise ValueError("PostgreSQL data must not be a symbolic link")
+ if not marker.is_file():
+ if data.exists() and any(data.iterdir()):
+ raise ValueError("Existing uninitialized PostgreSQL data requires reconciliation")
+ account = pwd.getpwnam("postgres")
+ data.mkdir(mode=0o700, parents=True, exist_ok=True)
+ os.chown(str(data), account.pw_uid, account.pw_gid)
+ result = subprocess.run(["/usr/sbin/runuser", "-u", "postgres", "--",
+ "/usr/bin/initdb", "-D", str(data), "--auth-local=peer",
+ "--auth-host=scram-sha-256"], stdout=subprocess.DEVNULL,
+ stderr=subprocess.DEVNULL, timeout=120, check=False)
+ if result.returncode != 0:
+ raise RuntimeError("PostgreSQL initialization did not complete")
+ expected = observed["software"]["version"].split(".")[0]
+ if marker.read_text(encoding="ascii").strip() != expected:
+ raise RuntimeError("PostgreSQL data version does not match the installed package")
+ observed["configuration"] = {"mode": "OS_MANAGED", "unit": unit}
+ elif action in {"health", "version", "backup", "restore"}:
+ if action == "health":
+ observed["systemd"] = unit_observation(unit)
+ if observed["systemd"]["active_state"] != "active":
+ raise RuntimeError("PostgreSQL is not active")
+ process = subprocess.run(["/usr/sbin/runuser", "-u", "postgres", "--", observer_python(),
+ str(Path(__file__).resolve()), "--worker"],
+ input=json.dumps(request).encode("utf-8"), stdout=subprocess.PIPE,
+ stderr=subprocess.DEVNULL, timeout=3500, check=False)
+ result = json.loads(process.stdout)
+ validate_result(request, result)
+ if process.returncode != 0 or result.get("execution_id") != request["execution_id"] or result.get("outcome") != "APPLIED":
+ raise RuntimeError("Database result is missing or foreign")
+ observed["database"] = result["observations"]
+ else:
+ raise ValueError("Unsupported PostgreSQL operation")
+ return dict(request, outcome="APPLIED", observations=observed)
+
+
+if __name__ == "__main__":
+ if len(sys.argv) == 2 and sys.argv[1] == "--worker":
+ request = validate_request(json.load(sys.stdin))
+ try:
+ print(json.dumps(dict(request, outcome="APPLIED", observations=worker(request)), allow_nan=False))
+ except Exception as error:
+ print(json.dumps(dict(request, outcome="UNRESOLVED", observations={"error_type": type(error).__name__})))
+ raise SystemExit(1)
+ else:
+ request = validate_request(json.loads(Path(sys.argv[1]).read_text(encoding="utf-8")))
+ try:
+ result = execute(request)
+ except Exception as error:
+ atomic_json(sys.argv[2], dict(request, outcome="UNRESOLVED", observations={"error_type": type(error).__name__}))
+ raise SystemExit(1)
+ atomic_json(sys.argv[2], result)
diff --git a/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/package/scripts/service.py b/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/package/scripts/service.py
new file mode 100644
index 0000000..51d0bd1
--- /dev/null
+++ b/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/package/scripts/service.py
@@ -0,0 +1,94 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+
+import json
+import os
+import subprocess
+import tempfile
+from pathlib import Path
+
+from resource_management.core.exceptions import Fail, ComponentIsNotRunning
+from resource_management.libraries.script.script import Script
+from observations import observer_python, validate_result
+
+
+class Service(Script):
+ def observe(self, action):
+ config = Script.get_config()
+ params = config["commandParams"]
+ environment = config.get("configurations", {}).get("postgresql-env", {})
+ request = {
+ "schema_version": 1, "definition_snapshot": params["mpack_definition_snapshot"],
+ "execution_id": params["mpack_execution_id"], "task_id": config.get("taskId"),
+ "action": action, "parameters": environment,
+ }
+ with tempfile.TemporaryDirectory(prefix="ambari-service-") as directory:
+ os.chmod(directory, 0o700)
+ source = Path(directory) / "request.json"
+ result = Path(directory) / "result.json"
+ source.write_text(json.dumps(request), encoding="utf-8")
+ process = subprocess.run([observer_python(), str(Path(__file__).with_name("observer.py")),
+ str(source), str(result)], stdout=subprocess.DEVNULL,
+ stderr=subprocess.DEVNULL, timeout=3600, check=False)
+ if not result.is_file() or result.stat().st_size > 1024 * 1024:
+ raise Fail("Service action has no bounded structured result")
+ with result.open(encoding="utf-8") as output:
+ observation = json.load(output)
+ try:
+ validate_result(request, observation)
+ except ValueError as error:
+ raise Fail(str(error))
+ if process.returncode != 0 or observation.get("outcome") != "APPLIED":
+ raise Fail("Service action did not produce a verified result")
+ self.put_structured_out({"software_observation": observation})
+ return observation
+
+ def install(self, env):
+ if Script.get_config().get("repositoryFile"):
+ Script.repository_util.create_repo_files()
+ self.install_packages(env)
+ self.observe("package")
+
+ def configure(self, env):
+ self.observe("configure")
+
+ def start(self, env):
+ self.configure(env)
+ self.observe("start")
+
+ def stop(self, env):
+ self.observe("stop")
+
+ def status(self, env):
+ try:
+ self.observe("health")
+ except Fail:
+ raise ComponentIsNotRunning()
+
+ def version_check(self, env):
+ self.observe("version")
+
+ def backup(self, env):
+ self.observe("backup")
+
+ def restore(self, env):
+ self.observe("restore")
+
+
+if __name__ == "__main__":
+ Service().execute()
diff --git a/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/package/scripts/service_check.py b/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/package/scripts/service_check.py
new file mode 100644
index 0000000..470cbd3
--- /dev/null
+++ b/mpacks/postgresql/extensions/POSTGRESQL/1.0/services/POSTGRESQL/package/scripts/service_check.py
@@ -0,0 +1,28 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+"""
+
+from service import Service
+
+
+class Check(Service):
+ def service_check(self, env):
+ self.observe("health")
+
+
+if __name__ == "__main__":
+ Check().execute()
diff --git a/release.json b/mpacks/postgresql/mpack.json
similarity index 75%
copy from release.json
copy to mpacks/postgresql/mpack.json
index 5c30fbd..0524cc4 100644
--- a/release.json
+++ b/mpacks/postgresql/mpack.json
@@ -1,14 +1,20 @@
{
"$comment": "Licensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements. See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership. The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by [...]
"schema_version": 1,
- "packs": {
- "generic-base": {
- "path": "mpacks/generic-base",
- "version": "1.0.0.3"
- },
- "nginx": {
- "path": "mpacks/nginx",
+ "type": "full-release",
+ "name": "postgresql",
+ "version": "1.0.0.3",
+ "artifacts": [
+ {
+ "name": "postgresql-definitions",
+ "type": "extension-definitions",
+ "source_dir": "extensions"
+ }
+ ],
+ "dependencies": [
+ {
+ "name": "generic-base",
"version": "1.0.0.3"
}
- }
+ ]
}
diff --git a/mpacks/postgresql/shared-files.json b/mpacks/postgresql/shared-files.json
new file mode 100644
index 0000000..2cedef5
--- /dev/null
+++ b/mpacks/postgresql/shared-files.json
@@ -0,0 +1,11 @@
+{
+ "$comment": "Licensed to the Apache Software Foundation under the Apache License, Version 2.0. http://www.apache.org/licenses/LICENSE-2.0",
+ "schema_version": 1,
+ "files": [
+ {
+ "source": "shared/observations.py",
+ "target": "extensions/POSTGRESQL/1.0/services/POSTGRESQL/package/scripts/observations.py",
+ "digest": "84cd47342db6d8cd7548afae398c4cb1ec47bf4b09f22d598aa06c167a70112c"
+ }
+ ]
+}
diff --git a/release.json b/profiles/infrastructure.json
similarity index 81%
copy from release.json
copy to profiles/infrastructure.json
index 5c30fbd..2f9f4a7 100644
--- a/release.json
+++ b/profiles/infrastructure.json
@@ -1,14 +1,9 @@
{
"$comment": "Licensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements. See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership. The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by [...]
"schema_version": 1,
- "packs": {
- "generic-base": {
- "path": "mpacks/generic-base",
- "version": "1.0.0.3"
- },
- "nginx": {
- "path": "mpacks/nginx",
- "version": "1.0.0.3"
- }
- }
+ "packs": [
+ "generic-base",
+ "nginx",
+ "postgresql"
+ ]
}
diff --git a/release.json b/release.json
index 5c30fbd..d1a5412 100644
--- a/release.json
+++ b/release.json
@@ -9,6 +9,10 @@
"nginx": {
"path": "mpacks/nginx",
"version": "1.0.0.3"
+ },
+ "postgresql": {
+ "path": "mpacks/postgresql",
+ "version": "1.0.0.3"
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org